KratosMultiphysics / Kratos

Kratos Multiphysics (A.K.A Kratos) is a framework for building parallel multi-disciplinary simulation software. Modularity, extensibility and HPC are the main objectives. Kratos has BSD license and is written in C++ with extensive Python interface.
https://kratosmultiphysics.github.io/Kratos/
Other
1.05k stars 246 forks source link

Compilation error in PfemSolidMechanicsApplication #12224

Open gaoxiangchn opened 8 months ago

gaoxiangchn commented 8 months ago

Description Hello, everyone, I am interested in employing the PFEM in Geotechnicsand want to try the PfemSolidMechanicsApplication, However, some problem occurred. It is similar to #8765, and the #11347 proposed some solutions, unfortunately, it didn't work. but couldn't fix it. These problem codes seem to belong to older versions.

By the way, if it can not be fixed in short time, Could you give some advice on how to start apply the PFEM in Geotechnics or SolidMechanics.

Scope

To Reproduce add the PfemSolidMechanicsApplication to configure scripts and just compile it.

Expected behavior compilation error

Environment

roigcarlo commented 8 months ago

Hi @gaoxiangchn, PFEM/Solid applications in our repository is not being actively developed. Our main focus is on the Structural Mechanics application.

I ping @KratosMultiphysics/pfem in case someone from its maintainers can give you advice on how to find a more updated version.

gaoxiangchn commented 8 months ago

Hi @roigcarlo, thanks for your reply, @KratosMultiphysics/pfem seems to can not open, or have some access restrictions.

roigcarlo commented 8 months ago

Hi @gaoxiangchn, you don't have to open it, just wait for them to answer. They are notified when the group name appears in a issue

gaoxiangchn commented 8 months ago

Thanks again

lluis-mv commented 7 months ago

Hey @gaoxiangchn , I just created a pull request (#12247 ) fixing the compilation errors, Ll.

luchete80 commented 7 months ago

Hello @gaoxiangchn !! Formerly (on mswin) I had also trouble to build it (I made a pull request but finally it was solved). Master version is working for me right now on Ubuntu 22.04. Only thing I had to add in configure (cmake DUSE_TRIANGLE_NONFREE_TPL flag) was:

cmake -H"${KRATOS_SOURCE}" -B"${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}" \
-DUSE_MPI=OFF                                                       \
-DUSE_TRIANGLE_NONFREE_TPL=ON                                      \
-DUSE_EIGEN_MKL=OFF                                                 \
-DKRATOS_GENERATE_PYTHON_STUBS=ON    

On my site here I have described all steps. If you cannot buil master branch,this is my fork with some mods. This is the PR: Here #12311 is a list of modifications I made in order to use Pfem.

Problem is right now is crashing.