[conda] compile calculix for osx and windows

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
looo
Posts: 3431
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Postby looo » Fri Nov 30, 2018 6:27 am

as spooles should be available for win/linux/osx it's time to test calculix build. But it is more diffficult than I expected.

If anyone sees something obviously wrong, please report:
https://github.com/conda-forge/staged-recipes/pull/6827
User avatar
looo
Posts: 3431
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Postby looo » Sat Dec 01, 2018 7:05 pm

Finally a first build for windows. Maybe someone wants to test this.

Code: Select all

conda install calculix -c freecad
https://anaconda.org/freecad/calculix/files
User avatar
looo
Posts: 3431
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Postby looo » Sat Dec 01, 2018 8:08 pm

tried it myself and it seems like there is missing a ".exe" But after renaming the file it seems to work.
In FreeCAD there are still come problems:

Code: Select all

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\hans_\conda\envs\freecad\Library\Mod\Fem\femguiobjects\_ViewProviderFemSolverCalculix.py", line 257, in calculixFinished
    majorVersion, minorVersion = fea.get_ccx_version()
  File "C:\Users\hans_\conda\envs\freecad\Library\Mod\Fem\femtools\ccxtools.py", line 696, in get_ccx_version
    m = re.search(r"(\d+).(\d+)", ccx_stdout)
  File "C:\Users\hans_\conda\envs\freecad\lib\re.py", line 182, in search
    return _compile(pattern, flags).search(string)
TypeError: cannot use a string pattern on a bytes-like object
User avatar
looo
Posts: 3431
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Postby looo » Fri Dec 07, 2018 7:33 am

https://anaconda.org/conda-forge/calculix/files
Calculix is now uploaded to the conda-forge channel.
User avatar
Kunda1
Posts: 7992
Joined: Thu Jan 05, 2017 9:03 pm

Re: [conda] compile calculix for osx and windows

Postby Kunda1 » Fri Dec 07, 2018 1:01 pm

looo wrote:
Fri Dec 07, 2018 7:33 am
https://anaconda.org/conda-forge/calculix/files
Calculix is now uploaded to the conda-forge channel.
Sweet!
Until repology incorporates conda-forge, is there a list (of links) of dependencies that are on conda-forge that FreeCAD currently uses ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
looo
Posts: 3431
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Postby looo » Fri Dec 07, 2018 3:36 pm

Kunda1 wrote:
Fri Dec 07, 2018 1:01 pm
Sweet!
Until repology incorporates conda-forge, is there a list (of links) of dependencies that are on conda-forge that FreeCAD currently uses ?
Yes, I am trying to have this list updated: https://github.com/FreeCAD/FreeCAD_Cond ... /README.md
UR_
Posts: 1189
Joined: Tue Jan 03, 2017 8:42 pm

Re: [conda] compile calculix for osx and windows

Postby UR_ » Fri Dec 07, 2018 11:31 pm

looo wrote:
Sat Dec 01, 2018 7:05 pm
Maybe someone wants to test this
Just ran your build against guido's official test suite from here:

http://www.dhondt.de/ccx_2.14.test.tar.bz2

And this is the result log

error.ccx2.14looo.txt
(29.02 KiB) Downloaded 17 times

In comparison to ddfem's build

error.ccx2.14ddfem.txt
(8.27 KiB) Downloaded 18 times

As said, ccx is a pretty sensible beast ;)
(especially in regard of code optimizations of fortran parts, perhaps worth a look)
User avatar
looo
Posts: 3431
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Postby looo » Sat Dec 08, 2018 4:35 am

can you share the script for running this test? I guess it's not always necessary to have matching output. For example Eigenvectors can have different values for the same result using different solvers. But looking at file eg b31.inp there shouldn't be a difference in the result of a static computation...
User avatar
looo
Posts: 3431
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Postby looo » Sat Dec 08, 2018 4:50 am

ok looking at b31.frd and comparing the results shows one obvious problem:

Code: Select all

b31.frd
...
 -1        12-1.25000E-0011.25000E-0010.00000E+000
 -1        13-1.25000E-001-1.25000E-0010.00000E+000
 -1        141.25000E-001-1.25000E-0010.00000E+000
 ...

Code: Select all

b31.frd.ref
...
 -1        12-1.25000E-01 1.25000E-01 0.00000E+00
 -1        13-1.25000E-01-1.25000E-01 0.00000E+00
 -1        14 1.25000E-01-1.25000E-01 0.00000E+00
 ...
So it seems we have a formatting problem here and directly comparing the results is not really possible.

edit: This problem is related to the number of exponential digits printed. Somehow the default value is 3, but calculix needs 2. If anyone knows how to fix this, please add a note here: https://github.com/conda-forge/calculix ... k/issues/3
User avatar
bernd
Posts: 10702
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: [conda] compile calculix for osx and windows

Postby bernd » Sat Dec 08, 2018 9:35 am

we had similar problem already but I can not find it ...