Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-20 Thread Kan Su
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Kan Su confirmed that the question is solved:
Thanks Janek Kozicki, that solved my question.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-20 Thread Janek Kozicki
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Janek Kozicki posted a new comment:
> You might want to use cmake SUFFIX=

or runtimePREFIX

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-20 Thread Janek Kozicki
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Janek Kozicki posted a new comment:
>> Did you do anything specific to workaround this [MPFR] compilation error
> No. But after I followed you suggestion at #9, setting CHUNKSIZE=1 , this 
> error disappeared.

Thanks for the answer, this means that we have more CHUNKSIZE related
bugs.

> May I mark your post at #7 as the solution?

sure no problem :)

If you feel adventurous, maybe you would  like to try building higher
precision versions of yade: long double, float128, maybe even MPFR150 ?

http://yade-dem.org/doc/HighPrecisionReal.html

you only need to pass this cmake parameter for each of the builds:

REAL_DECIMAL_PLACES=18
REAL_DECIMAL_PLACES=33
REAL_DECIMAL_PLACES=150

each of these builds generate a different yade binary with different default 
precision of calculations.
You might want to use cmake SUFFIX=.. parameter to generate yade binaries (and 
.so files) with corresponding different names.

long double calculations are 1.4 times slower, float128 are 4.9 times
slower, mpfr150 are 19.8 times slower.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-20 Thread Kan Su
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Kan Su posted a new comment:
> > I did turn off MPFR, the error message is the same.

> Did you do anything specific to workaround this compilation error:

> This error looked like a problem with mpfr wrapper in boost,
specifically in file max_digits10.hpp, but then somehow you managed to
compile with MPFR ?

No. But after I followed you suggestion at #9, setting CHUNKSIZE=1 ,
this error disappeared.

> this is good news. We will use ver9 files for testing ver8.2

I added a hack in the PKGBUILD  to use ver9 files for testing ver8.2.

BTW, I noticed that vtk8.2.0 is flagged out-of-date in arch community repo,
https://archlinux.org/packages/community/x86_64/vtk/ 
may be it will be updated to vtk9.0 soon.

May I mark your post at #7 as the solution? Actually I think #9 solved
my problem, but I can't mark it as a solution.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-20 Thread Janek Kozicki
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Janek Kozicki posted a new comment:
> After I copied all files from potentialVTKRecorders/ver9/ to
potentialVTKRecorders/ver8.2/, all checks passed!

this is good news. We will use ver9 files for testing ver8.2

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-20 Thread Janek Kozicki
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Janek Kozicki posted a new comment:
Yade features : ...  MPFR ...

| boost | 1.75.0 | 1.75.0 |
| mpfr | 4.1.0 | 4.1.0 |

>  I did turn off MPFR, the error message is the same.

Did you do anything specific to workaround this compilation error:

/usr/include/boost/multiprecision/traits/max_digits10.hpp:51:43: in 'constexpr' 
expansion of 'boost::multiprecision::detail::calc_digits10<151>::digits_10(151)'
/usr/include/boost/multiprecision/traits/max_digits10.hpp:49:96: error: 
'(3.010299956639812e-1 * 1.5e+2)' is not a constant expression

This error looked like a problem with mpfr wrapper in boost,
specifically in file max_digits10.hpp, but then somehow you managed to
compile with MPFR ?

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-20 Thread Kan Su
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Kan Su posted a new comment:
Thanks, It works!

After I copied all files from  potentialVTKRecorders/ver9/ to
potentialVTKRecorders/ver8.2/, all checks passed!

