Commit eca1f8a2 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

modularity

parent 72eb82d5
Pipeline #429 failed with stage
in 24 minutes and 19 seconds
#ifndef _SLIM_TPXO_H_ #ifndef _SLIM_TPXO_H_
#define _SLIM_TPXO_H_ #define _SLIM_TPXO_H_
#include "dgConfig.h"
#include "slimStructData.h" #include "slimStructData.h"
#include "dgDofContainer.h" #include "dgDofContainer.h"
#include "dgGroupOfElements.h" #include "dgGroupOfElements.h"
......
...@@ -4,14 +4,16 @@ set(SRC ...@@ -4,14 +4,16 @@ set(SRC
slimLim.cpp slimLim.cpp
) )
set(LIBS "")
option(ENABLE_LIM "Enable Lim" OFF) option(ENABLE_LIM "Enable Lim" OFF)
if(ENABLE_LIM) if(ENABLE_LIM)
add_subdirectory(LIM3) add_subdirectory(LIM3)
dg_set_module_option(HAVE_LIM "Lim") dg_set_module_option(HAVE_LIM "Lim")
dg_add_library("${CMAKE_CURRENT_BINARY_DIR}/LIM3/libLIM.a") list(APPEND LIBS "${CMAKE_CURRENT_BINARY_DIR}/LIM3/libLIM.a")
dg_add_library("${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES}") list(APPEND LIBS "${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES}")
endif(ENABLE_LIM) endif(ENABLE_LIM)
dg_add_module(dgSlimIce "${SRC}") dg_add_module(dgSlimIce "${SRC}" "${LIBS}")
dg_add_swig_module(slimIce slimIce.i dgSlimIce) dg_add_swig_module(slimIce slimIce.i dgSlimIce)
#dg_add_test_directory(tests alice.pestiaux@uclouvain.be) #dg_add_test_directory(tests alice.pestiaux@uclouvain.be)
...@@ -9,6 +9,6 @@ set(SRC ...@@ -9,6 +9,6 @@ set(SRC
dgTermControlVolumeFE.cpp dgTermControlVolumeFE.cpp
) )
dg_add_module(dgSubSurface "${SRC}") dg_add_module(dgSubSurface "${SRC}" "")
dg_add_swig_module(subsurface subsurface.i dgSubSurface) dg_add_swig_module(subsurface subsurface.i dgSubSurface)
dg_add_test_directory(tests thomas.demaet@uclouvain.be) dg_add_test_directory(tests thomas.demaet@uclouvain.be)
...@@ -3,6 +3,6 @@ set(SRC ...@@ -3,6 +3,6 @@ set(SRC
dgConservationLawCurlCurlDiffusion.cpp dgConservationLawCurlCurlDiffusion.cpp
) )
dg_add_module(dgSupra "${SRC}") dg_add_module(dgSupra "${SRC}" "")
dg_add_swig_module(supra supra.i dgSupra) dg_add_swig_module(supra supra.i dgSupra)
dg_add_test_directory(tests abelin.kameni@lgep.supelec.fr) dg_add_test_directory(tests abelin.kameni@lgep.supelec.fr)
...@@ -6,6 +6,6 @@ set(SRC ...@@ -6,6 +6,6 @@ set(SRC
sweNonHydro_h.cpp sweNonHydro_h.cpp
) )
dg_add_module(dgSweNonHydro "${SRC}") dg_add_module(dgSweNonHydro "${SRC}" "")
dg_add_swig_module(sweNonHydro sweNonHydro.i dgSweNonHydro) dg_add_swig_module(sweNonHydro sweNonHydro.i dgSweNonHydro)
#dg_add_test_directory(tests sebastien.blaise@uclouvain.be) #dg_add_test_directory(tests sebastien.blaise@uclouvain.be)
...@@ -5,6 +5,6 @@ set(SRC ...@@ -5,6 +5,6 @@ set(SRC
dgPmlParameters.cpp dgPmlParameters.cpp
) )
dg_add_module(dgWave "${SRC}") dg_add_module(dgWave "${SRC}" "")
dg_add_swig_module(wave wave.i dgWave) dg_add_swig_module(wave wave.i dgWave)
dg_add_test_directory(tests axel.modave@gmail.com) dg_add_test_directory(tests axel.modave@gmail.com)
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#if defined(HAVE_PETSC) #if defined(HAVE_PETSC)
#include "petsc.h" #include "petsc.h"
#endif #endif
#include "mpi.h"
int Msg::_commRank = 0; int Msg::_commRank = 0;
int Msg::_commSize = 1; int Msg::_commSize = 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment