synthetik-technologies / blastfoam

A CFD solver for multi-component compressible flow with application to high-explosive detonation, explosive safety and air blast
Other
215 stars 96 forks source link

Compiling with solids4foam v2 and OpenFoam 9 #80

Open jackr25 opened 1 year ago

jackr25 commented 1 year ago

Hey there, I have tried numerous times on multiple systems, but I have had no luck getting blastfoam to completely compile after installing solids4foam and adding its directory to the bashrc. On both systems (one WSL w/ Ubuntu 22.04, one cluster w/ Red Hat 7.9), I get the same error,

In file included from blastFluid.C:31: /apps/easybuild/software/tinkercliffs-rome/OpenFOAM/9-foss-2021a/OpenFOAM-9/src/OpenFOAM/lnInclude/addToRunTimeSelectionTable.H:39:15: error: ‘addfluidConstructorToTable’ in ‘class Foam::physicsModel’ does not name a template type 39 | baseType::add##argNames##ConstructorToTable<thisType> \ | ^~~ /apps/easybuild/software/tinkercliffs-rome/OpenFOAM/9-foss-2021a/OpenFOAM-9/src/OpenFOAM/lnInclude/addToRunTimeSelectionTable.H:39:15: note: in definition of macro ‘addToRunTimeSelectionTable’ 39 | baseType::add##argNames##ConstructorToTable<thisType> \ | ^~~ make: *** [Make/linux64GccDPInt32Opt/blastFluid.o] Error 1

I have tried just compiling the solids4foam library under src, as well as cleaning and recompiling blastfoam entirely, with no luck. Is there a major step I could be missing, or is this a known issue?