precice / calculix-adapter

preCICE-adapter for the CSM code CalculiX
GNU General Public License v3.0
52 stars 20 forks source link

2D cases fail when out-of-plane axis is not the z-axis #56

Closed davidscn closed 3 years ago

davidscn commented 3 years ago

As discussed here.

Running it looks as follows:

---[precice]  I am participant "Calculix"
Using quasi 2D-3D coupling
Set ID Found 
ccx_preCICE: adapter/PreciceInterface.c:559: PreciceInterface_ConfigureNodesMesh: Assertion `count == interface->num2DNodes' failed.
[lapus303:696058] *** Process received signal ***
[lapus303:696058] Signal: Aborted (6)
[lapus303:696058] Signal code:  (-6)
[lapus303:696058] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x153c0)[0x7f19c5f223c0]
[lapus303:696058] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7f19c591e18b]
[lapus303:696058] [ 2] /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7f19c58fd859]
[lapus303:696058] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x25729)[0x7f19c58fd729]
[lapus303:696058] [ 4] /lib/x86_64-linux-gnu/libc.so.6(+0x36f36)[0x7f19c590ef36]
[lapus303:696058] [ 5] ccx_preCICE(+0x1da28e)[0x56203bcd228e]
[lapus303:696058] [ 6] ccx_preCICE(+0x1dad73)[0x56203bcd2d73]
[lapus303:696058] [ 7] ccx_preCICE(+0x1c3bca)[0x56203bcbbbca]
[lapus303:696058] [ 8] ccx_preCICE(+0xa66d)[0x56203bb0266d]
[lapus303:696058] [ 9] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f19c58ff0b3]
[lapus303:696058] [10] ccx_preCICE(+0x1556e)[0x56203bb0d56e]
[lapus303:696058] *** End of error message ***
./runSolid.sh: line 1: 696058 Aborted                 (core dumped) ccx_preCICE -i Solid/test -precice-participant Calculix

It would be nice if we can inform the user what's wrong and how to fix it.

MakisH commented 3 years ago

@DavidSCN can we now consider this solved as well, after adding the assertion on the OpenFOAM side, or is there more to do here?

davidscn commented 3 years ago

What happens in case of SU2-CalculiX? I think it is still an open TODO in the calculix-adapter.

IshaanDesai commented 3 years ago

Closed in https://github.com/precice/calculix-adapter/pull/58