precice / calculix-adapter

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

Prepare adapter for full integration #66

Open BenjaminRodenberg opened 3 years ago

BenjaminRodenberg commented 3 years ago

Goal: inline in the actual ccx code using #ifdefs

Note: I copied this issue from our internal list of todos to make it more visible. Please feel free to directly edit the header, if you can provide more details on the rationale behind this approach. I guess that one reason is that maintaining the Makefile of this adapter is painful, but I'm overview of the CalculiX adapter.

BenjaminRodenberg commented 3 years ago

unifdef might be a handy tool in this context. It allows to easily evaluate ifdefs and inline or remove the code inside of the ifdef-branch. Use-cases I have in mind: