Skip to content
Merged
Show file tree
Hide file tree
Changes from 74 commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
d3d2c7b
Fix C type issues causing errors for some compiles
underwoo Dec 30, 2020
ef54abe
Merge branch 'fix.c.types' into 209-darwin.test.fix
underwoo Dec 30, 2020
96ff432
Move mkdir of .mods to part of .F90.mod target
underwoo Jan 4, 2021
7b7ef77
Initial modification of test_fms
underwoo Jan 4, 2021
79368af
Forgot to add configure.ac
underwoo Jan 4, 2021
7211826
Additional changes to allow the truncated tests to pass CI
underwoo Jan 4, 2021
da7f3e7
Write all output to screen/log in test-lib
underwoo Jan 4, 2021
a3c71d3
Add ./ to affinity and axis_utils tests
underwoo Jan 5, 2021
c77bc4b
Adding back drifters test
underwoo Jan 5, 2021
2e8c4cf
Add exchange to test
underwoo Jan 5, 2021
8ade115
Merge branch '649-test_unstruct_fms_io.fix' into 209-darwin.test.fix
underwoo Jan 5, 2021
c618529
Add exchange, field_manager fms2_io and horiz_interp tests back
underwoo Jan 6, 2021
bc54858
A few fixes to allow make dist work
underwoo Jan 6, 2021
a96d67f
Added ./ to test_drifters2.sh tests
underwoo Jan 6, 2021
fdb9d42
Updated time_manager test to use new harness and run each test indivi…
Jan 11, 2021
b37a6d7
Updated mpp_io script and fixed failing test in time manager
Jan 12, 2021
040eb17
Allows testing harness to skip double digit test numbers
Jan 20, 2021
ca789a8
Add automake generated log driver file
Jan 26, 2021
cdd72f9
Add option for verbose output
Jan 29, 2021
9d27d14
Update most test scripts for mpp
Feb 1, 2021
a7ac82b
Output fixes + fix npes test
Feb 2, 2021
a33383a
fix whitespace + input issues
Feb 3, 2021
9407722
mpp test fixes
Feb 4, 2021
0267771
Merge branch 'master' into pr654
Feb 4, 2021
aad8238
Add test_fms/mpp dir to build tools
Feb 4, 2021
9165160
Update test_mpp.F90 to latest version
Feb 5, 2021
c503ff6
Update makefiles
Feb 5, 2021
b611eae
Update mixed prec test scripts
Feb 8, 2021
48bf8f4
Fix typo
Feb 10, 2021
24704af
Merge remote-tracking branch 'origin/mixedPrecTestingUpdates' into te…
Feb 10, 2021
bb8719e
Remove extra tap-driver and update mpp_io test
Feb 15, 2021
6353f5b
add descriptions to time_manager test
Feb 16, 2021
478dbe9
Merge remote-tracking branch 'upstream/master' into testingUpdates
Feb 16, 2021
ed55702
Clean up descriptions, allow xfails to be skipped for ascii test
Feb 19, 2021
fbd5230
Merge remote-tracking branch 'upstream/master' into testingUpdates
Feb 19, 2021
f14fe86
Added list of skipped test numbers to output
Feb 19, 2021
2f268ba
Removed input files, fix skip logic to work for double digits, clean …
Mar 2, 2021
ba2031e
Adds removed tests from mpp_domains and fixes run script
Mar 5, 2021
0548a44
Fix pe counts and subset test
Mar 12, 2021
dbb942f
Adds new tests and fixes for existing
Apr 12, 2021
dd289c1
Fixed pelist issues with single face nested test
Apr 13, 2021
01fafef
Fixed nonsym edge test
Apr 16, 2021
c185e1e
Fix mpp/makefile and update run script
Apr 16, 2021
23a127b
Add in old mpp unit tests that were never merged
May 10, 2021
211bc0a
Add in test files
May 12, 2021
04c7182
Merge in latest updates and update added test
Jun 28, 2021
6cb68ee
Script updates for all other test subdirectories, fixes for mpp tests
Jul 20, 2021
e8ac424
Merge remote-tracking branch 'upstream/main' into testingUpdates
Jul 20, 2021
be22c96
Removes remaining internal namelist macros from tests and fixes diag_…
Jul 21, 2021
627f173
modify to test diurnal
uramirez8707 Jul 21, 2021
a99650e
Add option for using test input files
Jul 27, 2021
37ceb52
Merge remote-tracking branch 'upstream/main' into testingUpdates
Jul 27, 2021
93041be
Fixes the 3d diurnal issue and reverts test scripts back to original …
Jul 29, 2021
0827674
Merge branch 'NOAA-GFDL:main' into diurnal_test
uramirez8707 Jul 29, 2021
08825d5
Merge branch 'main' of github.com:NOAA-GFDL/FMS into diurnal_test
uramirez8707 Aug 2, 2021
254287f
merge in Tom's use_mpp_io removal branch and solve conflicts
uramirez8707 Aug 2, 2021
f340da2
Merge branch 'main' of github.com:NOAA-GFDL/FMS into diurnal_test
uramirez8707 Aug 4, 2021
934242f
idk, magic?
Aug 4, 2021
fc74070
more clean up, corrects type assigment
Aug 5, 2021
35c30d1
Merge branch 'NOAA-GFDL:main' into diurnal_test
uramirez8707 Aug 10, 2021
c884662
Finish input file support, fixes for make distcheck
Aug 10, 2021
87ceec8
Merge remote-tracking branch 'upstream/main' into testingUpdates
Aug 11, 2021
9df98e6
Delete unused input files and update makefiles
Aug 11, 2021
5b80bf3
Fix shell compatibility issues with the CI
Aug 11, 2021
5d9f16e
Missed a shell issue
Aug 11, 2021
d9fe2af
Fix hiding awk ci issue, change so verbose flag just needs to be set
Aug 11, 2021
1c3a23f
Remove unnecessary input script and fix more shell issues
Aug 12, 2021
3e920f5
Revert affinity change and clear output before xgrid test
Aug 13, 2021
8ca1565
Merge branch 'pr798' into HEAD
Aug 17, 2021
e0662c8
Fix typo in input file name for test_mpp_domains
Aug 17, 2021
a5b06cc
Removes include from fms2_io test makefile to get rid of warning
Aug 26, 2021
9a4855c
Removes horiz_interp input file test, fixes input files and duplicate…
Aug 26, 2021
0e8a890
Forgot to remove test2_horiz_interp.F90 file
Aug 30, 2021
dbbef8a
Merge remote-tracking branch 'upstream/main' into testingUpdates
Aug 31, 2021
bd389ba
Create separate nesting test, fix mixed mode failures
Oct 18, 2021
5ca3563
Merge remote-tracking branch 'upstream/main' into testingUpdates
Oct 18, 2021
fda55c0
Remove checksum skips and cleanup
Oct 20, 2021
c9f5cac
Add mpp_exit call to nesting test
Oct 21, 2021
b9c4942
Merge remote-tracking branch 'upstream/main' into testingUpdates
Nov 5, 2021
6b60dcd
Merge remote-tracking branch 'upstream/main' into testingUpdates
Feb 22, 2022
11eb5fd
Fix fms2_io typo and failing from leftover files
Feb 24, 2022
14ede33
Update yaml test script, makefile
Feb 25, 2022
fd994e0
Merge remote-tracking branch 'upstream/main' into testingUpdates
Mar 2, 2022
502ba81
Remove a line from the warnings clean up causing redistributes to fail
Mar 2, 2022
73cfd1d
Merge remote-tracking branch 'upstream/main' into testingUpdates
Mar 3, 2022
c94610f
Fix line lengths for the linter
Mar 3, 2022
ec1c5f8
missed some whitespace
Mar 3, 2022
47f88a7
lost a comma
Mar 3, 2022
7291341
Address review comments
Mar 4, 2022
56cf82b
Missed an error message fix
Mar 4, 2022
7771478
modified: test_fms/mpp/test_domains_utility_mod.F90
Mar 4, 2022
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
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Makefile.in
/mdate-sh
/py-compile
/test-driver
/tap-driver.sh
/ylwrap
*.log
*.trs
Expand Down
3 changes: 3 additions & 0 deletions affinity/affinity.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@
* License along with FMS. If not, see <http://www.gnu.org/licenses/>.
**********************************************************************/

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <unistd.h>
#include <sched.h>
#include <errno.h>
Expand Down
54 changes: 38 additions & 16 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,32 @@ AS_IF([test ${enable_setting_flags:-yes} = yes],
[enable_setting_flags=yes],
[enable_setting_flags=no])

# user enabled testing with input files
AC_MSG_CHECKING([whether to enable tests with input files])
AC_ARG_ENABLE([test-input],
[AS_HELP_STRING([--enable-test-input="path/to/input"],
[Enable tests using input netcdf files, if present in the given full directory.])])
AC_MSG_RESULT([$enable_test_input])

# require path to be given
AS_IF([test "x$enable_test_input" = "xyes"],
[AC_MSG_ERROR([Test input enabled, but no directory given with --enable-test-input=/path])],
[AS_IF([test "x$enable_test_input" != "xno"],
[TEST_INPUT_PATH="$enable_test_input"],[])]
)

# if set, check directory exists
AS_IF([test "$TEST_INPUT_PATH" = ""],
[],
[AS_IF([test -d $TEST_INPUT_PATH],[],
[AC_MSG_ERROR([Test input enabled, but directory $TEST_INPUT_PATH not found]) ]
)])

# substitute path for input
AC_SUBST([TEST_INPUT_PATH])

# Does the user want to build documentation?
AC_MSG_CHECKING([whether documentation should be build (requires doxygen)])
AC_MSG_CHECKING([whether documentation should be built (requires doxygen)])
AC_ARG_ENABLE([docs],
[AS_HELP_STRING([--enable-docs],
[enable building of documentation with doxygen.])])
Expand All @@ -94,6 +118,7 @@ if test "x$enable_docs" = xyes; then
AC_CONFIG_FILES([docs/Doxyfile])
fi


