combine the interFoam solver with an external solver written in FORTRAN
openfoam call fortran subroutines example
Quote:
Originally Posted by
botp
I am trying to combine the interFoam solver with an external solver written in FORTRAN. I had no problem combining the FORTRAN code with C++, but there seems to be something "OpenFOAM specific" corrupting the data of the FORTRAN solver. My best guess is that the automatic memory handling in OpenFOAM, unintended is freeing the memory of the FORTRAN
...