```
 yade --checkall  
Welcome to Yade 2021.01a 
Using python version: 3.9.1 (default, Dec 13 2020, 11:55:53) 
[GCC 10.2.0]
/usr/lib/yade/py/yade/__init__.py:76: RuntimeWarning: to-Python converter for 
boost::shared_ptr already registered; second 
conversion method ignored.
  boot.initialize(plugins,config.confDir)
###
running:  checkViscElPM.py
Status: success, time spent on this check: 0:00:00.194854
___
###
running:  checkPolyhedraCrush.py
CGAL version is  (4, 14, 3) . Will test for (cgal version > 4.9) and (cgal 
version < 5.1.1)
 PolyhedraSplitter:96 virtual void yade::PolyhedraSplitter::action(): 
be careful, the PolyhedraSplitter returns different results depending on CGAL 
version! This will not produce reproducible calculations. For details see 
https://gitlab.com/yade-dev/trunk/issues/45
Checkpoint: force values and number of bodies are OK! Iteration 166
Status: success, time spent on this check: 0:00:00.104968
___
###
running:  checkMPI4PYcomm.py
Master: will spawn  1  workers running: /usr/bin/yade 
['/usr/lib/yade/py/yade/tests/checks/checkMPI4PYcomm.py'] 
/usr/lib/yade/py/yade/__init__.py:76: RuntimeWarning: to-Python converter for 
boost::shared_ptr already registered; second 
conversion method ignored.
  boot.initialize(plugins,config.confDir)
Warning: freeglut versions higher than 2.8.1 are known to crash, see 
https://gitlab.com/yade-dev/trunk/merge_requests/160 
https://gitlab.com/yade-dev/trunk/-/issues/155 
https://gitlab.com/yade-dev/trunk/-/issues/107
Worker1: spawned! 
 MPI comm times: 
1e4 integers in a python list: 0.0005977869033813477
1e4 integers in a python array: 6.968975067138672e-05
Status: success, time spent on this check: 0:00:00.874305
___
###
running:  checkAvoidSelfInteractionMask.py
testing collider.avoidSelfInteractionMask
0 bb br gg gr rr
1 bb br gr
2 br gg gr
3 br gr
Status: success, time spent on this check: 0:00:00.004887
___
###
running:  checkPotentialVTKRecorders.py
checking file:  /tmp/tmpiu_jfshd/potentialVTKRecorders/ppcontactPoint.10.vtu
checking file:  /tmp/tmpiu_jfshd/potentialVTKRecorders/ppId.10.vtu
checking file:  /tmp/tmpiu_jfshd/potentialVTKRecorders/pp-pb.10.vtp
checking file:  /tmp/tmpiu_jfshd/potentialVTKRecorders/ppvel.10.vtu
non-matching lines:  0
checking file:  /tmp/tmpiu_jfshd/potentialVTKRecorders/pbcontactPoint.10.vtu
checking file:  /tmp/tmpiu_jfshd/potentialVTKRecorders/pbId.10.vtu
checking file:  /tmp/tmpiu_jfshd/potentialVTKRecorders/pb-pb.10.vtp
checking file:  /tmp/tmpiu_jfshd/potentialVTKRecorders/pbvel.10.vtu
non-matching lines:  0
Status: success, time spent on this check: 0:00:00.087385
___
###
running:  checkViscElPM2.py
Status: success, time spent on this check: 0:00:00.202185
___
###
running:  check_TwoPhaseFlowEngine_PressureInjection.py
/usr/lib/yade/py/yade/plot.py:463: MatplotlibDeprecationWarning: 
The 'verts' parameter of scatter() was deprecated in Matplotlib 3.2 and will be 
removed two minor releases later. If any parameter follows 'verts', they should 
be passed as keyword, not positionally.
  scatter=pylab.scatter(scatterPt[0] if not math.isnan(scatterPt[0]) else 
0,scatterPt[1] if not math.isnan(scatterPt[1]) else 
0,s=scatterSize,color=line.get_color(),**scatterMarkerKw)
File ./vtk moved into /tmp/tmpftqt2gzj/ directory
File ./Test.txt moved into /tmp/tmpftqt2gzj/ directory
Status: success, time spent on this check: 0:00:04.746889
___
###
running:  checkVTKRecorder.py
checkVTKRecorder
checking file:  /tmp/tmpf1dlsg0k/vtk_testing/10.vtm
checking file:  /tmp/tmpf1dlsg0k/vtk_testing/10/10_0.vtu
checking file:  /tmp/tmpf1dlsg0k/vtk_testing/10/10_2.vtp
non-matching lines:  113
Status: success, time spent on this check: 0:00:00.062857
___
###
running:  checkTestDummy.py
checkTest mechanism
Status: success, time spent on this check: 0:00:00.001540
___
###
Skipping checkMPISilo.py, because it is in skipScripts.
###
running:  checkLubrication.py
Status: success, time spent on this check: 0:00:01.686369
___
###
running:  checkLubricationWithRoughness.py
Status: suc

Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-20 Thread Janek Kozicki
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Janek Kozicki posted a new comment:
In fact try to take all these files from potentialVTKRecorders/ver9/ and
see :)

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-20 Thread Janek Kozicki
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Janek Kozicki posted a new comment:
I mean potentialVTKRecorders/ver9/pbcontactPoint.10.vtu

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-20 Thread Janek Kozicki
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Janek Kozicki posted a new comment:
> potentialVTKRecorders/ver8.2/pbcontactPoint.10.vtu

does it work if you take similar file from ver9 ?

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-20 Thread Kan Su
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Kan Su posted a new comment:
Thanks a lot!

I re-complied with  VECTORIZE=OFF and ran all tests and checks again.  
All tests passed, but one check failed.

```
checkPotentialVTKRecorders.py  failure, caught exception  FileNotFoundError :  
[Errno 2] No such file or directory: 
'/usr/lib/yade/py/yade/tests/checks/data/potentialVTKRecorders/ver8.2/pbcontactPoint.10.vtu'
  
```

I then wen to  the directory. Not that there's no file named
`pbcontactPoint.10.vtu` but only one named `ppcontactPoint.10.vtu`

```
➜  yade git:(master) ✗ cd 
/usr/lib/yade/py/yade/tests/checks/data/potentialVTKRecorders/ver8.2/
➜  ver8.2 ll
  
total 52K
-rw-r--r-- 1 root root  38K Jan 21 00:09 pp-pb.10.vtp
-rw-r--r-- 1 root root 1.4K Jan 21 00:09 ppId.10.vtu
-rw-r--r-- 1 root root 2.2K Jan 21 00:09 ppcontactPoint.10.vtu
-rw-r--r-- 1 root root 2.8K Jan 21 00:09 ppvel.10.vtu
```
--
Below are the output of printAllVersions, tests and checks

```
➜  yade git:(master) ✗ yade
Welcome to Yade 2021.01a 
Using python version: 3.9.1 (default, Dec 13 2020, 11:55:53) 
[GCC 10.2.0]
/usr/lib/yade/py/yade/__init__.py:76: RuntimeWarning: to-Python converter for 
boost::shared_ptr already registered; second 
conversion method ignored.
  boot.initialize(plugins,config.confDir)
TCP python prompt on localhost:9000, auth cookie `esdcsk'
XMLRPC info provider on http://localhost:21000
QSettings::value: Empty key passed
QSettings::value: Empty key passed
Warning: freeglut versions higher than 2.8.1 are known to crash, see 
https://gitlab.com/yade-dev/trunk/merge_requests/160 
https://gitlab.com/yade-dev/trunk/-/issues/155 
https://gitlab.com/yade-dev/trunk/-/issues/107
[[ ^L clears screen, ^U kills line. F12 controller, F11 3D view (press "h" in 
3D view for help), F10 both, F9 generator, F8 plot. ]]

In [1]: printAllVersions()

```
Yade version   :  2021.01a
Yade features  :  BoostLog RealHP mpmath PrecisionDouble MPFR Odeint VTK OpenMP 
GTS GUI-Qt5 CGAL PFVFLOW PFVFLOW LINSOLV CHOLMOD_GPU MPI TWOPHASEFLOW SPH 
DEFORM FEMLIKE LIQMIGRATION GL2PS LBMFLOW MASK_ARBITRARY THERMAL PARTIALSAT 
PROFILING PotentialParticles PotentialBlocks
Yade config dir:  ~/.yade
Yade precision :  53 bits, 15 decimal places, with mpmath
Yade RealHP<…> :  (15, 33, 45, 60, 120, 150, 300) decimal digits in C++, (15, 
33) decimal digits accessible from python

```
Libraries used :

| library   | cmake | C++ |
| - | - | --- |
| boost | 1.75.0| 1.75.0  |
| cgal  |   | 4.14.3  |
| clp   | 1.17.6| 1.17.6  |
| cmake | 3.19.3| |
| coinutils | 2.11.4| 2.11.4  |
| compiler  | /usr/bin/c++ 10.2.0   | gcc 10.2.0  |
| eigen | 3.3.9 | 3.3.9   |
| freeglut  | 3.0.0 | |
| gl|   | 20190805|
| ipython   | 7.19.0| |
| metis |   | 5.1.0   |
| mpfr  | 4.1.0 | 4.1.0   |
| mpi   | 3.1   | ompi:4.0.5  |
| mpi4py| 3.0.3 | |
| mpmath| 1.1.0 | |
| openblas  |   |  OpenBLAS 0.3.13|
| python| 3.9.1 | 3.9.1   |
| qglviewer |   | 2.7.2   |
| qt|   | 5.15.2  |
| sqlite|   | 3.34.0  |
| suitesparse   | 5.8.1 | 5.8.1   |
| vtk   | 8.2.0 | 8.2.0   |

```
Linux version  :  Arch Linux
Architecture   :  unknown
Little endian  :  True
```
```

```
➜  yade git:(master) ✗ yade --test
Using python version: 3.9.1 (default, Dec 13 2020, 11:55:53) 
[GCC 10.2.0]
/usr/lib/yade/py/yade/__init__.py:76: RuntimeWarning: to-Python converter for 
boost::shared_ptr already registered; second 
conversion method ignored.
  boot.initialize(plugins,config.confDir)

Using PrecisionDouble with 15 digits.

Using (15, 33) decimal digits in python. Importing mpmath

testDummySomething (yade.tests.dummyTest.TestDummy) ... ok
testDummySomethingElse (yade.tests.dummyTest.TestDummy) ... ok
testMatrix3 (yade.TestEigenWrapper)
Math: Matrix3 operations ... ok
testQuaternion (yade.TestEigenWrapper)
Math: Quaternion operations ... ok
testVector2 (yade.TestEigenWrapper)
Math: Vector2 operations ... ok
testVector3 (yade.TestEigenWrapper)
Math: Vector3 operations ... ok
testClassCtors (yade.TestObjectInstantiation)
Core: corre

Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-20 Thread Janek Kozicki
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Janek Kozicki posted a new comment:
> [asustx:310193] Signal: Segmentation fault (11)
> [asustx:310193] Signal code: (128)
> [asustx:310193] Failing at address: (nil)
> [asustx:310193] [ 0] /usr/lib/libc.so.6(+0x3d6a0)[0x7f9c06e306a0]

It could be a compiler bug in the memory alignment of variables. In this
case VECTORIZE=OFF (not using SSE instructions) would solve this. This
is the reason why SSE is not enabled by default. It is still
experimental.

If this does not help then maybe cmake linked with a wrong version of
some library. Maybe check if you get these crashes when
ENABLE_OPENMP=OFF or ENABLE_MPI=OFF, because cmake had problems finding
one of these.

> Warning: freeglut versions higher than 2.8.1 are known to crash

We still have no fix for that. When you open GUI and the 3D view of the
scene, it will crash.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-20 Thread Kan Su
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Kan Su posted a new comment:
1.   printAllVersions()

```
➜  ~ yade
Welcome to Yade 2021.01a 
Using python version: 3.9.1 (default, Dec 13 2020, 11:55:53) 
[GCC 10.2.0]
/usr/lib/yade/py/yade/__init__.py:76: RuntimeWarning: to-Python converter for 
boost::shared_ptr already registered; second 
conversion method ignored.
  boot.initialize(plugins,config.confDir)
:228: RuntimeWarning: to-Python converter for 
Eigen::Matrix already registered; second conversion 
method ignored.
:228: RuntimeWarning: to-Python converter for 
Eigen::Matrix, 3, 1, 0, 3, 1> already 
registered; second conversion method ignored.
TCP python prompt on localhost:9000, auth cookie `eusdks'
XMLRPC info provider on http://localhost:21000
QSettings::value: Empty key passed
QSettings::value: Empty key passed
Warning: freeglut versions higher than 2.8.1 are known to crash, see 
https://gitlab.com/yade-dev/trunk/merge_requests/160 
https://gitlab.com/yade-dev/trunk/-/issues/155 
https://gitlab.com/yade-dev/trunk/-/issues/107
[[ ^L clears screen, ^U kills line. F12 controller, F11 3D view (press "h" in 
3D view for help), F10 both, F9 generator, F8 plot. ]]

In [1]: printAllVersions()

```
Yade version   :  2021.01a
Yade features  :  BoostLog RealHP mpmath PrecisionDouble MPFR VECTORIZE Odeint 
VTK OpenMP GTS GUI-Qt5 CGAL PFVFLOW PFVFLOW LINSOLV CHOLMOD_GPU MPI 
TWOPHASEFLOW SPH DEFORM FEMLIKE LIQMIGRATION GL2PS LBMFLOW MASK_ARBITRARY 
THERMAL PARTIALSAT PROFILING PotentialParticles PotentialBlocks
Yade config dir:  ~/.yade
Yade precision :  53 bits, 15 decimal places, with mpmath
Yade RealHP<…> :  (15, 33, 45, 60, 120, 150, 300) decimal digits in C++, (15, 
33) decimal digits accessible from python
```

Libraries used :

| library   | cmake | C++ |
| - | - | --- |
| boost | 1.75.0| 1.75.0  |
| cgal  |   | 4.14.3  |
| clp   | 1.17.6| 1.17.6  |
| cmake | 3.19.3| |
| coinutils | 2.11.4| 2.11.4  |
| compiler  | /usr/bin/c++ 10.2.0   | gcc 10.2.0  |
| eigen | 3.3.9 | 3.3.9   |
| freeglut  | 3.0.0 | |
| gl|   | 20190805|
| ipython   | 7.19.0| |
| metis |   | 5.1.0   |
| mpfr  | 4.1.0 | 4.1.0   |
| mpi   | 3.1   | ompi:4.0.5  |
| mpi4py| 3.0.3 | |
| mpmath| 1.1.0 | |
| openblas  |   |  OpenBLAS 0.3.13|
| python| 3.9.1 | 3.9.1   |
| qglviewer |   | 2.7.2   |
| qt|   | 5.15.2  |
| sqlite|   | 3.34.0  |
| suitesparse   | 5.8.1 | 5.8.1   |
| vtk   | 8.2.0 | 8.2.0   |

```
Linux version  :  Arch Linux
Architecture   :  unknown
Little endian  :  True
```

```
2.  It doesn't pass all checks and tests

