Adapt to simmetrix version 2024 breaking changes, else getting:
In file included from /tmp/ulrich/spack-stage/spack-stage-pumgen-develop-ka7zjktnacsvr64yndeb66rttqwc25x4/spack-src/src/pumgen.cpp:50:
/tmp/ulrich/spack-stage/spack-stage-pumgen-develop-ka7zjktnacsvr64yndeb66rttqwc25x4/spack-src/src/input/SimModSuite.h: In constructor 'SimModSuite::SimModSuite(const char*, int, const char*, const char*, const char*, const char*, int, const char*, bool, const char*)':
/tmp/ulrich/spack-stage/spack-stage-pumgen-develop-ka7zjktnacsvr64yndeb66rttqwc25x4/spack-src/src/input/SimModSuite.h:162:7: error: 'VolumeMesher_setSmoothing' was not declared in this scope; did you mean 'VolumeMesher_setSmoothType'?
162 | VolumeMesher_setSmoothing(volumeMesher, MeshAtt.volumeSmoothingLevel);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| VolumeMesher_setSmoothType
Also did the proposed changed by the support of simmetrix:
If you look at the GeomSim Release notes for SimModSuite 2024.0, you will see that GM_attManager now takes an additional argument.
We don't expose SModel_attManager through the API, you should change the code to use GM_attManager(), which is defined in SimModel.h.
Since you know in your code that your model contains an attribute manager (as it was saved in SimModeler), you can pass in false for the new argument create.
So your new call for line 451 would be:
pAManager attMngr = GM_attManager(m_model,false);
Adapt to simmetrix version 2024 breaking changes, else getting:
Also did the proposed changed by the support of simmetrix:
to avoid this other error:
I tested that it compiles with both 2023 and 2024 versions.