ForestClaw / forestclaw

Quadtree/octree adaptive PDE solver based based on p4est.
http://www.forestclaw.org
BSD 2-Clause "Simplified" License
58 stars 21 forks source link

Compiler error on Linux #158

Closed tim-griesbach closed 2 years ago

tim-griesbach commented 2 years ago

Description

The compiler ( gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0) gives an error for the compilation of the current forestclaw master (e861b56ee35da5b82f7337075423bc99bcbefe0e) and develop (14ae9be1071abe2af8ba54ea9a9f0c18677ecf3d) branch.

The output of the compiler:

In file included from ../forestclaw/src/fclaw_base.h:43:0,
                 from ../forestclaw/src/forestclaw2d.h:29,
                 from ../forestclaw/src/patches/clawpatch/fort_user/../fclaw3dx_clawpatch.h:31,
                 from ../forestclaw/src/patches/clawpatch/fort_user/fclaw2d_clawpatch_exceeds_threshold.c:21,
                 from ../forestclaw/src/patches/clawpatch/fort_user/fclaw3dx_clawpatch_exceeds_threshold.c:29:
../forestclaw/src/patches/clawpatch/fort_user/../fclaw2d_clawpatch_fort.h:584:34: error: conflicting types for ‘user_exceeds_th_’
                   FCLAW_F77_FUNC(user_exceeds_th, \
                                  ^
./src/fclaw_config.h:174:35: note: in definition of macro ‘FCLAW_F77_FUNC’
 #define FCLAW_F77_FUNC(name,NAME) name ## _
                                   ^~~~
../forestclaw/src/patches/clawpatch/fort_user/../fclaw2d_clawpatch_fort.h:588:5: note: in expansion of macro ‘USER_EXCEEDS_TH’
 int USER_EXCEEDS_TH(const int *blockno,
     ^~~~~~~~~~~~~~~
../forestclaw/src/patches/clawpatch/fclaw3dx_clawpatch_fort.h:713:40: note: previous declaration of ‘user_exceeds_th_’ was here
 #define USER_EXCEEDS_TH FCLAW_F77_FUNC(user_exceeds_th, \
                                        ^
./src/fclaw_config.h:174:35: note: in definition of macro ‘FCLAW_F77_FUNC’
 #define FCLAW_F77_FUNC(name,NAME) name ## _
                                   ^~~~
../forestclaw/src/patches/clawpatch/fclaw3dx_clawpatch_fort.h:717:5: note: in expansion of macro ‘USER_EXCEEDS_TH’
 int USER_EXCEEDS_TH(const int *blockno,
     ^~~~~~~~~~~~~~~
In file included from ../forestclaw/src/patches/clawpatch/fort_user/fclaw2d_clawpatch_exceeds_threshold.c:27:0,
                 from ../forestclaw/src/patches/clawpatch/fort_user/fclaw3dx_clawpatch_exceeds_threshold.c:29:
../forestclaw/src/_fclaw2d_to_fclaw3dx.h:72:0: warning: "FCLAW2D_CLAWPATCH_GET_REFINEMENT_CRITERIA" redefined
 #define FCLAW2D_CLAWPATCH_GET_REFINEMENT_CRITERIA FCLAW3DX_CLAWPATCH_GET_REFINEMENT_CRITERIA

In file included from ../forestclaw/src/patches/clawpatch/fort_user/fclaw2d_clawpatch_exceeds_threshold.c:24:0,
                 from ../forestclaw/src/patches/clawpatch/fort_user/fclaw3dx_clawpatch_exceeds_threshold.c:29:
../forestclaw/src/patches/clawpatch/fort_user/../fclaw2d_clawpatch_fort.h:456:0: note: this is the location of the previous definition
 #define FCLAW2D_CLAWPATCH_GET_REFINEMENT_CRITERIA \

In file included from ../forestclaw/src/patches/clawpatch/fort_user/fclaw2d_clawpatch_exceeds_threshold.c:27:0,
                 from ../forestclaw/src/patches/clawpatch/fort_user/fclaw3dx_clawpatch_exceeds_threshold.c:29:
../forestclaw/src/_fclaw2d_to_fclaw3dx.h:73:0: warning: "FCLAW2D_CLAWPATCH_EXCEEDS_THRESHOLD" redefined
 #define FCLAW2D_CLAWPATCH_EXCEEDS_THRESHOLD FCLAW3DX_CLAWPATCH_EXCEEDS_THRESHOLD

In file included from ../forestclaw/src/patches/clawpatch/fort_user/fclaw2d_clawpatch_exceeds_threshold.c:24:0,
                 from ../forestclaw/src/patches/clawpatch/fort_user/fclaw3dx_clawpatch_exceeds_threshold.c:29:
../forestclaw/src/patches/clawpatch/fort_user/../fclaw2d_clawpatch_fort.h:466:0: note: this is the location of the previous definition
 #define FCLAW2D_CLAWPATCH_EXCEEDS_THRESHOLD \

  FC       src/patches/clawpatch/fort3_4.6/fclaw3dx_clawpatch46_local_ghost_pack.lo
In file included from ../forestclaw/src/fclaw_base.h:43:0,
                 from ../forestclaw/src/forestclaw2d.h:29,
                 from ../forestclaw/src/patches/clawpatch/fort_user/../fclaw3dx_clawpatch.h:31,
                 from ../forestclaw/src/patches/clawpatch/fort_user/fclaw2d_clawpatch_exceeds_threshold.c:21,
                 from ../forestclaw/src/patches/clawpatch/fort_user/fclaw3dx_clawpatch_exceeds_threshold.c:29:
../forestclaw/src/patches/clawpatch/fclaw3dx_clawpatch_fort.h:586:34: error: conflicting types for ‘fclaw3dx_clawpatch_exceeds_threshold_’
                   FCLAW_F77_FUNC(fclaw3dx_clawpatch_exceeds_threshold, \
                                  ^
./src/fclaw_config.h:174:35: note: in definition of macro ‘FCLAW_F77_FUNC’
 #define FCLAW_F77_FUNC(name,NAME) name ## _
                                   ^~~~
../forestclaw/src/_fclaw2d_to_fclaw3dx.h:73:45: note: in expansion of macro ‘FCLAW3DX_CLAWPATCH_EXCEEDS_THRESHOLD’
 #define FCLAW2D_CLAWPATCH_EXCEEDS_THRESHOLD FCLAW3DX_CLAWPATCH_EXCEEDS_THRESHOLD
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../forestclaw/src/patches/clawpatch/fort_user/fclaw2d_clawpatch_exceeds_threshold.c:34:5: note: in expansion of macro ‘FCLAW2D_CLAWPATCH_EXCEEDS_THRESHOLD’
 int FCLAW2D_CLAWPATCH_EXCEEDS_THRESHOLD(const int* blockno,
     ^
../forestclaw/src/patches/clawpatch/fclaw3dx_clawpatch_fort.h:586:34: note: previous declaration of ‘fclaw3dx_clawpatch_exceeds_threshold_’ was here
                   FCLAW_F77_FUNC(fclaw3dx_clawpatch_exceeds_threshold, \
                                  ^
./src/fclaw_config.h:174:35: note: in definition of macro ‘FCLAW_F77_FUNC’
 #define FCLAW_F77_FUNC(name,NAME) name ## _
                                   ^~~~
../forestclaw/src/patches/clawpatch/fclaw3dx_clawpatch_fort.h:604:5: note: in expansion of macro ‘FCLAW3DX_CLAWPATCH_EXCEEDS_THRESHOLD’
 int FCLAW3DX_CLAWPATCH_EXCEEDS_THRESHOLD(const int *blockno,
     ^
In file included from ../forestclaw/src/patches/clawpatch/fort_user/fclaw3dx_clawpatch_exceeds_threshold.c:29:0:
../forestclaw/src/patches/clawpatch/fort_user/fclaw2d_clawpatch_exceeds_threshold.c: In function ‘fclaw3dx_clawpatch_exceeds_threshold_’:
../forestclaw/src/patches/clawpatch/fort_user/fclaw2d_clawpatch_exceeds_threshold.c:90:63: warning: passing argument 11 of ‘user_exceeds_threshold’ from incompatible pointer type [-Wincompatible-pointer-types]
                                                 tag_threshold,init_flag, is_ghost);
                                                               ^~~~~~~~~
../forestclaw/src/patches/clawpatch/fort_user/fclaw2d_clawpatch_exceeds_threshold.c:90:63: note: expected ‘const double *’ but argument is of type ‘const int *’
../forestclaw/src/patches/clawpatch/fort_user/fclaw2d_clawpatch_exceeds_threshold.c:90:74: warning: passing argument 12 of ‘user_exceeds_threshold’ from incompatible pointer type [-Wincompatible-pointer-types]
                                                 tag_threshold,init_flag, is_ghost);
                                                                          ^~~~~~~~
../forestclaw/src/patches/clawpatch/fort_user/fclaw2d_clawpatch_exceeds_threshold.c:90:74: note: expected ‘const double *’ but argument is of type ‘const int *’
../forestclaw/src/patches/clawpatch/fort_user/fclaw2d_clawpatch_exceeds_threshold.c:88:26: error: too few arguments to function ‘user_exceeds_threshold’
             exceeds_th = user_exceeds_threshold(blockno, qval,qmin,qmax,quad,
                          ^~~~~~~~~~~~~~~~~~~~~~
Makefile:10480: recipe for target 'src/patches/clawpatch/fort_user/src_patches_clawpatch_libclawpatch_la-fclaw3dx_clawpatch_exceeds_threshold.lo' failed

Configuration

../forestclaw/configure \
    --enable-mpi \
    --enable-clawpack \
    --without-blas \
    --enable-debug \
    CC=mpicc \
    CFLAGS="-O2 -Wall" \
    CXX=mpicxx \
    CXXFLAGS="-O2 -Wall" \
    F77=gfortran \
    FC=gfortran \
    FFLAGS="-O2 -cpp" \
    --disable-shared

Further Observations

Going back to 0e1c2acc55cdaeccc28c8c99fc6c7ce612fa644f solves the compliling problem. However, the configuration works only with an additional LIBS="-lgfortran" in the configure command showed above. In this case one test fails due to a floating point overflow. The test-suite.log is shown below. In particular, the older commit reverts parts of feature_2d3druntime and since the compiler error above is about multiple function declarations in the context of 2d and 3d functions the compiler errors may be related to this branch.

Test Suite

=======================================================
   ForestClaw 0.1.6277-0e1c2-dirty: ./test-suite.log
=======================================================

# TOTAL: 23
# PASS:  22
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: applications/clawpack/shallow/2d/radialdam/regressions.sh
===============================================================

[libsc] This is libsc 2.8.2.85-1ae8
[libsc] CPP                      mpicc -E
[libsc] CPPFLAGS                 
[libsc] CC                       mpicc
[libsc] CFLAGS                   -O2 -Wall
[libsc] LDFLAGS                  
[libsc] LIBS                     -lz -lm -lgfortran
[p4est] This is p4est 2.8.7-6c4d
[p4est] CPP                      mpicc -E
[p4est] CPPFLAGS                 
[p4est] CC                       mpicc
[p4est] CFLAGS                   -O2 -Wall
[p4est] LDFLAGS                  
[p4est] LIBS                     -lz -lm -lgfortran
[fclaw] This is ForestClaw 0.1.6277-0e1c2-dirty
[fclaw] CPP                      mpicc -E
[fclaw] CPPFLAGS                 
[fclaw] F77                      gfortran
[fclaw] FFLAGS                   -O2 -cpp
[fclaw] CC                       mpicc
[fclaw] CFLAGS                   -O2 -Wall
[fclaw] CXX                      mpicxx
[fclaw] CXXFLAGS                 -O2 -Wall
[fclaw] LDFLAGS                  
[fclaw] FLIBS                     -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/7/../../.. -lgfortran -lm -lquadmath
[fclaw] LIBS                     -lz -lm -lgfortran
[fclaw] Reading file fclaw_options.ini.
[fclaw] Options:
[fclaw]    help                                 false
[fclaw]    version                              false
[fclaw]    print-options                        false
[fclaw]    verbosity                            production
[fclaw]    lib-verbosity                        essential
[fclaw]    initial_dt                           0.0625
[fclaw]    max_cfl                              1
[fclaw]    desired_cfl                          0.9
[fclaw]    reduce-cfl                           true
[fclaw]    use_fixed_dt                         false
[fclaw]    outstyle                             1
[fclaw]    tfinal                               0.4
[fclaw]    nout                                 1
[fclaw]    nstep                                1
[fclaw]    advance-one-step                     false
[fclaw]    outstyle-uses-maxlevel               false
[fclaw]    subcycle                             true
[fclaw]    weighted_partition                   true
[fclaw]    time-sync                            true
[fclaw]    flux-correction                      true
[fclaw]    fluctuation-correction               true
[fclaw]    output                               false
[fclaw]    output-gauges                        false
[fclaw]    gauge-buffer-length                  1
[fclaw]    tikz-out                             false
[fclaw]    tikz-figsize                         8 6
[fclaw]    tikz-plot-prefix                     plot
[fclaw]    tikz-plot-suffix                     png
[fclaw]    tikz-mesh-only                       false
[fclaw]    tikz-plot-fig                        true
[fclaw]    prefix                               fort
[fclaw]    vtkspace                             0
[fclaw]    init_ghostcell                       false
[fclaw]    minlevel                             1
[fclaw]    maxlevel                             5
[fclaw]    regrid_interval                      1
[fclaw]    refratio                             2
[fclaw]    smooth-refine                        true
[fclaw]    smooth-level                         4
[fclaw]    coarsen-delay                        0
[fclaw]    refine_threshold                     0.5
[fclaw]    coarsen_threshold                    0.25
[fclaw]    run-user-diagnostics                 false
[fclaw]    compute-error                        false
[fclaw]    conservation-check                   true
[fclaw]    report-timing                        true
[fclaw]    report-timing-verbosity              wall
[fclaw]    ghost_patch_pack_area                true
[fclaw]    ghost_patch_pack_extra               false
[fclaw]    ghost_patch_pack_numextrafields      0
[fclaw]    trapfpe                              true
[fclaw]    mpi_debug                            false
[fclaw]    ax                                   -2.5
[fclaw]    bx                                   2.5
[fclaw]    ay                                   -2.5
[fclaw]    by                                   2.5
[fclaw]    manifold                             false
[fclaw]    mi                                   1
[fclaw]    mj                                   1
[fclaw]    periodic_x                           false
[fclaw]    periodic_y                           false
[fclaw]    scale                                1 1 1
[fclaw]    shift                                0 0 0
[fclaw]    phi                                  0
[fclaw]    theta                                0
[fclaw]    clawpatch:mx                         16
[fclaw]    clawpatch:my                         16
[fclaw]    clawpatch:mz                         1
[fclaw]    clawpatch:maux                       0
[fclaw]    clawpatch:mbc                        2
[fclaw]    clawpatch:meqn                       3
[fclaw]    clawpatch:rhs-fields                 1
[fclaw]    clawpatch:interp_stencil_width       3
[fclaw]    clawpatch:ghost_patch_pack_aux       true
[fclaw]    clawpatch:refinement-criteria        gradient
[fclaw]    clawpack46:order                     2 2
[fclaw]    clawpack46:mcapa                     0
[fclaw]    clawpack46:src_term                  false
[fclaw]    clawpack46:use-fwaves                false
[fclaw]    clawpack46:mwaves                    3
[fclaw]    clawpack46:mthlim                    4 4 4
[fclaw]    clawpack46:mthbc                     1 1 1 1
[fclaw]    clawpack46:ascii-out                 true
[fclaw]    clawpack46:vtk-out                   false
[fclaw]    clawpack5:order                      2 2
[fclaw]    clawpack5:mcapa                      0
[fclaw]    clawpack5:src_term                   false
[fclaw]    clawpack5:use-fwaves                 false
[fclaw]    clawpack5:mwaves                     3
[fclaw]    clawpack5:mthlim                     4 4 4
[fclaw]    clawpack5:mthbc                      1 1 1 1
[fclaw]    clawpack5:ascii-out                  true
[fclaw]    clawpack5:vtk-out                    false
[fclaw]    user:example                         0
[fclaw]    user:g                               1
[fclaw]    user:x0                              0
[fclaw]    user:y0                              0
[fclaw]    user:r0                              0.5
[fclaw]    user:hin                             2
[fclaw]    user:hout                            1
[fclaw]    user:alpha                           0.4
[fclaw]    user:claw-version                    4
[fclaw] Arguments: none
[p4est 1] Local minimum/maximum levels:  1  1
[p4est 1] Patches on level  1:         2
[p4est 0] Local minimum/maximum levels:  1  1
[p4est] Global minimum/maximum levels:  1  1
[p4est 0] Patches on level  1:         2
[fclaw] Max threads set to 0
[fclaw] sum[0] =    2.5785351818898182e+01    0.0000000000000000e+00
[fclaw] sum[1] =    0.0000000000000000e+00    0.0000000000000000e+00
[fclaw] sum[2] =    0.0000000000000000e+00    0.0000000000000000e+00
[fclaw] Time step    0  at time   0.00000000e+00

[fclaw] Level 1 (3-5) step     1 : dt =    6.250e-02; maxcfl (step) =    0.648; Final time =       0.0625
[fclaw] Level 1 (3-5) step     2 : dt =    8.681e-02; maxcfl (step) =    0.905; Final time =       0.1493
[fclaw] Level 1 (3-5) step     3 : dt =    8.628e-02; maxcfl (step) =    0.903; Final time =       0.2356
[fclaw] Level 1 (3-5) step     4 : dt =    8.604e-02; maxcfl (step) =    0.900; Final time =       0.3216
[fclaw] Level 1 (3-5) step     5 : dt =    7.837e-02; maxcfl (step) =    0.814; Final time =       0.4000
[fclaw] sum[0] =    2.5785351818898182e+01    0.0000000000000000e+00
[fclaw] sum[1] =    7.2123498963688636e-19    7.2123498963688636e-19
[fclaw] sum[2] =    0.0000000000000000e+00    0.0000000000000000e+00
[fclaw] Time step    1  at time   4.00000000e-01

[fclaw] Finalizing run
[libsc] Statistics for   WALLTIME
[libsc]    Global number of values:       2
[libsc]    Mean value (std. dev.):           5.16651 (2.15e-07 = 4.16e-06%)
[libsc]    Minimum attained at rank       1: 5.16651
[libsc]    Maximum attained at rank       0: 5.16651
[libsc] Procs 2 advance 5 3.51203 exchange 83 0.454044 regrid 5 3 0.0316847
[libsc] Max/P 2 advance 5 3.52043 exchange 83 0.505418 regrid 5 3 0.0389728
[libsc] This is libsc 2.8.2.85-1ae8
[libsc] CPP                      mpicc -E
[libsc] CPPFLAGS                 
[libsc] CC                       mpicc
[libsc] CFLAGS                   -O2 -Wall
[libsc] LDFLAGS                  
[libsc] LIBS                     -lz -lm -lgfortran
[p4est] This is p4est 2.8.7-6c4d
[p4est] CPP                      mpicc -E
[p4est] CPPFLAGS                 
[p4est] CC                       mpicc
[p4est] CFLAGS                   -O2 -Wall
[p4est] LDFLAGS                  
[p4est] LIBS                     -lz -lm -lgfortran
[fclaw] This is ForestClaw 0.1.6277-0e1c2-dirty
[fclaw] CPP                      mpicc -E
[fclaw] CPPFLAGS                 
[fclaw] F77                      gfortran
[fclaw] FFLAGS                   -O2 -cpp
[fclaw] CC                       mpicc
[fclaw] CFLAGS                   -O2 -Wall
[fclaw] CXX                      mpicxx
[fclaw] CXXFLAGS                 -O2 -Wall
[fclaw] LDFLAGS                  
[fclaw] FLIBS                     -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/7/../../.. -lgfortran -lm -lquadmath
[fclaw] LIBS                     -lz -lm -lgfortran
[fclaw] Reading file fclaw_options.ini.
[fclaw] Options:
[fclaw]    help                                 false
[fclaw]    version                              false
[fclaw]    print-options                        false
[fclaw]    verbosity                            production
[fclaw]    lib-verbosity                        essential
[fclaw]    initial_dt                           0.0625
[fclaw]    max_cfl                              1
[fclaw]    desired_cfl                          0.9
[fclaw]    reduce-cfl                           true
[fclaw]    use_fixed_dt                         false
[fclaw]    outstyle                             1
[fclaw]    tfinal                               0.4
[fclaw]    nout                                 1
[fclaw]    nstep                                1
[fclaw]    advance-one-step                     false
[fclaw]    outstyle-uses-maxlevel               false
[fclaw]    subcycle                             true
[fclaw]    weighted_partition                   true
[fclaw]    time-sync                            true
[fclaw]    flux-correction                      true
[fclaw]    fluctuation-correction               true
[fclaw]    output                               false
[fclaw]    output-gauges                        false
[fclaw]    gauge-buffer-length                  1
[fclaw]    tikz-out                             false
[fclaw]    tikz-figsize                         8 6
[fclaw]    tikz-plot-prefix                     plot
[fclaw]    tikz-plot-suffix                     png
[fclaw]    tikz-mesh-only                       false
[fclaw]    tikz-plot-fig                        true
[fclaw]    prefix                               fort
[fclaw]    vtkspace                             0
[fclaw]    init_ghostcell                       false
[fclaw]    minlevel                             1
[fclaw]    maxlevel                             5
[fclaw]    regrid_interval                      1
[fclaw]    refratio                             2
[fclaw]    smooth-refine                        true
[fclaw]    smooth-level                         4
[fclaw]    coarsen-delay                        0
[fclaw]    refine_threshold                     0.5
[fclaw]    coarsen_threshold                    0.25
[fclaw]    run-user-diagnostics                 false
[fclaw]    compute-error                        false
[fclaw]    conservation-check                   true
[fclaw]    report-timing                        true
[fclaw]    report-timing-verbosity              wall
[fclaw]    ghost_patch_pack_area                true
[fclaw]    ghost_patch_pack_extra               false
[fclaw]    ghost_patch_pack_numextrafields      0
[fclaw]    trapfpe                              true
[fclaw]    mpi_debug                            false
[fclaw]    ax                                   -2.5
[fclaw]    bx                                   2.5
[fclaw]    ay                                   -2.5
[fclaw]    by                                   2.5
[fclaw]    manifold                             false
[fclaw]    mi                                   1
[fclaw]    mj                                   1
[fclaw]    periodic_x                           false
[fclaw]    periodic_y                           false
[fclaw]    scale                                1 1 1
[fclaw]    shift                                0 0 0
[fclaw]    phi                                  0
[fclaw]    theta                                0
[fclaw]    clawpatch:mx                         16
[fclaw]    clawpatch:my                         16
[fclaw]    clawpatch:mz                         1
[fclaw]    clawpatch:maux                       0
[fclaw]    clawpatch:mbc                        2
[fclaw]    clawpatch:meqn                       3
[fclaw]    clawpatch:rhs-fields                 1
[fclaw]    clawpatch:interp_stencil_width       3
[fclaw]    clawpatch:ghost_patch_pack_aux       true
[fclaw]    clawpatch:refinement-criteria        gradient
[fclaw]    clawpack46:order                     2 2
[fclaw]    clawpack46:mcapa                     0
[fclaw]    clawpack46:src_term                  false
[fclaw]    clawpack46:use-fwaves                false
[fclaw]    clawpack46:mwaves                    3
[fclaw]    clawpack46:mthlim                    4 4 4
[fclaw]    clawpack46:mthbc                     1 1 1 1
[fclaw]    clawpack46:ascii-out                 true
[fclaw]    clawpack46:vtk-out                   false
[fclaw]    clawpack5:order                      2 2
[fclaw]    clawpack5:mcapa                      0
[fclaw]    clawpack5:src_term                   false
[fclaw]    clawpack5:use-fwaves                 false
[fclaw]    clawpack5:mwaves                     3
[fclaw]    clawpack5:mthlim                     4 4 4
[fclaw]    clawpack5:mthbc                      1 1 1 1
[fclaw]    clawpack5:ascii-out                  true
[fclaw]    clawpack5:vtk-out                    false
[fclaw]    user:example                         0
[fclaw]    user:g                               1
[fclaw]    user:x0                              0
[fclaw]    user:y0                              0
[fclaw]    user:r0                              0.5
[fclaw]    user:hin                             2
[fclaw]    user:hout                            1
[fclaw]    user:alpha                           0.4
[fclaw]    user:claw-version                    5
[fclaw] Arguments: none
[p4est 1] Local minimum/maximum levels:  1  1
[p4est 1] Patches on level  1:         2
[p4est 0] Local minimum/maximum levels:  1  1
[p4est] Global minimum/maximum levels:  1  1
[p4est 0] Patches on level  1:         2
[fclaw] Max threads set to 0
[fclaw] sum[0] =    2.5785351818898175e+01    0.0000000000000000e+00
[fclaw] sum[1] =    0.0000000000000000e+00    0.0000000000000000e+00
[fclaw] sum[2] =    0.0000000000000000e+00    0.0000000000000000e+00
[fclaw] Time step    0  at time   0.00000000e+00

[fclaw] Level 1 (3-5) step     1 : dt =    6.250e-02; maxcfl (step) =    0.648; Final time =       0.0625
[fclaw] Level 1 (3-5) step     2 : dt =    8.681e-02; maxcfl (step) =    0.905; Final time =       0.1493
[fclaw] Level 1 (3-5) step     3 : dt =    8.628e-02; maxcfl (step) =    0.903; Final time =       0.2356
[fclaw] Level 1 (3-5) step     4 : dt =    8.604e-02; maxcfl (step) =    0.900; Final time =       0.3216
[fclaw] Level 1 (3-5) step     5 : dt =    7.837e-02; maxcfl (step) =    0.814; Final time =       0.4000
[fclaw] sum[0] =    2.5785351818898231e+01    5.6843418860808015e-14
[fclaw] sum[1] =    4.6222643229102135e-17    4.6222643229102135e-17
[fclaw] sum[2] =   -4.9960036108132044e-16    4.9960036108132044e-16
[fclaw] Time step    1  at time   4.00000000e-01

[fclaw] Finalizing run
[libsc] Statistics for   WALLTIME
[libsc]    Global number of values:       2
[libsc]    Mean value (std. dev.):           5.71644 (3.37e-07 = 5.9e-06%)
[libsc]    Minimum attained at rank       1: 5.71644
[libsc]    Maximum attained at rank       0: 5.71644
[libsc] Procs 2 advance 5 3.78433 exchange 83 0.518318 regrid 5 3 0.0440419
[libsc] Max/P 2 advance 5 3.79968 exchange 83 0.574379 regrid 5 3 0.0531254
[libsc] This is libsc 2.8.2.85-1ae8
[libsc] CPP                      mpicc -E
[libsc] CPPFLAGS                 
[libsc] CC                       mpicc
[libsc] CFLAGS                   -O2 -Wall
[libsc] LDFLAGS                  
[libsc] LIBS                     -lz -lm -lgfortran
[p4est] This is p4est 2.8.7-6c4d
[p4est] CPP                      mpicc -E
[p4est] CPPFLAGS                 
[p4est] CC                       mpicc
[p4est] CFLAGS                   -O2 -Wall
[p4est] LDFLAGS                  
[p4est] LIBS                     -lz -lm -lgfortran
[fclaw] This is ForestClaw 0.1.6277-0e1c2-dirty
[fclaw] CPP                      mpicc -E
[fclaw] CPPFLAGS                 
[fclaw] F77                      gfortran
[fclaw] FFLAGS                   -O2 -cpp
[fclaw] CC                       mpicc
[fclaw] CFLAGS                   -O2 -Wall
[fclaw] CXX                      mpicxx
[fclaw] CXXFLAGS                 -O2 -Wall
[fclaw] LDFLAGS                  
[fclaw] FLIBS                     -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/7/../../.. -lgfortran -lm -lquadmath
[fclaw] LIBS                     -lz -lm -lgfortran
[fclaw] Reading file fclaw_options.ini.
[fclaw] Options:
[fclaw]    help                                 false
[fclaw]    version                              false
[fclaw]    print-options                        false
[fclaw]    verbosity                            production
[fclaw]    lib-verbosity                        essential
[fclaw]    initial_dt                           0.015625
[fclaw]    max_cfl                              1
[fclaw]    desired_cfl                          0.9
[fclaw]    reduce-cfl                           true
[fclaw]    use_fixed_dt                         false
[fclaw]    outstyle                             1
[fclaw]    tfinal                               0.1
[fclaw]    nout                                 1
[fclaw]    nstep                                1
[fclaw]    advance-one-step                     false
[fclaw]    outstyle-uses-maxlevel               false
[fclaw]    subcycle                             true
[fclaw]    weighted_partition                   true
[fclaw]    time-sync                            true
[fclaw]    flux-correction                      true
[fclaw]    fluctuation-correction               true
[fclaw]    output                               false
[fclaw]    output-gauges                        false
[fclaw]    gauge-buffer-length                  1
[fclaw]    tikz-out                             false
[fclaw]    tikz-figsize                         8 6
[fclaw]    tikz-plot-prefix                     plot
[fclaw]    tikz-plot-suffix                     png
[fclaw]    tikz-mesh-only                       false
[fclaw]    tikz-plot-fig                        true
[fclaw]    prefix                               fort
[fclaw]    vtkspace                             0
[fclaw]    init_ghostcell                       false
[fclaw]    minlevel                             1
[fclaw]    maxlevel                             5
[fclaw]    regrid_interval                      1
[fclaw]    refratio                             2
[fclaw]    smooth-refine                        true
[fclaw]    smooth-level                         4
[fclaw]    coarsen-delay                        0
[fclaw]    refine_threshold                     1
[fclaw]    coarsen_threshold                    0.5
[fclaw]    run-user-diagnostics                 false
[fclaw]    compute-error                        false
[fclaw]    conservation-check                   false
[fclaw]    report-timing                        true
[fclaw]    report-timing-verbosity              wall
[fclaw]    ghost_patch_pack_area                true
[fclaw]    ghost_patch_pack_extra               false
[fclaw]    ghost_patch_pack_numextrafields      0
[fclaw]    trapfpe                              true
[fclaw]    mpi_debug                            false
[fclaw]    ax                                   -2.5
[fclaw]    bx                                   2.5
[fclaw]    ay                                   -2.5
[fclaw]    by                                   2.5
[fclaw]    manifold                             true
[fclaw]    mi                                   1
[fclaw]    mj                                   1
[fclaw]    periodic_x                           false
[fclaw]    periodic_y                           false
[fclaw]    scale                                2.5 2.5 0
[fclaw]    shift                                0 0 0
[fclaw]    phi                                  0
[fclaw]    theta                                0
[fclaw]    clawpatch:mx                         16
[fclaw]    clawpatch:my                         16
[fclaw]    clawpatch:mz                         1
[fclaw]    clawpatch:maux                       16
[fclaw]    clawpatch:mbc                        2
[fclaw]    clawpatch:meqn                       4
[fclaw]    clawpatch:rhs-fields                 1
[fclaw]    clawpatch:interp_stencil_width       3
[fclaw]    clawpatch:ghost_patch_pack_aux       true
[fclaw]    clawpatch:refinement-criteria        gradient
[fclaw]    clawpack46:order                     2 2
[fclaw]    clawpack46:mcapa                     1
[fclaw]    clawpack46:src_term                  false
[fclaw]    clawpack46:use-fwaves                false
[fclaw]    clawpack46:mwaves                    3
[fclaw]    clawpack46:mthlim                    4 4 4
[fclaw]    clawpack46:mthbc                     1 1 1 1
[fclaw]    clawpack46:ascii-out                 true
[fclaw]    clawpack46:vtk-out                   false
[fclaw]    clawpack5:order                      2 2
[fclaw]    clawpack5:mcapa                      1
[fclaw]    clawpack5:src_term                   false
[fclaw]    clawpack5:use-fwaves                 false
[fclaw]    clawpack5:mwaves                     3
[fclaw]    clawpack5:mthlim                     4 4 4
[fclaw]    clawpack5:mthbc                      1 1 1 1
[fclaw]    clawpack5:ascii-out                  true
[fclaw]    clawpack5:vtk-out                    false
[fclaw]    user:example                         1
[fclaw]    user:g                               1
[fclaw]    user:x0                              0
[fclaw]    user:y0                              0
[fclaw]    user:r0                              0.5
[fclaw]    user:hin                             2
[fclaw]    user:hout                            1
[fclaw]    user:alpha                           0.4
[fclaw]    user:claw-version                    4
[fclaw] Arguments: none
[p4est 1] Local minimum/maximum levels:  1  1
[p4est 1] Patches on level  1:        10
[p4est 0] Local minimum/maximum levels:  1  1
[p4est] Global minimum/maximum levels:  1  1
[p4est 0] Patches on level  1:        10
[fclaw] Max threads set to 0
[fclaw] Time step    0  at time   0.00000000e+00

[fclaw] Level 1 (1-5) step     1 : dt =    1.562e-02; maxcfl (step) =    0.405; Final time =       0.0156
[fclaw] Level 1 (1-5) step     2 : dt =    3.473e-02; maxcfl (step) =    0.903; Final time =       0.0504
[fclaw] Level 1 (1-5) step     3 : dt =    3.462e-02; maxcfl (step) =    0.903; Final time =       0.0850
[fclaw] Level 1 (1-5) step     4 : dt =    1.503e-02; maxcfl (step) =    0.392; Final time =       0.1000
[fclaw] Time step    1  at time   1.00000000e-01

[fclaw] Finalizing run
[libsc] Statistics for   WALLTIME
[libsc]    Global number of values:       2
[libsc]    Mean value (std. dev.):           13.549 (7.73e-07 = 5.7e-06%)
[libsc]    Minimum attained at rank       1: 13.549
[libsc]    Maximum attained at rank       0: 13.549
[libsc] Procs 2 advance 4 10.9756 exchange 68 0.844499 regrid 4 4 0.0968178
[libsc] Max/P 2 advance 4 11.2088 exchange 68 0.868305 regrid 4 4 0.0990826
[libsc] This is libsc 2.8.2.85-1ae8
[libsc] CPP                      mpicc -E
[libsc] CPPFLAGS                 
[libsc] CC                       mpicc
[libsc] CFLAGS                   -O2 -Wall
[libsc] LDFLAGS                  
[libsc] LIBS                     -lz -lm -lgfortran
[p4est] This is p4est 2.8.7-6c4d
[p4est] CPP                      mpicc -E
[p4est] CPPFLAGS                 
[p4est] CC                       mpicc
[p4est] CFLAGS                   -O2 -Wall
[p4est] LDFLAGS                  
[p4est] LIBS                     -lz -lm -lgfortran
[fclaw] This is ForestClaw 0.1.6277-0e1c2-dirty
[fclaw] CPP                      mpicc -E
[fclaw] CPPFLAGS                 
[fclaw] F77                      gfortran
[fclaw] FFLAGS                   -O2 -cpp
[fclaw] CC                       mpicc
[fclaw] CFLAGS                   -O2 -Wall
[fclaw] CXX                      mpicxx
[fclaw] CXXFLAGS                 -O2 -Wall
[fclaw] LDFLAGS                  
[fclaw] FLIBS                     -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/7/../../.. -lgfortran -lm -lquadmath
[fclaw] LIBS                     -lz -lm -lgfortran
[fclaw] Reading file fclaw_options.ini.
[fclaw] Options:
[fclaw]    help                                 false
[fclaw]    version                              false
[fclaw]    print-options                        false
[fclaw]    verbosity                            production
[fclaw]    lib-verbosity                        essential
[fclaw]    initial_dt                           0.015625
[fclaw]    max_cfl                              1
[fclaw]    desired_cfl                          0.9
[fclaw]    reduce-cfl                           true
[fclaw]    use_fixed_dt                         false
[fclaw]    outstyle                             1
[fclaw]    tfinal                               0.1
[fclaw]    nout                                 1
[fclaw]    nstep                                1
[fclaw]    advance-one-step                     false
[fclaw]    outstyle-uses-maxlevel               false
[fclaw]    subcycle                             true
[fclaw]    weighted_partition                   true
[fclaw]    time-sync                            true
[fclaw]    flux-correction                      true
[fclaw]    fluctuation-correction               true
[fclaw]    output                               false
[fclaw]    output-gauges                        false
[fclaw]    gauge-buffer-length                  1
[fclaw]    tikz-out                             false
[fclaw]    tikz-figsize                         8 6
[fclaw]    tikz-plot-prefix                     plot
[fclaw]    tikz-plot-suffix                     png
[fclaw]    tikz-mesh-only                       false
[fclaw]    tikz-plot-fig                        true
[fclaw]    prefix                               fort
[fclaw]    vtkspace                             0
[fclaw]    init_ghostcell                       false
[fclaw]    minlevel                             1
[fclaw]    maxlevel                             5
[fclaw]    regrid_interval                      1
[fclaw]    refratio                             2
[fclaw]    smooth-refine                        true
[fclaw]    smooth-level                         4
[fclaw]    coarsen-delay                        0
[fclaw]    refine_threshold                     1
[fclaw]    coarsen_threshold                    0.5
[fclaw]    run-user-diagnostics                 false
[fclaw]    compute-error                        false
[fclaw]    conservation-check                   false
[fclaw]    report-timing                        true
[fclaw]    report-timing-verbosity              wall
[fclaw]    ghost_patch_pack_area                true
[fclaw]    ghost_patch_pack_extra               false
[fclaw]    ghost_patch_pack_numextrafields      0
[fclaw]    trapfpe                              true
[fclaw]    mpi_debug                            false
[fclaw]    ax                                   -2.5
[fclaw]    bx                                   2.5
[fclaw]    ay                                   -2.5
[fclaw]    by                                   2.5
[fclaw]    manifold                             true
[fclaw]    mi                                   1
[fclaw]    mj                                   1
[fclaw]    periodic_x                           false
[fclaw]    periodic_y                           false
[fclaw]    scale                                2.5 2.5 0
[fclaw]    shift                                0 0 0
[fclaw]    phi                                  0
[fclaw]    theta                                0
[fclaw]    clawpatch:mx                         16
[fclaw]    clawpatch:my                         16
[fclaw]    clawpatch:mz                         1
[fclaw]    clawpatch:maux                       16
[fclaw]    clawpatch:mbc                        2
[fclaw]    clawpatch:meqn                       4
[fclaw]    clawpatch:rhs-fields                 1
[fclaw]    clawpatch:interp_stencil_width       3
[fclaw]    clawpatch:ghost_patch_pack_aux       true
[fclaw]    clawpatch:refinement-criteria        gradient
[fclaw]    clawpack46:order                     2 2
[fclaw]    clawpack46:mcapa                     1
[fclaw]    clawpack46:src_term                  false
[fclaw]    clawpack46:use-fwaves                false
[fclaw]    clawpack46:mwaves                    3
[fclaw]    clawpack46:mthlim                    4 4 4
[fclaw]    clawpack46:mthbc                     1 1 1 1
[fclaw]    clawpack46:ascii-out                 true
[fclaw]    clawpack46:vtk-out                   false
[fclaw]    clawpack5:order                      2 2
[fclaw]    clawpack5:mcapa                      1
[fclaw]    clawpack5:src_term                   false
[fclaw]    clawpack5:use-fwaves                 false
[fclaw]    clawpack5:mwaves                     3
[fclaw]    clawpack5:mthlim                     4 4 4
[fclaw]    clawpack5:mthbc                      1 1 1 1
[fclaw]    clawpack5:ascii-out                  true
[fclaw]    clawpack5:vtk-out                    false
[fclaw]    user:example                         1
[fclaw]    user:g                               1
[fclaw]    user:x0                              0
[fclaw]    user:y0                              0
[fclaw]    user:r0                              0.5
[fclaw]    user:hin                             2
[fclaw]    user:hout                            1
[fclaw]    user:alpha                           0.4
[fclaw]    user:claw-version                    5
[fclaw] Arguments: none
[p4est 1] Local minimum/maximum levels:  1  1
[p4est 1] Patches on level  1:        10
[p4est 0] Local minimum/maximum levels:  1  1
[p4est] Global minimum/maximum levels:  1  1
[p4est 0] Patches on level  1:        10
[fclaw] Max threads set to 0
[fclaw] Time step    0  at time   0.00000000e+00

[fclaw] Level 1 (1-5) step     1 : dt =    1.562e-02; maxcfl (step) =    0.405; Final time =       0.0156
[fclaw] Level 1 (1-5) step     2 : dt =    3.473e-02; maxcfl (step) =    0.903; Final time =       0.0504
[nanna:10564] *** Process received signal ***
[nanna:10564] Signal: Floating point exception (8)
[nanna:10564] Signal code: Floating point overflow (4)
[nanna:10564] Failing at address: 0x557856befb96
[nanna:10564] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x128a0)[0x7ff2d6f2b8a0]
[nanna:10564] [ 1] /home/griesbac/forestclaw_workspace/forestclaw-mpi/applications/clawpack/shallow/2d/radialdam/radialdam(+0x19b96)[0x557856befb96]
[nanna:10564] [ 2] /home/griesbac/forestclaw_workspace/forestclaw-mpi/applications/clawpack/shallow/2d/radialdam/radialdam(+0x2831a)[0x557856bfe31a]
[nanna:10564] [ 3] /home/griesbac/forestclaw_workspace/forestclaw-mpi/applications/clawpack/shallow/2d/radialdam/radialdam(+0x2a45a)[0x557856c0045a]
[nanna:10564] [ 4] /home/griesbac/forestclaw_workspace/forestclaw-mpi/applications/clawpack/shallow/2d/radialdam/radialdam(+0x286b4)[0x557856bfe6b4]
[nanna:10564] [ 5] /home/griesbac/forestclaw_workspace/forestclaw-mpi/applications/clawpack/shallow/2d/radialdam/radialdam(+0x231cf)[0x557856bf91cf]
[nanna:10564] [ 6] /home/griesbac/forestclaw_workspace/forestclaw-mpi/applications/clawpack/shallow/2d/radialdam/radialdam(+0x55013)[0x557856c2b013]
[nanna:10564] [ 7] /home/griesbac/forestclaw_workspace/forestclaw-mpi/applications/clawpack/shallow/2d/radialdam/radialdam(+0x4d96a)[0x557856c2396a]
[nanna:10564] [ 8] /home/griesbac/forestclaw_workspace/forestclaw-mpi/applications/clawpack/shallow/2d/radialdam/radialdam(+0x4577c)[0x557856c1b77c]
[nanna:10564] [ 9] /home/griesbac/forestclaw_workspace/forestclaw-mpi/applications/clawpack/shallow/2d/radialdam/radialdam(+0x550b0)[0x557856c2b0b0]
[nanna:10564] [10] /home/griesbac/forestclaw_workspace/forestclaw-mpi/applications/clawpack/shallow/2d/radialdam/radialdam(+0x53d81)[0x557856c29d81]
[nanna:10564] [11] /home/griesbac/forestclaw_workspace/forestclaw-mpi/applications/clawpack/shallow/2d/radialdam/radialdam(+0x540c6)[0x557856c2a0c6]
[nanna:10564] [12] /home/griesbac/forestclaw_workspace/forestclaw-mpi/applications/clawpack/shallow/2d/radialdam/radialdam(+0x49c00)[0x557856c1fc00]
[nanna:10564] [13] /home/griesbac/forestclaw_workspace/forestclaw-mpi/applications/clawpack/shallow/2d/radialdam/radialdam(+0xe171)[0x557856be4171]
[nanna:10564] [14] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7ff2d6b49b97]
[nanna:10564] [15] /home/griesbac/forestclaw_workspace/forestclaw-mpi/applications/clawpack/shallow/2d/radialdam/radialdam(+0xe3ba)[0x557856be43ba]
[nanna:10564] *** End of error message ***
--------------------------------------------------------------------------
mpiexec noticed that process rank 1 with PID 0 on node nanna exited on signal 8 (Floating point exception).
--------------------------------------------------------------------------
FAIL applications/clawpack/shallow/2d/radialdam/regressions.sh (exit status: 1)
tim-griesbach commented 2 years ago

Thank you for the quick response! https://github.com/ForestClaw/forestclaw/pull/159 solves the compiling problem.