Skip to content
Snippets Groups Projects
Commit 4c17500a authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'fix/pnm-example' into 'master'

[example][pnm] Two fixes for the example

See merge request !3530

(cherry picked from commit e3239fa5)

8d1c4816 [example][pnm][test] Fix CMake guard and add label
323df2ce [examples][pnm] Add missing initialize call
parent 3dd11035
No related branches found
No related tags found
1 merge request!3531Merge branch 'fix/pnm-example' into 'master'
Pipeline #31162 passed
Pipeline: dumux

#31168

    Pipeline: dumux

    #31167

      Pipeline: dumux

      #31166

        +3
        ......@@ -3,7 +3,7 @@ dune_symlink_to_source_files(FILES "params.input")
        dumux_add_test(NAME example_pnm1p_upscaling
        LABELS porenetwork example
        SOURCES main.cc
        CMAKE_GUARD HAVE_UMFPACK dune-foamgrid_FOUND
        CMAKE_GUARD "( HAVE_UMFPACK AND dune-foamgrid_FOUND )"
        COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
        CMD_ARGS --script fuzzyData --delimiter " "
        --files ${CMAKE_SOURCE_DIR}/test/references/example_porenetwork_upscaling_noncreeping_flow_X-dir_PermeabilityratioVsForchheimerNumber.dat
        ......@@ -14,6 +14,7 @@ dumux_add_test(NAME example_pnm1p_upscaling
        dumux_add_test(NAME example_pnm1p_creeping_flow_upscaling
        TARGET example_pnm1p_upscaling
        CMAKE_GUARD HAVE_UMFPACK dune-foamgrid_FOUND
        LABELS porenetwork example
        CMAKE_GUARD "( HAVE_UMFPACK AND dune-foamgrid_FOUND )"
        COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
        CMD_ARGS --command "${CMAKE_CURRENT_BINARY_DIR}/example_pnm1p_upscaling params.input -Problem.AssumeCreepingFlow true")
        ......@@ -249,6 +249,9 @@ int main(int argc, char** argv)
        {
        using namespace Dumux;
        // Initialize MPI+X environment
        Dumux::initialize(argc, argv);
        // We parse the command line arguments.
        Parameters::init(argc, argv);
        ......
        ......@@ -223,6 +223,9 @@ int main(int argc, char** argv)
        {
        using namespace Dumux;
        // Initialize MPI+X environment
        Dumux::initialize(argc, argv);
        // We parse the command line arguments.
        Parameters::init(argc, argv);
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment