diff --git a/contrib/arc/CMakeLists.txt b/contrib/arc/CMakeLists.txt index 6f1ae0a17c4054ed34034b0dc88f0e66a5467145..2279812a9ebed9e31cd6ea4270f1db3ccae5ea9a 100644 --- a/contrib/arc/CMakeLists.txt +++ b/contrib/arc/CMakeLists.txt @@ -1,5 +1,6 @@ # pour boris: -include(/home/boris/MyGmshProjects/CMakeLists.txt) +## boris cela ne marche que si le fichier est dans SVN ... +#include(/home/boris/MyGmshProjects/CMakeLists.txt) # tests pour eric et christophe: list(APPEND EXTERNAL_INCLUDES contrib/arc) add_executable(elastic EXCLUDE_FROM_ALL contrib/arc/mainElasticity.cpp ${GMSH_SRC}) diff --git a/contrib/arc/mainElasticity.cpp b/contrib/arc/mainElasticity.cpp index 0c1601cdaf63166c6dd90108f64782355bcc6b8a..d7a911468b931629d24f9ed1446b3ca5a19a9e69 100644 --- a/contrib/arc/mainElasticity.cpp +++ b/contrib/arc/mainElasticity.cpp @@ -5,6 +5,7 @@ #include "highlevel.h" #include "groupOfElements.h" #include <iterator> + int main (int argc, char* argv[]) { @@ -29,7 +30,12 @@ int main (int argc, char* argv[]) PView *pv = mySolver.buildDisplacementView("displacement"); pv->getData()->writeMSH("disp.msh", false); delete pv; - + pv = mySolver.buildElasticEnergyView("elastic energy"); + pv->getData()->writeMSH("energ.msh", false); + delete pv; + + + // stop gmsh GmshFinalize();