Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing/add rotated grid test #116

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ ecbuild_add_test( TARGET test_orcajedi_coding_norms
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../../tools/cpplint.py
ARGS --recursive ${CMAKE_CURRENT_SOURCE_DIR}/../ )

ecbuild_add_test( TARGET test_orcamodel_hofx_ice
ecbuild_add_test( TARGET test_orcamodel_hofx_sic
OMP 1
ARGS testinput/hofx_nc_ice.yaml
ARGS testinput/hofx_nc_sic.yaml
COMMAND orcamodel_hofx.x )

ecbuild_add_test( TARGET test_orcamodel_hofx3D_ice
ecbuild_add_test( TARGET test_orcamodel_hofx3D_sic
OMP 1
ARGS testinput/ostia_seaice_obs_hofx3d.yaml
ARGS testinput/hofx3d_nc_sic.yaml
COMMAND orcamodel_hofx3D.x )

ecbuild_add_test( TARGET test_orcamodel_hofx3D_sst
Expand Down Expand Up @@ -59,6 +59,18 @@ ecbuild_add_test( TARGET test_orcamodel_hofx3D_ssh_amm1
ARGS testinput/hofx3d_nc_ssh_amm1.yaml
COMMAND orcamodel_hofx3D.x )

ecbuild_add_test( TARGET test_orcamodel_hofx_potm_amm1r
OMP 1
MPI 1
ARGS testinput/hofx_nc_potm_amm1r.yaml
COMMAND orcamodel_hofx.x )

ecbuild_add_test( TARGET test_orcamodel_hofx3D_ssh_amm1r
OMP 1
MPI 1
ARGS testinput/hofx3d_nc_ssh_amm1r.yaml
COMMAND orcamodel_hofx3D.x )

ecbuild_add_test( TARGET test_orcamodel_hofx_ssh_parallel_serial
OMP 1
MPI 2
Expand Down
12 changes: 7 additions & 5 deletions src/tests/Data/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@

list( APPEND orcajedi_test_data
ostia_seaice_obs.odb
hofx_sic_ostia_obs.odb
hofx_sst_obs.nc
eorca025_t_nemo.nc
orca2_t_bkg_var.nc
orca2_t_coords.nc
orca2_t_nemo.nc
orca1_t_nemo.nc
ostia_seaice_obs.nc
hofx_sic_ostia_obs.nc
simple_nemo.nc
create_orca2_t_bkg.nco
create_orca2_t_bkg_var.nco
hofx_sst_obs.cdl
orca2_t_coords.cdl
ostia_seaice_obs.cdl
ostia_seaice_obs.csv
hofx_sic_ostia_obs.csv
simple_nemo.cdl
hofx_two_vars_obs.nc
hofx_potm_obs.nc
Expand All @@ -23,7 +22,10 @@ hofx_ssh_obs.nc
amm1_coords.nc
amm1_nemo.nc
amm1_atlas_grid_spec.yaml
amm_ssh_obs.nc
amm1r_nemo.nc
amm1r_atlas_grid_spec.yaml
hofx_potm_amm1r_obs.nc
hofx_ssh_amm_obs.nc
)

foreach(FILENAME ${orcajedi_test_data})
Expand Down
2 changes: 2 additions & 0 deletions src/tests/Data/amm1_atlas_grid_spec.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# (C) British Crown Copyright 2024 Met Office

type : "regional"
nx : 15
ny : 19
Expand Down
21 changes: 21 additions & 0 deletions src/tests/Data/amm1r_atlas_grid_spec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# (C) British Crown Copyright 2024 Met Office

type : "regional"
nx : 15
ny : 13
north : 10.9
south : -7.29
west : 8.79
east : -10.9
y_numbering : +1

projection :
type: "rotated_lonlat"
north_pole : [177, 37.5]

check:
size: 195
lonlat(first) : [9.262,44.463]
lonlat(last) : [-26.022,61.654]
uid: 35244078cc9483703ac9be75be0314e4
bounding_box(n,w,s,e) : [63.401, -26.023, 44.066, 333.977]
3 changes: 3 additions & 0 deletions src/tests/Data/amm1r_coords.nc
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/tests/Data/amm1r_nemo.nc
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/tests/Data/hofx_potm_amm1r_obs.nc
Git LFS file not shown
File renamed without changes.
107 changes: 0 additions & 107 deletions src/tests/Data/ostia_seaice_obs.cdl

This file was deleted.

3 changes: 2 additions & 1 deletion src/tests/orca-jedi/test_increment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ CASE("test increment") {
increment1 *=2;
atlas::FieldSet incfset = atlas::FieldSet();
increment1.Increment::toFieldSet(incfset);
writeFieldsToFile("../testoutput/orca2_t_inc_fs_output.nc", geometry, datetime, incfset);
writeFieldsToFile("../testoutput/orca2_t_increment_fieldset_output.nc",
geometry, datetime, incfset);
}
}

Expand Down
Loading
Loading