# Find the C compiler.
AC_PROG_CC
AM_PROG_CC_C_O
Expand Down Expand Up @@ -221,9 +246,6 @@ if test $enable_setting_flags = yes; then
fi
fi

# Define an AM_CONDITIONAL to determine if you are on a CRAY
AM_CONDITIONAL([CRAY], [test `env | grep CRAY | wc -l` -gt 0])

# Find which mpi launcher to use
AC_CHECK_PROGS([MPI_LAUNCHER],[srun aprun mpirun])

Expand Down Expand Up @@ -337,25 +359,25 @@ AC_CONFIG_FILES([
random_numbers/Makefile
libFMS/Makefile
docs/Makefile
test_fms/test_common.sh
test_fms/test-lib.sh
test_fms/Makefile
test_fms/diag_manager/Makefile
test_fms/affinity/Makefile
test_fms/axis_utils/Makefile
test_fms/data_override/Makefile
test_fms/exchange/Makefile
test_fms/monin_obukhov/Makefile
test_fms/diag_manager/Makefile
test_fms/drifters/Makefile
test_fms/interpolator/Makefile
test_fms/fms2_io/Makefile
test_fms/exchange/Makefile
test_fms/field_manager/Makefile
test_fms/fms/Makefile
test_fms/mpp/Makefile
test_fms/mpp_io/Makefile
test_fms/fms2_io/Makefile
test_fms/horiz_interp/Makefile
test_fms/interpolator/Makefile
test_fms/time_interp/Makefile
test_fms/time_manager/Makefile
test_fms/horiz_interp/Makefile
test_fms/field_manager/Makefile
test_fms/axis_utils/Makefile
test_fms/mpp_io/Makefile
test_fms/mpp/Makefile
test_fms/monin_obukhov/Makefile
test_fms/mosaic/Makefile
test_fms/affinity/Makefile
test_fms/coupler/Makefile
FMS.pc
])
Expand Down
4 changes: 2 additions & 2 deletions libFMS/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ libFMS_la_LIBADD += $(top_builddir)/diag_integral/libdiag_integral.la
libFMS_la_LIBADD += $(top_builddir)/sat_vapor_pres/libsat_vapor_pres.la
libFMS_la_LIBADD += $(top_builddir)/libFMS_mod.la

# At least one source file must be included to please Automake.
libFMS_la_SOURCES = $(top_builddir)/include/file_version.h
libFMS_la_SOURCES =
nodist_EXTRA_libFMS_la_SOURCES = dummy.f90
4 changes: 2 additions & 2 deletions mkmods.mk
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Ensure the $(MODDIR) exists
$(shell test -d $(MODDIR) || mkdir -p $(MODDIR))

SUFFIXES = .$(FC_MODEXT) _mod.$(FC_MODEXT)
.F90.$(FC_MODEXT) .F90_mod.$(FC_MODEXT) .f90.$(FC_MODEXT) .f90_mod.$(FC_MODEXT):
test -d $(MODDIR) || mkdir -p $(MODDIR)
$(PPFCCOMPILE) -c $<
@cp $(MODDIR)/$@ .
@if test -e $(MODDIR)/$@; then cp $(MODDIR)/$@ .; fi

CLEANFILES = *.$(FC_MODEXT) $(BUILT_SOURCES:%=$(MODDIR)/%) *__genmod.$(FC_MODEXT) *__genmod.f90
14 changes: 7 additions & 7 deletions mosaic/read_mosaic.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void handle_netcdf_error(const char *msg, int status )
void get_file_dir(const char *file, char *dir)
{
int len;
char *strptr = NULL;
const char *strptr = NULL;

/* get the diretory */

Expand Down Expand Up @@ -259,13 +259,13 @@ void get_var_data(const char *file, const char *name, void *data)
switch (vartype) {
case NC_DOUBLE:case NC_FLOAT:
#ifdef OVERLOAD_R4
status = nc_get_var_float(ncid, varid, data);
status = nc_get_var_float(ncid, varid, (float *)data);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this OVERLOAD potentially affecting how things work and should the NC_DOUBLE and NC_FLOAT cases be broken into individual cases?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes were put in by seth in #654 actually to fix some compile issues on darwin, but they look good to me. With the previous logic it would read in data as float or double based on whichever is the fortran default kind so this just adds the cast to data since its a void pointer.

#else
status = nc_get_var_double(ncid, varid, data);
status = nc_get_var_double(ncid, varid, (double *)data);
#endif
break;
case NC_INT:
status = nc_get_var_int(ncid, varid, data);
status = nc_get_var_int(ncid, varid, (int *)data);
break;
default:
sprintf(msg, "get_var_data: field %s in file %s has an invalid type, "
Expand Down Expand Up @@ -319,13 +319,13 @@ void get_var_data_region(const char *file, const char *name, const size_t *start
switch (vartype) {
case NC_DOUBLE:case NC_FLOAT:
#ifdef OVERLOAD_R4
status = nc_get_vara_float(ncid, varid, start, nread, data);
status = nc_get_vara_float(ncid, varid, start, nread, (float *)data);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

#else
status = nc_get_vara_double(ncid, varid, start, nread, data);
status = nc_get_vara_double(ncid, varid, start, nread, (double *)data);
#endif
break;
case NC_INT:
status = nc_get_vara_int(ncid, varid, start, nread, data);
status = nc_get_vara_int(ncid, varid, start, nread, (int *)data);
break;
default:
sprintf(msg, "get_var_data_region: field %s in file %s has an invalid type, "
Expand Down
Loading