Closed amametjanov closed 6 years ago
Thanks @amametjanov. @matthewhoffman and @mgduda this is an obvious bug. In the case where mpi_comm
is passed in and MPAS_OPENMP is defined, threadLevel
is simply uninitialized, but then we print a message with it.
I did a quick local merge into develop and ocean develop, both compile with gnu and intel.
@climbfuji could you give this a quick look? @mgduda may be out. FYI, I merged this PR into develop
and compiled with CORE=atmosphere just to check.
To me this looks good. I gave it a quick test to compile and run (my standard atmosphere test) on my macbook. For the standalone atmosphere core, mpi_comm is not yet initialized, i.e. I can't test the bugfix itself, but just that it doesn't break anything else.
Yes, I agree that this is an obvious bug.
This is needed for ACME runs, where MPI comm is passed in as a parameter. Intel17+debug runs show that
threadLevel
is uninitialized.