[conda] compile calculix for osx and windows

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Post by looo »

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
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Post by looo »

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
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Post by looo »

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
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Post by looo »

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

Re: [conda] compile calculix for osx and windows

Post by Kunda1 »

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 ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Post by looo »

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_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: [conda] compile calculix for osx and windows

Post by UR_ »

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 34 times

In comparison to ddfem's build

error.ccx2.14ddfem.txt
(8.27 KiB) Downloaded 33 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
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Post by looo »

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
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Post by looo »

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
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: [conda] compile calculix for osx and windows

Post by bernd »

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