forked from mom-ocean/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'gfdl/dev/gfdl' into iOM4_is_dev2
- Loading branch information
Showing
107 changed files
with
6,425 additions
and
3,956 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/sh | ||
RESULTS=${1:-${PWD}/results} | ||
|
||
GREEN="\033[0;32m" | ||
RESET="\033[0m" | ||
PASS="${GREEN}PASS${RESET}" | ||
|
||
if [ -d ${RESULTS} ]; then | ||
if ls ${RESULTS}/*/std.*.err &> /dev/null; then | ||
echo "The following tests failed to complete:" | ||
ls ${RESULTS}/*/std.*.out \ | ||
| awk '{ \ | ||
split($$0,a,"/"); \ | ||
split(a[length(a)],t,"."); \ | ||
v=t[2]; \ | ||
if(length(t)>4) v=v"."t[4]; print a[length(a)-1],":",v}' | ||
fi | ||
|
||
if ls ${RESULTS}/*/ocean.stats.*.diff &> /dev/null; then | ||
echo "The following tests report solution regressions:" | ||
ls ${RESULTS}/*/ocean.stats.*.diff \ | ||
| awk '{ \ | ||
split($$0,a,"/"); \ | ||
split(a[length(a)],t,"."); \ | ||
v=t[3]; \ | ||
if(length(t)>4) v=v"."t[4]; print a[length(a)-1],":",v}' | ||
fi | ||
|
||
if ls ${RESULTS}/*/chksum_diag.*.diff &> /dev/null; then | ||
echo "The following tests report diagnostic regressions:" | ||
ls ${RESULTS}/*/chksum_diag.*.diff \ | ||
| awk '{ \ | ||
split($$0,a,"/"); \ | ||
split(a[length(a)],t,"."); \ | ||
v=t[2]; \ | ||
if(length(t)>4) v=v"."t[4]; print a[length(a)-1],":",v}' | ||
fi | ||
|
||
exit 1 | ||
else | ||
printf "${PASS}: All tests passed!\n" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
dnl AX_FC_CHECK_C_LIB(LIBRARY, FUNCTION, | ||
dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], | ||
dnl [OTHER-LDFLAGS], [OTHER-LIBS]) | ||
dnl | ||
dnl This macro checks if a C library can be referenced by a Fortran compiler. | ||
dnl | ||
dnl Results are cached in `ax_fc_cv_c_lib_LIBRARY_FUNCTION`. | ||
dnl | ||
dnl NOTE: Might be possible to rewrite this to use `AX_FC_CHECK_BIND_C`. | ||
dnl | ||
AC_DEFUN([AX_FC_CHECK_C_LIB], [ | ||
AS_VAR_PUSHDEF([ax_fc_C_Lib], [ax_fc_cv_c_lib_$1_$2]) | ||
m4_ifval([$5], | ||
[ax_fc_c_lib_msg_LDFLAGS=" with $5"], | ||
[ax_fc_c_lib_msg_LDFLAGS=""] | ||
) | ||
AC_CACHE_CHECK( | ||
[for $2 in -l$1$ax_fc_c_lib_msg_LDFLAGS], [ax_fc_cv_c_lib_$1_$2], [ | ||
ax_fc_check_c_lib_save_LDFLAGS=$LDFLAGS | ||
LDFLAGS="$6 $LDFLAGS" | ||
ax_fc_check_c_lib_save_LIBS=$LIBS | ||
LIBS="-l$1 $7 $LIBS" | ||
AC_LINK_IFELSE( | ||
[AC_LANG_PROGRAM([],[dnl | ||
dnl begin code block | ||
interface | ||
subroutine test() bind(c, name="$2") | ||
end subroutine test | ||
end interface | ||
call test]) | ||
dnl end code block | ||
], | ||
[AS_VAR_SET([ax_fc_C_Lib], [yes])], | ||
[AS_VAR_SET([ax_fc_C_Lib], [no])] | ||
) | ||
LDFLAGS=$ax_fc_check_c_lib_save_LDFLAGS | ||
LIBS=$ax_fc_check_c_lib_save_LIBS | ||
] | ||
) | ||
AS_VAR_IF([ax_fc_C_Lib], [yes], | ||
[m4_default([$3], [LIBS="-l$1 $LIBS"])], | ||
[$4] | ||
) | ||
AS_VAR_POPDEF([ax_fc_C_Lib]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.