diff --git a/CMakeLists.txt b/CMakeLists.txt index e9997d4ce..55677084e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,20 +99,6 @@ endmacro (tests_hook) # all setup common to the OPM library modules is done here include (OpmLibMain) -# download Eigen if user doesn't have the correct version -if (NOT EIGEN3_FOUND) - message (STATUS "Downloading Eigen3") - include (ExternalProject) - externalProject_Add (Eigen3 - GIT_REPOSITORY git://github.com/OPM/eigen3 - UPDATE_COMMAND git checkout 9e788db99d73f3199ade74bfda8d9f73fdfbbe4c - CMAKE_ARGS -Wno-dev -DEIGEN_TEST_NO_OPENGL=1 -DEIGEN_BUILD_PKGCONFIG=0 -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/eigen3-installed - ) - - include_directories (${CMAKE_BINARY_DIR}/eigen3-installed/include/eigen3) - add_dependencies (opmsimulators Eigen3) -endif (NOT EIGEN3_FOUND) - if (HAVE_OPM_TESTS) include (${CMAKE_CURRENT_SOURCE_DIR}/compareECLFiles.cmake) endif() diff --git a/CMakeLists_files.cmake b/CMakeLists_files.cmake index cbcf7da45..1bea4eed9 100644 --- a/CMakeLists_files.cmake +++ b/CMakeLists_files.cmake @@ -25,26 +25,15 @@ list (APPEND MAIN_SOURCE_FILES opm/autodiff/Compat.cpp opm/autodiff/ExtractParallelGridInformationToISTL.cpp - opm/autodiff/NewtonIterationBlackoilInterleaved.cpp - opm/autodiff/NewtonIterationUtilities.cpp - opm/autodiff/GridHelpers.cpp opm/autodiff/moduleVersion.cpp - opm/autodiff/BlackoilPropsAdFromDeck.cpp - opm/autodiff/BlackoilModelParameters.cpp - opm/autodiff/WellDensitySegmented.cpp - opm/autodiff/LinearisedBlackoilResidual.cpp opm/autodiff/MPIUtilities.cpp opm/autodiff/VFPProdProperties.cpp - opm/autodiff/VFPProdPropertiesLegacy.cpp opm/autodiff/VFPInjProperties.cpp - opm/autodiff/VFPInjPropertiesLegacy.cpp opm/autodiff/MissingFeatures.cpp opm/core/props/rock/RockFromDeck.cpp opm/core/props/satfunc/RelpermDiagnostics.cpp - opm/core/props/satfunc/SaturationPropsFromDeck.cpp opm/core/simulator/BlackoilState.cpp opm/core/simulator/SimulatorReport.cpp - opm/core/utility/Event.cpp opm/core/wells/InjectionSpecification.cpp opm/core/wells/ProductionSpecification.cpp opm/core/wells/WellCollection.cpp @@ -60,34 +49,20 @@ list (APPEND MAIN_SOURCE_FILES opm/simulators/timestepping/gatherConvergenceReport.cpp ) -if(PETSc_FOUND) - list(APPEND MAIN_SOURCE_FILES opm/core/linalg/LinearSolverPetsc.cpp) -endif() - - # originally generated with the command: # find tests -name '*.cpp' -a ! -wholename '*/not-unit/*' -printf '\t%p\n' | sort list (APPEND TEST_SOURCE_FILES - tests/test_autodiffhelpers.cpp - tests/test_autodiffmatrix.cpp tests/test_blackoil_amg.cpp - tests/test_block.cpp tests/test_convergencereport.cpp tests/test_graphcoloring.cpp - tests/test_span.cpp - tests/test_syntax.cpp - tests/test_scalar_mult.cpp tests/test_vfpproperties.cpp tests/test_milu.cpp tests/test_multmatrixtransposed.cpp tests/test_wellmodel.cpp -# tests/test_thresholdpressure.cpp tests/test_wellswitchlogger.cpp tests/test_timer.cpp tests/test_invert.cpp - tests/test_event.cpp tests/test_wells.cpp - tests/test_equil_legacy.cpp tests/test_blackoilstate.cpp tests/test_wellsmanager.cpp tests/test_wellcontrols.cpp @@ -130,82 +105,38 @@ list (APPEND TEST_DATA_FILES ) -# originally generated with the command: -# find tutorials examples -name '*.c*' -printf '\t%p\n' | sort -list (APPEND EXAMPLE_SOURCE_FILES - examples/find_zero.cpp - ) - # originally generated with the command: # find opm -name '*.h*' -a ! -name '*-pch.hpp' -printf '\t%p\n' | sort list (APPEND PUBLIC_HEADER_FILES - opm/autodiff/AutoDiffBlock.hpp - opm/autodiff/AutoDiffHelpers.hpp - opm/autodiff/AutoDiffMatrix.hpp - opm/autodiff/AutoDiff.hpp + opm/autodiff/AquiferCarterTracy.hpp opm/autodiff/BlackoilAmg.hpp opm/autodiff/BlackoilDetails.hpp - opm/autodiff/BlackoilLegacyDetails.hpp - opm/autodiff/BlackoilModel.hpp - opm/autodiff/BlackoilModelBase.hpp - opm/autodiff/BlackoilModelBase_impl.hpp - opm/autodiff/BlackoilModelEnums.hpp - opm/autodiff/BlackoilModelParameters.hpp opm/autodiff/BlackoilModelParametersEbos.hpp - opm/autodiff/BlackoilPressureModel.hpp - opm/autodiff/BlackoilPropsAdFromDeck.hpp + opm/autodiff/BlackoilAquiferModel.hpp + opm/autodiff/BlackoilAquiferModel_impl.hpp opm/autodiff/Compat.hpp opm/autodiff/CPRPreconditioner.hpp opm/autodiff/createGlobalCellArray.hpp - opm/autodiff/DefaultBlackoilSolutionState.hpp - opm/autodiff/BlackoilSequentialModel.hpp - opm/autodiff/BlackoilReorderingTransportModel.hpp - opm/autodiff/BlackoilTransportModel.hpp - opm/autodiff/fastSparseOperations.hpp - opm/autodiff/DebugTimeReport.hpp - opm/autodiff/DuneMatrix.hpp opm/autodiff/ExtractParallelGridInformationToISTL.hpp opm/autodiff/FlowLinearSolverParameters.hpp - opm/autodiff/FlowMain.hpp opm/autodiff/FlowMainEbos.hpp - opm/autodiff/FlowMainSequential.hpp - opm/autodiff/GeoProps.hpp opm/autodiff/GraphColoring.hpp - opm/autodiff/GridHelpers.hpp - opm/autodiff/GridInit.hpp - opm/autodiff/ISTLSolver.hpp opm/autodiff/ISTLSolverEbos.hpp opm/autodiff/IterationReport.hpp opm/autodiff/moduleVersion.hpp - opm/autodiff/NewtonIterationBlackoilInterface.hpp - opm/autodiff/NewtonIterationBlackoilInterleaved.hpp - opm/autodiff/NewtonIterationUtilities.hpp - opm/autodiff/NonlinearSolver.hpp - opm/autodiff/NonlinearSolver_impl.hpp opm/autodiff/NonlinearSolverEbos.hpp - opm/autodiff/LinearisedBlackoilResidual.hpp - opm/autodiff/ParallelDebugOutput.hpp opm/autodiff/ParallelOverlappingILU0.hpp opm/autodiff/ParallelRestrictedAdditiveSchwarz.hpp opm/autodiff/RateConverter.hpp - opm/autodiff/RedistributeDataHandles.hpp opm/autodiff/SimFIBODetails.hpp - opm/autodiff/SimulatorBase.hpp - opm/autodiff/SimulatorBase_impl.hpp opm/autodiff/SimulatorFullyImplicitBlackoilEbos.hpp - opm/autodiff/SimulatorFullyImplicitBlackoil.hpp - opm/autodiff/SimulatorSequentialBlackoil.hpp opm/autodiff/WellConnectionAuxiliaryModule.hpp - opm/autodiff/WellDensitySegmented.hpp opm/autodiff/WellStateFullyImplicitBlackoil.hpp - opm/autodiff/ThreadHandle.hpp opm/autodiff/VFPProperties.hpp opm/autodiff/VFPHelpers.hpp - opm/autodiff/VFPProdProperties.hpp opm/autodiff/VFPInjProperties.hpp + opm/autodiff/VFPProdProperties.hpp opm/autodiff/WellHelpers.hpp - opm/autodiff/StandardWells.hpp - opm/autodiff/StandardWells_impl.hpp opm/autodiff/WellInterface.hpp opm/autodiff/WellInterface_impl.hpp opm/autodiff/StandardWell.hpp @@ -216,41 +147,18 @@ list (APPEND PUBLIC_HEADER_FILES opm/autodiff/BlackoilWellModel.hpp opm/autodiff/BlackoilWellModel_impl.hpp opm/autodiff/MissingFeatures.hpp - opm/core/linalg/LinearSolverPetsc.hpp opm/core/linalg/ParallelIstlInformation.hpp - opm/core/pressure/legacy_well.h - opm/core/pressure/tpfa/compr_quant_general.h - opm/core/pressure/tpfa/compr_source.h opm/core/props/BlackoilPhases.hpp opm/core/props/BlackoilPropertiesInterface.hpp - opm/core/props/IncompPropertiesInterface.hpp - opm/core/props/IncompPropertiesShadow.hpp - opm/core/props/IncompPropertiesShadow_impl.hpp opm/core/props/phaseUsageFromDeck.hpp - opm/core/props/pvt/ThermalGasPvtWrapper.hpp - opm/core/props/pvt/ThermalOilPvtWrapper.hpp - opm/core/props/pvt/ThermalWaterPvtWrapper.hpp opm/core/props/rock/RockFromDeck.hpp opm/core/props/satfunc/RelpermDiagnostics.hpp - opm/core/props/satfunc/SaturationPropsInterface.hpp opm/core/props/satfunc/RelpermDiagnostics_impl.hpp opm/core/simulator/BlackoilState.hpp opm/core/simulator/BlackoilStateToFluidState.hpp - opm/core/simulator/EquilibrationHelpers.hpp - opm/core/simulator/ExplicitArraysFluidState.hpp - opm/core/simulator/ExplicitArraysSatDerivativesFluidState.hpp opm/core/simulator/SimulatorReport.hpp opm/core/simulator/WellState.hpp - opm/core/simulator/initState.hpp - opm/core/simulator/initStateEquil.hpp - opm/core/simulator/initStateEquil_impl.hpp - opm/core/simulator/initState_impl.hpp - opm/core/utility/DataMap.hpp - opm/core/utility/Event.hpp - opm/core/utility/Event_impl.hpp opm/core/utility/initHydroCarbonState.hpp - opm/core/utility/miscUtilities_impl.hpp - opm/core/utility/share_obj.hpp opm/core/well_controls.h opm/core/wells.h opm/core/wells/InjectionSpecification.hpp @@ -260,18 +168,10 @@ list (APPEND PUBLIC_HEADER_FILES opm/core/wells/WellsManager.hpp opm/core/wells/DynamicListEconLimited.hpp opm/core/wells/WellsManager_impl.hpp - opm/polymer/GravityColumnSolverPolymer.hpp - opm/polymer/GravityColumnSolverPolymer_impl.hpp - opm/polymer/IncompPropertiesDefaultPolymer.hpp opm/polymer/PolymerBlackoilState.hpp - opm/polymer/SinglePointUpwindTwoPhasePolymer.hpp - opm/polymer/Point2D.hpp opm/simulators/ParallelFileMerger.hpp - opm/simulators/thresholdPressures.hpp opm/simulators/WellSwitchingLogger.hpp opm/simulators/timestepping/AdaptiveSimulatorTimer.hpp - opm/simulators/timestepping/AdaptiveTimeStepping.hpp - opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp opm/simulators/timestepping/AdaptiveTimeSteppingEbos.hpp opm/simulators/timestepping/ConvergenceReport.hpp opm/simulators/timestepping/TimeStepControl.hpp diff --git a/compareECLFiles.cmake b/compareECLFiles.cmake index 89c842752..d76bf6b0a 100755 --- a/compareECLFiles.cmake +++ b/compareECLFiles.cmake @@ -144,13 +144,11 @@ set(abs_tol 2e-2) set(rel_tol 1e-5) set(coarse_rel_tol 1e-2) -foreach(SIM flow flow_legacy) - add_test_compareECLFiles(CASENAME spe1 - FILENAME SPE1CASE2 - SIMULATOR ${SIM} - ABS_TOL ${abs_tol} - REL_TOL ${coarse_rel_tol}) -endforeach() +add_test_compareECLFiles(CASENAME spe1 + FILENAME SPE1CASE2 + SIMULATOR flow + ABS_TOL ${abs_tol} + REL_TOL ${coarse_rel_tol}) add_test_compareECLFiles(CASENAME spe1_2p FILENAME SPE1CASE2_2P @@ -159,13 +157,6 @@ add_test_compareECLFiles(CASENAME spe1_2p REL_TOL ${rel_tol} DIR spe1) -add_test_compareECLFiles(CASENAME spe1_2p - FILENAME SPE1CASE2_2P - SIMULATOR flow_legacy - ABS_TOL ${abs_tol} - REL_TOL ${coarse_rel_tol} - DIR spe1) - add_test_compareECLFiles(CASENAME spe1_oilgas FILENAME SPE1CASE2_OILGAS SIMULATOR flow @@ -173,12 +164,6 @@ add_test_compareECLFiles(CASENAME spe1_oilgas REL_TOL ${coarse_rel_tol} DIR spe1) -add_test_compareECLFiles(CASENAME spe1 - FILENAME SPE1CASE1 - SIMULATOR flow_sequential - ABS_TOL ${abs_tol} - REL_TOL ${rel_tol}) - add_test_compareECLFiles(CASENAME spe1 FILENAME SPE1CASE1 SIMULATOR flow @@ -221,20 +206,11 @@ add_test_compareECLFiles(CASENAME spe3 REL_TOL ${coarse_rel_tol} TEST_ARGS --tolerance-wells=1e-6 --flow-newton-max-iterations=20) -add_test_compareECLFiles(CASENAME spe3 - FILENAME SPE3CASE1 - SIMULATOR flow_legacy +add_test_compareECLFiles(CASENAME spe9 + FILENAME SPE9_CP_SHORT + SIMULATOR flow ABS_TOL ${abs_tol} - REL_TOL ${coarse_rel_tol} - TEST_ARGS tolerance_wells=1e-6 max_iter=20) - -foreach(SIM flow flow_legacy) - add_test_compareECLFiles(CASENAME spe9 - FILENAME SPE9_CP_SHORT - SIMULATOR ${SIM} - ABS_TOL ${abs_tol} - REL_TOL ${rel_tol}) -endforeach() + REL_TOL ${rel_tol}) add_test_compareECLFiles(CASENAME spe9group FILENAME SPE9_CP_GROUP @@ -310,18 +286,16 @@ opm_set_test_driver(${PROJECT_SOURCE_DIR}/tests/run-restart-regressionTest.sh "" # Cruder tolerances for the restarted tests set(abs_tol_restart 2e-1) set(rel_tol_restart 4e-5) -foreach(sim flow flow_legacy) - add_test_compare_restarted_simulation(CASENAME spe1 - FILENAME SPE1CASE2_ACTNUM - SIMULATOR ${sim} - ABS_TOL ${abs_tol_restart} - REL_TOL ${rel_tol_restart}) - add_test_compare_restarted_simulation(CASENAME spe9 - FILENAME SPE9_CP_SHORT - SIMULATOR ${sim} - ABS_TOL ${abs_tol_restart} - REL_TOL ${rel_tol_restart}) -endforeach() +add_test_compare_restarted_simulation(CASENAME spe1 + FILENAME SPE1CASE2_ACTNUM + SIMULATOR flow + ABS_TOL ${abs_tol_restart} + REL_TOL ${rel_tol_restart}) +add_test_compare_restarted_simulation(CASENAME spe9 + FILENAME SPE9_CP_SHORT + SIMULATOR flow + ABS_TOL ${abs_tol_restart} + REL_TOL ${rel_tol_restart}) # PORV test opm_set_test_driver(${PROJECT_SOURCE_DIR}/tests/run-porv-acceptanceTest.sh "") @@ -336,15 +310,13 @@ add_test_compareECLFiles(CASENAME norne # Init tests opm_set_test_driver(${PROJECT_SOURCE_DIR}/tests/run-init-regressionTest.sh "") -foreach(sim flow flow_legacy) - add_test_compareECLFiles(CASENAME norne - FILENAME NORNE_ATW2013 - SIMULATOR ${sim} - ABS_TOL ${abs_tol} - REL_TOL ${rel_tol} - PREFIX compareECLInitFiles - DIR_PREFIX /init) -endforeach() +add_test_compareECLFiles(CASENAME norne + FILENAME NORNE_ATW2013 + SIMULATOR flow + ABS_TOL ${abs_tol} + REL_TOL ${rel_tol} + PREFIX compareECLInitFiles + DIR_PREFIX /init) # Parallel tests if(MPI_FOUND) diff --git a/debian/control b/debian/control index 6e06929b1..0a15b72d5 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Build-Depends: build-essential, debhelper (>= 9), libboost-filesystem-dev, libdune-common-dev, libdune-istl-dev, cmake, libtinyxml-dev, bc, libecl-dev, git, zlib1g-dev, libtool, doxygen, texlive-latex-extra, texlive-latex-recommended, ghostscript, - libopm-material-dev, libeigen3-dev, + libopm-material-dev, libboost-iostreams-dev, libopm-common-dev, libopm-grid-dev, libdune-grid-dev, libtrilinos-zoltan-dev, libopenmpi-dev, mpi-default-bin, libewoms-dev diff --git a/opm-simulators-prereqs.cmake b/opm-simulators-prereqs.cmake index c592be185..d2bb1557e 100644 --- a/opm-simulators-prereqs.cmake +++ b/opm-simulators-prereqs.cmake @@ -31,8 +31,6 @@ set (opm-simulators_DEPS "LAPACK REQUIRED" # Look for MPI support "MPI" - # PETSc numerical backend - "PETSc" # Tim Davis' SuiteSparse archive "SuiteSparse COMPONENTS umfpack" # SuperLU direct solver @@ -42,8 +40,6 @@ set (opm-simulators_DEPS "opm-material REQUIRED" "opm-grid REQUIRED" "ewoms REQUIRED" - # Eigen - "Eigen3 3.2.0" ) find_package_deps(opm-simulators) diff --git a/redhat/opm-simulators.spec b/redhat/opm-simulators.spec index 463731d76..2831d4a25 100644 --- a/redhat/opm-simulators.spec +++ b/redhat/opm-simulators.spec @@ -18,7 +18,7 @@ BuildRequires: git suitesparse-devel doxygen bc devtoolset-6-toolchain BuildRequires: opm-grid-devel opm-grid-openmpi-devel opm-grid-mpich-devel BuildRequires: ewoms-devel ewoms-openmpi-devel ewoms-mpich-devel BuildRequires: opm-material-devel opm-material-openmpi-devel opm-material-mpich-devel -BuildRequires: tinyxml-devel dune-istl-devel eigen3-devel ecl-devel zlib-devel +BuildRequires: tinyxml-devel dune-istl-devel ecl-devel zlib-devel BuildRequires: openmpi-devel trilinos-openmpi-devel ptscotch-openmpi-devel scotch-devel BuildRequires: mpich-devel trilinos-mpich-devel ptscotch-mpich-devel BuildRequires: opm-common-devel opm-common-openmpi-devel opm-common-mpich-devel diff --git a/tests/run-init-regressionTest.sh b/tests/run-init-regressionTest.sh index 11d7643bd..d9457db20 100755 --- a/tests/run-init-regressionTest.sh +++ b/tests/run-init-regressionTest.sh @@ -20,11 +20,7 @@ TEST_ARGS="$@" rm -Rf ${RESULT_PATH} mkdir -p ${RESULT_PATH} cd ${RESULT_PATH} -if test "${EXE_NAME}" = "flow"; then - ${BINPATH}/${EXE_NAME} ${TEST_ARGS} --enable-opm-rst-file=true --enable-dry-run=true --output-dir=${RESULT_PATH} -else - ${BINPATH}/${EXE_NAME} ${TEST_ARGS} enable-opm-rst-file=true nosim=true output_dir=${RESULT_PATH} -fi +${BINPATH}/${EXE_NAME} ${TEST_ARGS} --enable-opm-rst-file=true --enable-dry-run=true --output-dir=${RESULT_PATH} cd .. ecode=0 diff --git a/tests/run-parallel-regressionTest.sh b/tests/run-parallel-regressionTest.sh index 219116184..b6d6b052c 100755 --- a/tests/run-parallel-regressionTest.sh +++ b/tests/run-parallel-regressionTest.sh @@ -18,20 +18,12 @@ TEST_ARGS="$@" rm -Rf ${RESULT_PATH} mkdir -p ${RESULT_PATH} cd ${RESULT_PATH} -if test "${EXE_NAME}" = "flow"; then - ${BINPATH}/${EXE_NAME} ${TEST_ARGS}.DATA --enable-opm-rst-file=true --linear-solver-reduction=1e-7 --tolerance-cnv=5e-6 --tolerance-mb=1e-8 --output-dir=${RESULT_PATH} -else - ${BINPATH}/${EXE_NAME} ${TEST_ARGS}.DATA enable-opm-rst-file=true linear_solver_reduction=1e-7 tolerance_cnv=5e-6 tolerance_mb=1e-8 output_dir=${RESULT_PATH} -fi +${BINPATH}/${EXE_NAME} ${TEST_ARGS}.DATA --enable-opm-rst-file=true --linear-solver-reduction=1e-7 --tolerance-cnv=5e-6 --tolerance-mb=1e-8 --output-dir=${RESULT_PATH} test $? -eq 0 || exit 1 mkdir mpi cd mpi -if test "${EXE_NAME}" = "flow"; then - mpirun -np 4 ${BINPATH}/${EXE_NAME} ${TEST_ARGS}.DATA --enable-opm-rst-file=true --linear-solver-reduction=1e-7 --tolerance-cnv=5e-6 --tolerance-mb=1e-8 --output-dir=${RESULT_PATH}/mpi -else - mpirun -np 4 ${BINPATH}/${EXE_NAME} ${TEST_ARGS}.DATA enable-opm-rst-file=true linear_solver_reduction=1e-7 tolerance_cnv=5e-6 tolerance_mb=1e-8 output_dir=${RESULT_PATH}/mpi -fi +mpirun -np 4 ${BINPATH}/${EXE_NAME} ${TEST_ARGS}.DATA --enable-opm-rst-file=true --linear-solver-reduction=1e-7 --tolerance-cnv=5e-6 --tolerance-mb=1e-8 --output-dir=${RESULT_PATH}/mpi test $? -eq 0 || exit 1 cd .. diff --git a/tests/run-porv-acceptanceTest.sh b/tests/run-porv-acceptanceTest.sh index 2f7f6ae82..458a41219 100755 --- a/tests/run-porv-acceptanceTest.sh +++ b/tests/run-porv-acceptanceTest.sh @@ -20,11 +20,7 @@ TEST_ARGS="$@" rm -Rf ${RESULT_PATH} mkdir -p ${RESULT_PATH} cd ${RESULT_PATH} -if test "${EXE_NAME}" = "flow"; then - ${BINPATH}/${EXE_NAME} ${TEST_ARGS} --enable-opm-rst-file=true --enable-dry-run=true --output-dir=${RESULT_PATH} -else - ${BINPATH}/${EXE_NAME} ${TEST_ARGS} enable-opm-rst-file=true nosim=true output_dir=${RESULT_PATH} -fi +${BINPATH}/${EXE_NAME} ${TEST_ARGS} --enable-opm-rst-file=true --enable-dry-run=true --output-dir=${RESULT_PATH} cd .. diff --git a/tests/run-regressionTest.sh b/tests/run-regressionTest.sh index 1ce66f9b4..5f8eea3d5 100755 --- a/tests/run-regressionTest.sh +++ b/tests/run-regressionTest.sh @@ -16,11 +16,7 @@ TEST_ARGS="$@" mkdir -p ${RESULT_PATH} cd ${RESULT_PATH} -if test "${EXE_NAME}" = "flow"; then - ${BINPATH}/${EXE_NAME} ${TEST_ARGS} --enable-opm-rst-file=true --output-dir=${RESULT_PATH} -else - ${BINPATH}/${EXE_NAME} ${TEST_ARGS} enable-opm-rst-file=true output_dir=${RESULT_PATH} -fi +${BINPATH}/${EXE_NAME} ${TEST_ARGS} --enable-opm-rst-file=true --output-dir=${RESULT_PATH} test $? -eq 0 || exit 1 cd .. diff --git a/tests/run-restart-regressionTest.sh b/tests/run-restart-regressionTest.sh index e57597d08..aa39a3345 100755 --- a/tests/run-restart-regressionTest.sh +++ b/tests/run-restart-regressionTest.sh @@ -28,21 +28,13 @@ then else CMD_PREFIX="" fi -if test "${EXE_NAME}" = "flow"; then - ${CMD_PREFIX} ${BINPATH}/${EXE_NAME} ${TEST_ARGS}.DATA --enable-adaptive-time-stepping=false --enable-opm-rst-file=true --output-dir=${RESULT_PATH} -else - ${CMD_PREFIX} ${BINPATH}/${EXE_NAME} ${TEST_ARGS}.DATA enable-opm-rst-file=true timestep.adaptive=false output_dir=${RESULT_PATH} -fi + ${CMD_PREFIX} ${BINPATH}/${EXE_NAME} ${TEST_ARGS}.DATA --enable-adaptive-time-stepping=false --enable-opm-rst-file=true --output-dir=${RESULT_PATH} test $? -eq 0 || exit 1 ${OPM_PACK_COMMAND} -o ${BASE_NAME} ${TEST_ARGS}_RESTART.DATA -if test "${EXE_NAME}" = "flow"; then - ${CMD_PREFIX} ${BINPATH}/${EXE_NAME} ${BASE_NAME} --enable-adaptive-time-stepping=false --enable-opm-rst-file=true --output-dir=${RESULT_PATH} -else - ${CMD_PREFIX} ${BINPATH}/${EXE_NAME} ${BASE_NAME} enable-opm-rst-file=true timestep.adaptive=false output_dir=${RESULT_PATH} -fi +${CMD_PREFIX} ${BINPATH}/${EXE_NAME} ${BASE_NAME} --enable-adaptive-time-stepping=false --enable-opm-rst-file=true --output-dir=${RESULT_PATH} test $? -eq 0 || exit 1 ecode=0