```
➜  ~ yade --test

Using python version: 3.9.1 (default, Dec 13 2020, 11:55:53) 
[GCC 10.2.0]
/usr/lib/yade/py/yade/__init__.py:76: RuntimeWarning: to-Python converter for 
boost::shared_ptr already registered; second 
conversion method ignored.
  boot.initialize(plugins,config.confDir)
:228: RuntimeWarning: to-Python converter for 
Eigen::Matrix already registered; second conversion 
method ignored.
:228: RuntimeWarning: to-Python converter for 
Eigen::Matrix, 3, 1, 0, 3, 1> already 
registered; second conversion method ignored.

Using PrecisionDouble with 15 digits.

Using (15, 33) decimal digits in python. Importing mpmath

testDummySomething (yade.tests.dummyTest.TestDummy) ... ok
testDummySomethingElse (yade.tests.dummyTest.TestDummy) ... ok
testMatrix3 (yade.TestEigenWrapper)
Math: Matrix3 operations ... ok
testQuaternion (yade.TestEigenWrapper)
Math: Quaternion operations ... ok
testVector2 (yade.TestEigenWrapper)
Math: Vector2 operations ... ok
testVector3 (yade.TestEigenWrapper)
Math: Vector3 operations ... ok
testClassCtors (yade.TestObjectInstantiation)
Core: correct types are instantiated ... ok
testDispatcherCtor (yade.TestObjectInstantiation)
Core: dispatcher ctors with functors ... ok
testHidden (yade.TestObjectInstantiation)
Core: Attr::hidden ... ok
testInteractionLoopCtor (yade.TestObjectInstantiation)
Core: InteractionLoop special ctor ... ok
testInvalidAttr (yade.TestObjectInstantiation)
Core: invalid attribute access raises AttributeError ... ok
testNoSave (yade.TestObjectInstan

Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-20 Thread Janek Kozicki
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Janek Kozicki posted a new comment:
can you post now what prints the command

  printAllVersions()

and does it pass checks and tests:

yade --test

yade --checkall

Thanks!

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #695081]: [Solved] Compilation failed on vtk8.2.0

2021-01-19 Thread Su Kan
Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Summary changed to:
[Solved] Compilation failed on vtk8.2.0

Description changed to:
Update: This was solved at #9, and the answer is summerized at #10.
Below are the original posts.



Sorry for my English first, it's not my mother language.
I'm trying to build yade-2021.01a from source for Archlinux (linux 5.10.7). I'm 
trying to complie it with most feature enabled.
But I found several problems: 
1. I'm using CMake 3.19.3. When I use
```
cmake ../trunk \
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DNOSUFFIX=ON 
-DPYTHON_VERSION=-1 \
-DENABLE_SPH=ON   -DENABLE_PROFILING=ON  -DCHOLMOD_GPU=ON  
-DENABLE_LIQMIGRATION=ON -DENABLE_MASK_ARBITRARY=ON -DENABLE_DEFORM=ON 
-DVECTORIZE=ON -DENABLE_OAR=ON \
-DENABLE_MPFR=ON -DENABLE_PARTIALSAT=ON\
-DruntimePREFIX=/usr   -DCHUNKSIZE=50 -DOpenGL_GL_PREFERENCE=GLVND\
-DENABLE_USEFUL_ERRORS=ON -DENABLE_POTENTIAL_BLOCKS=ON
```
It said `OpenMP NOT found`. But I'm sure I have installed the openmp package. 
After searching it on google, I modified the `trunk/CMakeLists.txt`, added ` 
/usr/share/cmake-3.19//Modules/` to `CMAKE_MODULE_PATH`, then this problem was 
solved.


```
-- Found OpenMP_C: -fopenmp (found version "4.5") 
CMake Warning (dev) at 
/usr/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:426 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/lib/cmake/vtk-8.2/vtkm/FindOpenMP.cmake:485 
(find_package_handle_standard_args)
  CMakeLists.txt:683 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find OpenMP_CXX (missing: OpenP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) 
-- Could NOT find OpenMP (missing: OpenMP_CXX_FOUND) (found version "4.5")
-- OpenMP NOT found
```

2. Then I began to compile, everything went fine at first, I noticed that most 
features were enabled:
```
-- Yade configured with following features: BoostLog RealHP mpmath 
PrecisionDouble MPFR VECTORIZE Odeint VTK OpenMP GTS GUI-Qt5 CGAL PFVFLOW 
PFVFLOW LINSOLV CHOLMOD_GPU MPI TWOPHASEFLOW SPH DEFORM FEMLIKE LIQMIGRATION 
GL2PS LBMFLOW MASK_ARBITRARY THERMAL PARTIALSAT PROFILING PotentialParticles 
PotentialBlocks
-- Disabled features:
-- Using MAX_LOG_LEVEL=5, ENABLE_LOGGER=ON
-- Optimized build
-- C++ standard version: 17
```

However, when the compiling process went to around 47%, an error occured.
```
/tmp/makepkg/yade/src/trunk/pkg/common/Gl1_PotentialBlock.cpp:694:31: error: no 
matching function for call to 'vtkUnsignedCharArray::InsertNextTuple(unsigned 
char [3])'
  694 |pbColors->INSERT_NEXT_TUPLE(c);
  |   ^
In file included from /usr/include/vtk/vtkIntArray.h:33,
 from /usr/include/vtk/vtkCellTypes.h:42,
 from /usr/include/vtk/vtkPolyData.h:64,
 from 
/tmp/makepkg/yade/src/trunk/pkg/common/Gl1_PotentialBlock.hpp:15,
 from 
/tmp/makepkg/yade/src/trunk/pkg/common/Gl1_PotentialBlock.cpp:9,
 from /tmp/makepkg/yade/src/build/pkg.0.cpp:9:
/usr/include/vtk/vtkAOSDataArrayTemplate.h:214:13: note: candidate: 'vtkIdType 
vtkAOSDataArrayTemplate::InsertNextTuple(const float*) [with 
ValueTypeT = unsigned char; vtkIdType = long long int]'
  214 |   vtkIdType InsertNextTuple(const float *tuple) override;
  | ^~~
/usr/include/vtk/vtkAOSDataArrayTemplate.h:214:42: note:   no known conversion 
for argument 1 from 'unsigned char [3]' to 'const float*'
  214 |   vtkIdType InsertNextTuple(const float *tuple) override;
  | ~^
/usr/include/vtk/vtkAOSDataArrayTemplate.h:215:13: note: candidate: 'vtkIdType 
vtkAOSDataArrayTemplate::InsertNextTuple(const double*) [with 
ValueTypeT = unsigned char; vtkIdType = long long int]'
  215 |   vtkIdType InsertNextTuple(const double *tuple) override;
  | ^~~
/usr/include/vtk/vtkAOSDataArrayTemplate.h:215:43: note:   no known conversion 
for argument 1 from 'unsigned char [3]' to 'const double*'
  215 |   vtkIdType InsertNextTuple(const double *tuple) override;
  | ~~^
/usr/include/vtk/vtkAOSDataArrayTemplate.h:218:13: note: candidate: 'vtkIdType 
vtkAOSDataArrayTemplate::InsertNextTuple(vtkIdType, 
vtkAbstractArray*) [with ValueTypeT = unsigned char; vtkIdType = long long int]'
  218 |   vtkIdType InsertNextTuple(vtkIdType srcTupleIdx,
  | ^~~
/usr/include/vtk/vtkAOSDataArrayTemplate.h:218:13: note:   candidate expects 2 
arguments, 1 provided