Commit b1c7d3bc authored by GILLES Sebastien's avatar GILLES Sebastien

#1315 Apply the rewriting of Lua files to all embedded models. A setprecision...

#1315 Apply the rewriting of Lua files to all embedded models. A setprecision has been added to ensure keeping the double precision during the process.
parent b14957fb
......@@ -4667,6 +4667,11 @@
BECF3E3022E8D3A400FF951A /* main_update_lua_file.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main_update_lua_file.cpp; sourceTree = "<group>"; };
BECF3E3F22E98DDB00FF951A /* RewriteInputDataFile.hxx */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = RewriteInputDataFile.hxx; sourceTree = "<group>"; };
BECF3E4022E98DDB00FF951A /* RewriteInputDataFile.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = RewriteInputDataFile.hpp; sourceTree = "<group>"; };
BECF3E4422E99D5400FF951A /* main_update_lua_file.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main_update_lua_file.cpp; sourceTree = "<group>"; };
BECF3E4522E99DB400FF951A /* main_update_lua_file.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main_update_lua_file.cpp; sourceTree = "<group>"; };
BECF3E4622E99DCE00FF951A /* main_update_lua_file.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main_update_lua_file.cpp; sourceTree = "<group>"; };
BECF3E4722E99DF400FF951A /* main_update_lua_file.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main_update_lua_file.cpp; sourceTree = "<group>"; };
BECF3E4822E99E2C00FF951A /* main_update_lua_file.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = main_update_lua_file.cpp; path = RivlinCube/main_update_lua_file.cpp; sourceTree = "<group>"; };
BED13351206519C700A3B0AA /* Penalization.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Penalization.hxx; sourceTree = "<group>"; };
BED13352206519C800A3B0AA /* Penalization.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Penalization.hpp; sourceTree = "<group>"; };
BED748E41906734200BAB761 /* main_test_ondomatic_numbering.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main_test_ondomatic_numbering.cpp; sourceTree = "<group>"; };
......@@ -5521,6 +5526,7 @@
137F2B091E38B22900BD6083 /* InputData.hpp */,
137F2B0A1E38B22900BD6083 /* main.cpp */,
137F2B0B1E38B22900BD6083 /* main_ensight_output.cpp */,
BECF3E4522E99DB400FF951A /* main_update_lua_file.cpp */,
BE8E21C5207E76CA00E24E6D /* test_results.cpp */,
137F2B0C1E38B22900BD6083 /* Model.cpp */,
137F2B0D1E38B22900BD6083 /* Model.hpp */,
......@@ -5567,6 +5573,7 @@
13E8D79E1C0DF488009073DA /* InputData.hpp */,
13E8D79F1C0DF68D009073DA /* main.cpp */,
BEE31B931D997302006B1DE7 /* main_ensight_output.cpp */,
BECF3E4822E99E2C00FF951A /* main_update_lua_file.cpp */,
BE8E21CA207E9D5100E24E6D /* test_results.cpp */,
13E8D7971C0DF39F009073DA /* Model.cpp */,
13E8D7981C0DF39F009073DA /* Model.hpp */,
......@@ -8196,6 +8203,7 @@
BE5ECE2919AC85EA00C636A7 /* InputData.hpp */,
BE915A151AAF514900B4C474 /* main.cpp */,
BEE31B8D1D99692F006B1DE7 /* main_ensight_output_monolithic.cpp */,
BECF3E4622E99DCE00FF951A /* main_update_lua_file.cpp */,
BE8E21C7207E9D2100E24E6D /* test_results.cpp */,
BE5ECE2619AC85EA00C636A7 /* Model.cpp */,
BE5ECE2719AC85EA00C636A7 /* Model.hpp */,
......@@ -10368,6 +10376,7 @@
BEE072951FE177E2002D6EF1 /* InputData.hpp */,
BEE072961FE177E2002D6EF1 /* main.cpp */,
BEE072971FE177E2002D6EF1 /* main_ensight_output.cpp */,
BECF3E4722E99DF400FF951A /* main_update_lua_file.cpp */,
BE8E21C9207E9D3F00E24E6D /* test_results.cpp */,
BEE072981FE177E2002D6EF1 /* Model.cpp */,
BEE072991FE177E2002D6EF1 /* Model.hpp */,
......@@ -10547,6 +10556,7 @@
BEF282901A850E2800857342 /* InputData.hpp */,
BE4478881AA7415000665010 /* main.cpp */,
BEE31B911D99723F006B1DE7 /* main_ensight_output.cpp */,
BECF3E4422E99D5400FF951A /* main_update_lua_file.cpp */,
BE8B5FC0207BC43F00DC005E /* test_results.cpp */,
BEF282921A850E2800857342 /* HeatModel.cpp */,
BEF282931A850E2800857342 /* HeatModel.hpp */,
......@@ -23,8 +23,7 @@ target_link_libraries(MoReFEM4Elasticity
MoReFEM4Elasticity_lib)
apply_lto_if_supported(MoReFEM4Elasticity)
morefem_install(MoReFEM4Elasticity MoReFEM4Elasticity_lib)
add_executable(MoReFEM4ElasticityUpdateLuaFile ${CMAKE_CURRENT_LIST_DIR}/main_update_lua_file.cpp)
target_link_libraries(MoReFEM4ElasticityUpdateLuaFile
......@@ -35,6 +34,8 @@ add_executable(MoReFEM4ElasticityEnsightOutput ${CMAKE_CURRENT_LIST_DIR}/main_en
target_link_libraries(MoReFEM4ElasticityEnsightOutput
${MOREFEM_POST_PROCESSING})
morefem_install(MoReFEM4Elasticity MoReFEM4Elasticity_lib MoReFEM4ElasticityEnsightOutput MoReFEM4ElasticityUpdateLuaFile)
add_test(ElasticityModel3D
MoReFEM4Elasticity
......
......@@ -90,20 +90,20 @@ Domain1 = {
-- Index of the geometric mesh upon which the domain is defined (as defined in the present file). Might be
-- left empty if domain not limited to one mesh; at most one value is expected here.
-- Expected format: { VALUE1, VALUE2, ...}
mesh_index = {1},
mesh_index = { 1 },
-- List of dimensions encompassed by the domain. Might be left empty if no restriction at all upon
-- dimensions.
-- Expected format: { VALUE1, VALUE2, ...}
-- Constraint: value_in(v, {0, 1, 2, 3})
dimension_list = {2},
dimension_list = { 2 },
-- List of mesh labels encompassed by the domain. Might be left empty if no restriction at all upon mesh
-- labels. This parameter does not make sense if no mesh is defined for the domain.
-- Expected format: { VALUE1, VALUE2, ...}
mesh_label_list = {},
mesh_label_list = { },
-- List of geometric element types considered in the domain. Might be left empty if no restriction upon
......@@ -118,7 +118,7 @@ Domain1 = {
-- . Tetrahedron4, Tetrahedron10
-- . Hexahedron8, Hexahedron20, Hexahedron27.
-- Expected format: {"VALUE1", "VALUE2", ...}
geometric_element_type_list = {}
geometric_element_type_list = { }
} -- Domain1
......@@ -128,20 +128,20 @@ Domain2 = {
-- Index of the geometric mesh upon which the domain is defined (as defined in the present file). Might be
-- left empty if domain not limited to one mesh; at most one value is expected here.
-- Expected format: { VALUE1, VALUE2, ...}
mesh_index = {1},
mesh_index = { 1 },
-- List of dimensions encompassed by the domain. Might be left empty if no restriction at all upon
-- dimensions.
-- Expected format: { VALUE1, VALUE2, ...}
-- Constraint: value_in(v, {0, 1, 2, 3})
dimension_list = {1},
dimension_list = { 1 },
-- List of mesh labels encompassed by the domain. Might be left empty if no restriction at all upon mesh
-- labels. This parameter does not make sense if no mesh is defined for the domain.
-- Expected format: { VALUE1, VALUE2, ...}
mesh_label_list = {2},
mesh_label_list = { 2 },
-- List of geometric element types considered in the domain. Might be left empty if no restriction upon
......@@ -156,7 +156,7 @@ Domain2 = {
-- . Tetrahedron4, Tetrahedron10
-- . Hexahedron8, Hexahedron20, Hexahedron27.
-- Expected format: {"VALUE1", "VALUE2", ...}
geometric_element_type_list = {}
geometric_element_type_list = { }
} -- Domain2
......@@ -166,20 +166,20 @@ Domain3 = {
-- Index of the geometric mesh upon which the domain is defined (as defined in the present file). Might be
-- left empty if domain not limited to one mesh; at most one value is expected here.
-- Expected format: { VALUE1, VALUE2, ...}
mesh_index = {1},
mesh_index = { 1 },
-- List of dimensions encompassed by the domain. Might be left empty if no restriction at all upon
-- dimensions.
-- Expected format: { VALUE1, VALUE2, ...}
-- Constraint: value_in(v, {0, 1, 2, 3})
dimension_list = {},
dimension_list = { },
-- List of mesh labels encompassed by the domain. Might be left empty if no restriction at all upon mesh
-- labels. This parameter does not make sense if no mesh is defined for the domain.
-- Expected format: { VALUE1, VALUE2, ...}
mesh_label_list = {1},
mesh_label_list = { 1 },
-- List of geometric element types considered in the domain. Might be left empty if no restriction upon
......@@ -194,7 +194,7 @@ Domain3 = {
-- . Tetrahedron4, Tetrahedron10
-- . Hexahedron8, Hexahedron20, Hexahedron27.
-- Expected format: {"VALUE1", "VALUE2", ...}
geometric_element_type_list = {}
geometric_element_type_list = { }
} -- Domain3
......@@ -204,20 +204,20 @@ Domain4 = {
-- Index of the geometric mesh upon which the domain is defined (as defined in the present file). Might be
-- left empty if domain not limited to one mesh; at most one value is expected here.
-- Expected format: { VALUE1, VALUE2, ...}
mesh_index = {1},
mesh_index = { 1 },
-- List of dimensions encompassed by the domain. Might be left empty if no restriction at all upon
-- dimensions.
-- Expected format: { VALUE1, VALUE2, ...}
-- Constraint: value_in(v, {0, 1, 2, 3})
dimension_list = {},
dimension_list = { },
-- List of mesh labels encompassed by the domain. Might be left empty if no restriction at all upon mesh
-- labels. This parameter does not make sense if no mesh is defined for the domain.
-- Expected format: { VALUE1, VALUE2, ...}
mesh_label_list = {},
mesh_label_list = { },
-- List of geometric element types considered in the domain. Might be left empty if no restriction upon
......@@ -232,7 +232,7 @@ Domain4 = {
-- . Tetrahedron4, Tetrahedron10
-- . Hexahedron8, Hexahedron20, Hexahedron27.
-- Expected format: {"VALUE1", "VALUE2", ...}
geometric_element_type_list = {}
geometric_element_type_list = { }
} -- Domain4
......@@ -257,7 +257,7 @@ EssentialBoundaryCondition1 = {
-- Values at each of the relevant component.
-- Expected format: { VALUE1, VALUE2, ...}
value = {0, 0},
value = { 0, 0 },
-- Index of the domain onto which essential boundary condition is defined.
......@@ -293,17 +293,17 @@ FiniteElementSpace1 = {
-- List of all unknowns defined in the finite element space. Unknowns here must be defined in this file as
-- an 'Unknown' block; expected name/identifier is the name given there.
-- Expected format: {"VALUE1", "VALUE2", ...}
unknown_list = {'solid_displacement'},
unknown_list = { 'solid_displacement' },
-- List of the shape function to use for each unknown;
-- Expected format: {"VALUE1", "VALUE2", ...}
shape_function_list = {'P1b'},
shape_function_list = { 'P1b' },
-- List of the numbering subset to use for each unknown;
-- Expected format: { VALUE1, VALUE2, ...}
numbering_subset_list = {1}
numbering_subset_list = { 1 }
} -- FiniteElementSpace1
......@@ -323,17 +323,17 @@ FiniteElementSpace2 = {
-- List of all unknowns defined in the finite element space. Unknowns here must be defined in this file as
-- an 'Unknown' block; expected name/identifier is the name given there.
-- Expected format: {"VALUE1", "VALUE2", ...}
unknown_list = {'solid_displacement'},
unknown_list = { 'solid_displacement' },
-- List of the shape function to use for each unknown;
-- Expected format: {"VALUE1", "VALUE2", ...}
shape_function_list = {'P1'},
shape_function_list = { 'P1' },
-- List of the numbering subset to use for each unknown;
-- Expected format: { VALUE1, VALUE2, ...}
numbering_subset_list = {1}
numbering_subset_list = { 1 }
} -- FiniteElementSpace2
......@@ -433,7 +433,7 @@ Solid = {
-- ]]
-- where x, y and z are global coordinates. sin, cos, tan, exp and so forth require a 'math.' preffix.
-- Expected format: see the variant description...
value = 8.30769e+06
value = 8307692.02366862
}, -- YoungModulus
......@@ -459,7 +459,7 @@ Solid = {
-- ]]
-- where x, y and z are global coordinates. sin, cos, tan, exp and so forth require a 'math.' preffix.
-- Expected format: see the variant description...
value = 0.0384615
value = 0.0384615029585771
}, -- PoissonRatio
......@@ -478,7 +478,7 @@ TransientSource1 = {
-- etc...). Choose "ignore" if you do not want this parameter (in this case it will stay at nullptr).
-- Expected format: {"VALUE1", "VALUE2", ...}
-- Constraint: value_in(v, {'ignore', 'constant', 'lua_function','piecewise_constant_by_domain'})
nature = {'ignore', 'ignore', 'ignore'},
nature = { 'ignore', 'ignore', 'ignore' },
-- The values of the vectorial parameter; expected format is a table (opening = '{', closing = '} and
......@@ -494,7 +494,7 @@ TransientSource1 = {
-- ]]
-- where x, y and z are global coordinates. sin, cos, tan, exp and so forth require a 'math.' preffix.
-- Expected format: { VALUE1, VALUE2, ...}
value = {0, 0, 0}
value = { 0, 0, 0 }
} -- TransientSource1
......@@ -505,7 +505,7 @@ TransientSource2 = {
-- etc...). Choose "ignore" if you do not want this parameter (in this case it will stay at nullptr).
-- Expected format: {"VALUE1", "VALUE2", ...}
-- Constraint: value_in(v, {'ignore', 'constant', 'lua_function','piecewise_constant_by_domain'})
nature = {'constant', 'constant', 'constant'},
nature = { 'constant', 'constant', 'constant' },
-- The values of the vectorial parameter; expected format is a table (opening = '{', closing = '} and
......@@ -521,7 +521,7 @@ TransientSource2 = {
-- ]]
-- where x, y and z are global coordinates. sin, cos, tan, exp and so forth require a 'math.' preffix.
-- Expected format: { VALUE1, VALUE2, ...}
value = {0, 0.005, 0}
value = { 0, 0.005, 0 }
} -- TransientSource2
......
......@@ -29,7 +29,10 @@ add_executable(MoReFEM4HeatEnsightOutput ${CMAKE_CURRENT_LIST_DIR}/main_ensight_
target_link_libraries(MoReFEM4HeatEnsightOutput
${MOREFEM_POST_PROCESSING})
morefem_install(MoReFEM4HeatEnsightOutput)
add_executable(MoReFEM4HeatUpdateLuaFile ${CMAKE_CURRENT_LIST_DIR}/main_update_lua_file.cpp)
target_link_libraries(MoReFEM4HeatUpdateLuaFile ${MOREFEM_CORE})
morefem_install(MoReFEM4HeatEnsightOutput MoReFEM4HeatUpdateLuaFile)
add_executable(MoReFEM4HeatCheckResults ${CMAKE_CURRENT_LIST_DIR}/test_results.cpp)
target_link_libraries(MoReFEM4HeatCheckResults
......
//! \file
//
//
// main_update_lua_file.cpp
// MoReFEM
//
// Created by sebastien on 24/07/2019.
//Copyright © 2019 Inria. All rights reserved.
//
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Utilities/InputData/RewriteInputDataFile.hpp"
#include "Core/MoReFEMData/MoReFEMData.hpp"
#include "ModelInstances/Heat/InputData.hpp"
using namespace MoReFEM;
int main(int argc, char** argv)
{
using InputData = HeatNS::InputData;
try
{
MoReFEMData<InputData> morefem_data(argc, argv);
RewriteInputDataFile(morefem_data.GetInputData());
}
catch(const std::exception& e)
{
std::ostringstream oconv;
oconv << "Exception caught: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
......@@ -28,7 +28,10 @@ add_executable(MoReFEM4HyperelasticityEnsightOutput ${CMAKE_CURRENT_LIST_DIR}/ma
target_link_libraries(MoReFEM4HyperelasticityEnsightOutput
${MOREFEM_POST_PROCESSING})
morefem_install(MoReFEM4HyperelasticityEnsightOutput)
add_executable(MoReFEM4HyperelasticityUpdateLuaFile ${CMAKE_CURRENT_LIST_DIR}/main_update_lua_file.cpp)
target_link_libraries(MoReFEM4HyperelasticityUpdateLuaFile ${MOREFEM_CORE})
morefem_install(MoReFEM4HyperelasticityEnsightOutput MoReFEM4HyperelasticityUpdateLuaFile)
add_executable(MoReFEM4HyperelasticityCheckResults ${CMAKE_CURRENT_LIST_DIR}/test_results.cpp)
target_link_libraries(MoReFEM4HyperelasticityCheckResults
......
//! \file
//
//
// main_update_lua_file.cpp
// MoReFEM
//
// Created by sebastien on 24/07/2019.
//Copyright © 2019 Inria. All rights reserved.
//
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Utilities/InputData/RewriteInputDataFile.hpp"
#include "Core/MoReFEMData/MoReFEMData.hpp"
#include "ModelInstances/Hyperelasticity/InputData.hpp"
using namespace MoReFEM;
int main(int argc, char** argv)
{
using InputData = MidpointHyperelasticityNS::InputData;
try
{
MoReFEMData<InputData> morefem_data(argc, argv);
RewriteInputDataFile(morefem_data.GetInputData());
}
catch(const std::exception& e)
{
std::ostringstream oconv;
oconv << "Exception caught: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
......@@ -29,7 +29,10 @@ add_executable(MoReFEM4LaplacianEnsightOutput ${CMAKE_CURRENT_LIST_DIR}/main_ens
target_link_libraries(MoReFEM4LaplacianEnsightOutput
${MOREFEM_POST_PROCESSING})
morefem_install(MoReFEM4LaplacianEnsightOutput)
add_executable(MoReFEM4LaplacianUpdateLuaFile ${CMAKE_CURRENT_LIST_DIR}/main_update_lua_file.cpp)
target_link_libraries(MoReFEM4LaplacianUpdateLuaFile ${MOREFEM_CORE})
morefem_install(MoReFEM4LaplacianEnsightOutput MoReFEM4LaplacianUpdateLuaFile)
add_test(Laplacian
MoReFEM4Laplacian
......
//! \file
//
//
// main_update_lua_file.cpp
// MoReFEM
//
// Created by sebastien on 24/07/2019.
//Copyright © 2019 Inria. All rights reserved.
//
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Utilities/InputData/RewriteInputDataFile.hpp"
#include "Core/MoReFEMData/MoReFEMData.hpp"
#include "ModelInstances/Laplacian/InputData.hpp"
using namespace MoReFEM;
int main(int argc, char** argv)
{
using InputData = LaplacianNS::InputData;
try
{
MoReFEMData<InputData> morefem_data(argc, argv);
RewriteInputDataFile(morefem_data.GetInputData());
}
catch(const std::exception& e)
{
std::ostringstream oconv;
oconv << "Exception caught: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
......@@ -31,7 +31,10 @@ add_executable(MoReFEM4RivlinCubeEnsightOutput ${CMAKE_CURRENT_LIST_DIR}/main_en
target_link_libraries(MoReFEM4RivlinCubeEnsightOutput
${MOREFEM_POST_PROCESSING})
morefem_install(MoReFEM4RivlinCubeEnsightOutput)
add_executable(MoReFEM4RivlinCubeUpdateLuaFile ${CMAKE_CURRENT_LIST_DIR}/main_update_lua_file.cpp)
target_link_libraries(MoReFEM4RivlinCubeUpdateLuaFile ${MOREFEM_CORE})
morefem_install(MoReFEM4RivlinCubeEnsightOutput MoReFEM4RivlinCubeUpdateLuaFile)
add_test(RivlinCubeHexa
......@@ -40,7 +43,7 @@ add_test(RivlinCubeHexa
-i ${MOREFEM_ROOT}/Sources/ModelInstances/RivlinCube/demo_input_rivlin_cube_hexahedra.lua
-e MOREFEM_RESULT_DIR=${MOREFEM_TEST_OUTPUT_DIR}/Seq)
set_tests_properties(RivlinCubeHexa PROPERTIES TIMEOUT 2)
set_tests_properties(RivlinCubeHexa PROPERTIES TIMEOUT 10)
add_test(RivlinCubeHexa-mpi
${OPEN_MPI_INCL_DIR}/../bin/mpirun
......@@ -50,7 +53,7 @@ add_test(RivlinCubeHexa-mpi
-i ${MOREFEM_ROOT}/Sources/ModelInstances/RivlinCube/demo_input_rivlin_cube_hexahedra.lua
-e MOREFEM_RESULT_DIR=${MOREFEM_TEST_OUTPUT_DIR}/Mpi4)
set_tests_properties(RivlinCubeHexa-mpi PROPERTIES TIMEOUT 2)
set_tests_properties(RivlinCubeHexa-mpi PROPERTIES TIMEOUT 10)
add_test(RivlinCubeTetra
MoReFEM4RivlinCube
......@@ -58,7 +61,7 @@ add_test(RivlinCubeTetra
-i ${MOREFEM_ROOT}/Sources/ModelInstances/RivlinCube/demo_input_rivlin_cube_tetrahedra.lua
-e MOREFEM_RESULT_DIR=${MOREFEM_TEST_OUTPUT_DIR}/Seq)
set_tests_properties(RivlinCubeTetra PROPERTIES TIMEOUT 2)
set_tests_properties(RivlinCubeTetra PROPERTIES TIMEOUT 10)
add_test(RivlinCubeTetra-mpi
${OPEN_MPI_INCL_DIR}/../bin/mpirun
......@@ -68,7 +71,7 @@ add_test(RivlinCubeTetra-mpi
-i ${MOREFEM_ROOT}/Sources/ModelInstances/RivlinCube/demo_input_rivlin_cube_tetrahedra.lua
-e MOREFEM_RESULT_DIR=${MOREFEM_TEST_OUTPUT_DIR}/Mpi4)
set_tests_properties(RivlinCubeTetra-mpi PROPERTIES TIMEOUT 2)
set_tests_properties(RivlinCubeTetra-mpi PROPERTIES TIMEOUT 10)
add_test(RivlinCubeModelEnsightOutputHexa
MoReFEM4RivlinCubeEnsightOutput
......@@ -76,7 +79,7 @@ add_test(RivlinCubeModelEnsightOutputHexa
-i ${MOREFEM_TEST_OUTPUT_DIR}/Seq/RivlinCube/Hexahedra/input_data.lua
-e MOREFEM_RESULT_DIR=${MOREFEM_TEST_OUTPUT_DIR}/Seq)
set_tests_properties(RivlinCubeModelEnsightOutputHexa PROPERTIES TIMEOUT 2)
set_tests_properties(RivlinCubeModelEnsightOutputHexa PROPERTIES TIMEOUT 10)
add_test(RivlinCubeModelEnsightOutputHexa-mpi
MoReFEM4RivlinCubeEnsightOutput
......@@ -84,7 +87,7 @@ add_test(RivlinCubeModelEnsightOutputHexa-mpi
-i ${MOREFEM_TEST_OUTPUT_DIR}/Mpi4/RivlinCube/Hexahedra/input_data.lua
-e MOREFEM_RESULT_DIR=${MOREFEM_TEST_OUTPUT_DIR}/Mpi4)
set_tests_properties(RivlinCubeModelEnsightOutputHexa-mpi PROPERTIES TIMEOUT 2)
set_tests_properties(RivlinCubeModelEnsightOutputHexa-mpi PROPERTIES TIMEOUT 10)
add_test(RivlinCubeModelEnsightOutputTetra
MoReFEM4RivlinCubeEnsightOutput
......@@ -92,7 +95,7 @@ add_test(RivlinCubeModelEnsightOutputTetra
-i ${MOREFEM_TEST_OUTPUT_DIR}/Seq/RivlinCube/Tetrahedra/input_data.lua
-e MOREFEM_RESULT_DIR=${MOREFEM_TEST_OUTPUT_DIR}/Seq)
set_tests_properties(RivlinCubeModelEnsightOutputTetra PROPERTIES TIMEOUT 2)
set_tests_properties(RivlinCubeModelEnsightOutputTetra PROPERTIES TIMEOUT 10)
add_test(RivlinCubeModelEnsightOutputTetra-mpi
MoReFEM4RivlinCubeEnsightOutput
......@@ -100,7 +103,7 @@ add_test(RivlinCubeModelEnsightOutputTetra-mpi
-i ${MOREFEM_TEST_OUTPUT_DIR}/Mpi4/RivlinCube/Tetrahedra/input_data.lua
-e MOREFEM_RESULT_DIR=${MOREFEM_TEST_OUTPUT_DIR}/Mpi4)
set_tests_properties(RivlinCubeModelEnsightOutputTetra-mpi PROPERTIES TIMEOUT 2)
set_tests_properties(RivlinCubeModelEnsightOutputTetra-mpi PROPERTIES TIMEOUT 10)
add_executable(MoReFEM4RivlinCubeCheckResults ${CMAKE_CURRENT_LIST_DIR}/test_results.cpp)
target_link_libraries(MoReFEM4RivlinCubeCheckResults
......@@ -113,4 +116,4 @@ add_test(RivlinCubeCheckResults
${MOREFEM_TEST_OUTPUT_DIR}
)
set_tests_properties(RivlinCubeCheckResults PROPERTIES TIMEOUT 2)
set_tests_properties(RivlinCubeCheckResults PROPERTIES TIMEOUT 10)
//! \file
//
//
// main_update_lua_file.cpp
// MoReFEM
//
// Created by sebastien on 24/07/2019.
//Copyright © 2019 Inria. All rights reserved.
//
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Utilities/InputData/RewriteInputDataFile.hpp"
#include "Core/MoReFEMData/MoReFEMData.hpp"
#include "ModelInstances/RivlinCube/InputData.hpp"
using namespace MoReFEM;
int main(int argc, char** argv)
{
using InputData = RivlinCubeNS::InputData;
try
{
MoReFEMData<InputData> morefem_data(argc, argv);
RewriteInputDataFile(morefem_data.GetInputData());
}
catch(const std::exception& e)
{
std::ostringstream oconv;
oconv << "Exception caught: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
......@@ -26,7 +26,10 @@ add_executable(MoReFEM4StokesEnsightOutput ${CMAKE_CURRENT_LIST_DIR}/main_ensigh
target_link_libraries(MoReFEM4StokesEnsightOutput
${MOREFEM_POST_PROCESSING})
morefem_install(MoReFEM4Stokes MoReFEM4Stokes_lib MoReFEM4StokesEnsightOutput)
add_executable(MoReFEM4StokesUpdateLuaFile ${CMAKE_CURRENT_LIST_DIR}/main_update_lua_file.cpp)
target_link_libraries(MoReFEM4StokesUpdateLuaFile ${MOREFEM_CORE})
morefem_install(MoReFEM4Stokes MoReFEM4Stokes_lib MoReFEM4StokesEnsightOutput MoReFEM4StokesUpdateLuaFile)
add_test(Stokes
MoReFEM4Stokes
......
This diff is collapsed.
//! \file
//
//
// main_update_lua_file.cpp
// MoReFEM
//
// Created by sebastien on 24/07/2019.
//Copyright © 2019 Inria. All rights reserved.
//
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Utilities/InputData/RewriteInputDataFile.hpp"
#include "Core/MoReFEMData/MoReFEMData.hpp"
#include "ModelInstances/Stokes/InputData.hpp"
using namespace MoReFEM;
int main(int argc, char** argv)
{
using InputData = StokesNS::InputData;
try
{
MoReFEMData<InputData> morefem_data(argc, argv);
RewriteInputDataFile(morefem_data.GetInputData());
}
catch(const std::exception& e)
{
std::ostringstream oconv;
oconv << "Exception caught: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
......@@ -15,6 +15,7 @@
# include <vector>
# include <sstream>
# include <variant>
# include <iomanip>
# include "Utilities/Miscellaneous.hpp"
# include "Utilities/Containers/Print.hpp"
......
......@@ -48,20 +48,20 @@ namespace MoReFEM::Internal::PrintPolicyNS
if constexpr (std::is_same<type, bool>())