You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 18, 2026. It is now read-only.
[Bug] SINGLE_PRECISION build for MPAS-Model using mpas-bundle #26
A PR is on the way for this issue. The modification involves cmake files in both MPAS-Model and MPAS-JEDI.
Current behavior (describe the bug)
JCSDA-internal/MPAS-Model built with gnu-openmpi. DP=double precision, SP=single precision, S=Success, F=Fail
Build-Precision
mpas_core
Develop-branch
Develop-branch
use Makefile
use cmake
DP
init_atmosphere
S
S
DP
atmosphere
F: Err-1
S
SP
init_atmosphere
S
Build-Fail (Err-2)
SP
atmosphere
F: Err-1
Build-Fail (Err-2)
Error-1:
11 | integer, parameter:: bigint = O'17777777777' ! largest possible 32-bit integer
| 1
Error: BOZ literal constant at (1) is neither a data-stmt-constant nor an actual argument to INT, REAL, DBLE, or CMPLX intrinsic function [see ‘-fno-allow-invalid-boz’]
Using mbas-bundle, when MPAS_DOUBLE_PRECISION is set to “OFF”, cmake fails with error messages:
Error-2
-- ---------------------------------------------------------
-- Adding bundle project mpas-jedi
-- ---------------------------------------------------------
-- [mpasjedi] (1.0.0) [2038fea]
-- Feature TESTS enabled
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5") found components: CXX Fortran
-- Found MPI: TRUE (found version "3.1") found components: CXX Fortran
-- FindPnetCDF:
-- - PnetCDF_VERSION [1.12.2]
-- - PnetCDF_PREFIX [/glade/u/apps/ch/opt/pnetcdf/1.12.2/openmpi/4.1.0/gnu/10.1.0]
-- - PnetCDF Components Found: Fortran;C;CXX
-- Found MPAS: (version: "7.0") (components: SHARED;OpenMP;core_atmosphere;core_init_atmosphere)
CMake Error at mpas-jedi/CMakeLists.txt:32 (find_package):
Found package configuration file:
/glade/scratch/yonggangyu/br_autotest/br_2022-04-11/build/MPAS/mpas-config.cmake
but it set MPAS_FOUND to FALSE so package "MPAS" is considered to be NOT
FOUND.
-- Configuring incomplete, errors occurred!
See also "/glade/scratch/yonggangyu/br_autotest/br_2022-04-11/build/CMakeFiles/CMakeOutput.log".
See also "/glade/scratch/yonggangyu/br_autotest/br_2022-04-11/build/CMakeFiles/CMakeError.log".
To Reproduce
run on Cheyenne
Expected behavior
Single precision build for MPAS-Model should work within mpas-bundle for both gnu and intel compilers. MPAS-JEDI code and build should not be affected. A single DA run from mpas-out will not be affected, therefore the ctest in mpas-jedi should not be affected.
Activity
Enable single precision build for JCSDA-internal/MPAS-Model (#27)
Enable single precision build for JCSDA-internal/MPAS-Model (#27)