Skip to content

Commit 35fe896

Browse files
authored
Merge pull request #244 from bonachea/2025-07-misc
Misc tweaks
2 parents 2478c5e + a8b2378 commit 35fe896

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

install.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,15 @@ exit_if_pkg_config_pc_file_missing "caffeine"
441441
user_compiler_flags="${CPPFLAGS:-} ${FFLAGS:-}"
442442

443443
compiler_version=$($FPM_FC --version)
444-
if [[ $compiler_version == *flang* ]]; then
444+
if [[ $compiler_version =~ 'flang' ]]; then
445445
compiler_flag="-g -O3"
446-
else # assume gfortran
446+
elif [[ $compiler_version =~ 'GNU Fortran' ]]; then
447447
compiler_flag="-g -O3 -ffree-line-length-0 -Wno-unused-dummy-argument"
448+
elif [[ $compiler_version =~ 'LFortran' ]]; then
449+
compiler_flag="-g -O3 --cpp"
450+
else # unknown compiler
451+
compiler_flag="-g -O2"
452+
echo "WARNING: Failed to detect a recognized Fortran compiler"
448453
fi
449454
compiler_flag+=" -DASSERT_MULTI_IMAGE -DASSERT_PARALLEL_CALLBACKS"
450455

manifest/fpm.toml.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ maintainer = "[email protected]"
66
copyright = "2021-2025 The Regents of the University of California, through Lawrence Berkeley National Laboratory"
77

88
[dev-dependencies]
9-
assert = {git = "https://github.com/berkeleylab/assert.git", tag = "2.1.2"}
9+
assert = {git = "https://github.com/berkeleylab/assert.git", tag = "3.0.0"}
1010
veggies = {git = "https://gitlab.com/everythingfunctional/veggies", tag = "v1.1.3"}
1111
iso_varying_string = {git = "https://gitlab.com/everythingfunctional/iso_varying_string.git", tag = "v3.0.4"}
1212

src/caffeine/unit_test_parameters_m.F90

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
! Copyright (c), The Regents of the University
22
! Terms of use are as specified in LICENSE.txt
33
module unit_test_parameters_m
4+
use iso_c_binding, only: c_int
45
use prif, only: prif_sync_all, prif_this_image_no_coarray
56
!! Define values and utilities for consistent use throughout the test suite
67
implicit none
78

89
public
910

10-
enum, bind(C)
11-
enumerator :: expected_stop_code=99, expected_error_stop_code
11+
integer(c_int), parameter :: expected_stop_code=99, expected_error_stop_code=100
1212
! used in stop/error-stop unit tests and example/test-support supporting programs
13-
end enum
1413

1514
character(len=:), allocatable :: subjob_prefix
1615

0 commit comments

Comments
 (0)