Skip to content

Commit 32a6ba8

Browse files
authored
Merge branch 'main' into gnu-15-ci
2 parents 950fdaf + 2b89e6f commit 32a6ba8

46 files changed

Lines changed: 1219 additions & 885 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/github_autotools_intel_classic.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ jobs:
2222
LDFLAGS: "-L/libs/lib"
2323
TEST_VERBOSE: 1
2424
I_MPI_FABRICS: "shm" # needed for mpi in image
25-
# intel bug causes some failures with shm option(required in container)
26-
SKIP_TESTS: "test_mpp_update_domains.1 test_update_domains_performance.1 test_diag_manager2.23"
2725
steps:
2826
- name: Cache dependencies
2927
id: cache

.github/workflows/github_autotools_intel_oneapi.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
LDFLAGS: "-L/libs/lib"
2121
TEST_VERBOSE: 1
2222
I_MPI_FABRICS: "shm" # needed for mpi in image
23-
# intel bug causes some failures with shm option(required in container)
24-
SKIP_TESTS: "test_mpp_update_domains.1 test_update_domains_performance.1 test_diag_manager2.23"
2523
steps:
2624
- name: Cache dependencies
2725
id: cache

.github/workflows/github_cmake_gnu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
mkdir build
2929
cd build
30-
cmake -DOVERSUBSCRIBE_FLAG="--map-by :OVERSUBSCRIBE" $CMAKE_FLAGS -DOPENMP=on -DNetCDF_ROOT=/opt/view -DLIBYAML_ROOT=/opt/view ..
30+
cmake -DOVERSUBSCRIBE_FLAG="--map-by :OVERSUBSCRIBE" $CMAKE_FLAGS -DOPENMP=on -DNetCDF_ROOT=/opt/view -DLIBYAML_ROOT=/opt/view -DUNIT_TESTS=on ..
3131
- name: Build the library
3232
run: make -C build
3333
- name: Run the unit tests
@@ -52,7 +52,7 @@ jobs:
5252
run: |
5353
mkdir build
5454
cd build
55-
cmake $CMAKE_FLAGS -DOPENMP=on -DNetCDF_ROOT=/opt/view -DLIBYAML_ROOT=/opt/view ..
55+
cmake $CMAKE_FLAGS -DOPENMP=on -DUNIT_TESTS=on -DNetCDF_ROOT=/opt/view -DLIBYAML_ROOT=/opt/view ..
5656
- name: Build the library
5757
run: make -C build
5858
- name: Run the unit tests

CMAKE_INSTRUCTIONS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ The following build options are available:
8282
-DGFS_PHYS "Enable compiler definition -DGFS_PHYS" DEFAULT:OFF
8383
-DLARGEFILE "Enable compiler definition -Duse_LARGEFILE" DEFAULT:OFF
8484
-DWITH_YAML "Enable compiler definition -Duse_yaml" DEFAULT:OFF
85+
-DUNIT_TESTS "Toggle on build of unit tests" DEFAULT:OFF
8586
```
8687

8788
## 3. Installation structure

CMakeLists.txt

Lines changed: 398 additions & 394 deletions
Large diffs are not rendered by default.

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ AC_PREREQ([2.69])
2424

2525
# Initialize with name, version, and support email address.
2626
AC_INIT([GFDL FMS Library],
27-
[2026.01.01],
27+
[2026.01.01-dev],
2828
[gfdl.climate.model.info@noaa.gov],
2929
[FMS],
3030
[https://www.github.com/NOAA-GFDL/FMS])

diag_manager/fms_diag_field_object.F90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2018,6 +2018,9 @@ subroutine generate_associated_files_att(this, att, start_time, var_output_name)
20182018
file_name = this%get_field_file_name()
20192019
field_name = this%get_varname(to_write = .true., filename=file_name)
20202020

2021+
! Save the outputname of the area/volume so it can be added correctly to the cell_measures attribute
2022+
var_output_name = field_name
2023+
20212024
! Check if the field is already in the associated files attribute (i.e the area can be associated with multiple
20222025
! fields in the file, but it only needs to be added once)
20232026
if (index(att, field_name) .ne. 0) return
@@ -2029,9 +2032,6 @@ subroutine generate_associated_files_att(this, att, start_time, var_output_name)
20292032
endif
20302033

20312034
att = trim(att)//" "//trim(field_name)//": "//trim(file_name)//".nc"
2032-
2033-
! Save the outputname of the area/volume so it can be added correctly to the cell_measures attribute
2034-
var_output_name = field_name
20352035
end subroutine generate_associated_files_att
20362036

20372037
!> @brief Determines if the compute domain has been divide further into slices (i.e openmp blocks)

drifters/drifters_comm.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ end subroutine drifters_comm_set_domain
325325
subroutine drifters_comm_update(self, drfts, new_positions, &
326326
& comm, remove, max_add_remove)
327327
#ifndef _SERIAL
328-
use mpi
328+
use mpi_f08
329329
#endif
330330

331331
type(drifters_comm_type) :: self
@@ -599,7 +599,7 @@ subroutine drifters_comm_gather(self, drfts, dinp, &
599599
& root, mycomm)
600600

601601
#ifndef _SERIAL
602-
use mpi
602+
use mpi_f08
603603
#endif
604604
use drifters_input_mod, only : drifters_input_type, drifters_input_save
605605

0 commit comments

Comments
 (0)