Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Méso-NH code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RODIER Quentin
Méso-NH code
Commits
efdf6a5c
Commit
efdf6a5c
authored
2 years ago
by
RODIER Quentin
Browse files
Options
Downloads
Patches
Plain Diff
Quentin 07/10/2022: check_commit_mesonh : add OCEAN_LES case test
parent
5cf002fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/check_commit_mesonh.sh
+31
-1
31 additions, 1 deletion
tools/check_commit_mesonh.sh
with
31 additions
and
1 deletion
tools/check_commit_mesonh.sh
+
31
−
1
View file @
efdf6a5c
...
@@ -8,7 +8,8 @@ set -e
...
@@ -8,7 +8,8 @@ set -e
# Repertoire où MNH-V5-5-0_PHYEX.tar.gz modifie pour accueillir PHYEX se trouve
# Repertoire où MNH-V5-5-0_PHYEX.tar.gz modifie pour accueillir PHYEX se trouve
#TARGZDIR=$HOME
#TARGZDIR=$HOME
availTests
=
"007_16janvier/008_run2, 007_16janvier/008_run2_turb3D, COLD_BUBBLE/002_mesonh, ARMLES/RUN, COLD_BUBBLE_3D/002_mesonh,"
availTests
=
"007_16janvier/008_run2, 007_16janvier/008_run2_turb3D, COLD_BUBBLE/002_mesonh,
ARMLES/RUN, COLD_BUBBLE_3D/002_mesonh,OCEAN_LES/004_run2"
defaultTest
=
"007_16janvier/008_run2"
defaultTest
=
"007_16janvier/008_run2"
separator
=
'_'
#- be carrefull, gmkpack (at least on belenos) has multiple allergies (':', '.', '@')
separator
=
'_'
#- be carrefull, gmkpack (at least on belenos) has multiple allergies (':', '.', '@')
#- seprator must be in sync with prep_code.sh separator
#- seprator must be in sync with prep_code.sh separator
...
@@ -294,6 +295,9 @@ if [ $check -eq 1 ]; then
...
@@ -294,6 +295,9 @@ if [ $check -eq 1 ]; then
elif
[
$t
==
ARMLES/RUN
]
;
then
elif
[
$t
==
ARMLES/RUN
]
;
then
path_user
=
$path_user_beg
/MY_RUN/KTEST/ARMLES/RUN
$path_user_end
path_user
=
$path_user_beg
/MY_RUN/KTEST/ARMLES/RUN
$path_user_end
path_ref
=
$path_ref_beg
/MY_RUN/KTEST/ARMLES/RUN
$path_ref_end
path_ref
=
$path_ref_beg
/MY_RUN/KTEST/ARMLES/RUN
$path_ref_end
elif
[
$t
==
OCEAN_LES/004_run2
]
;
then
path_user
=
$path_user_beg
/MY_RUN/KTEST/OCEAN_LES/004_run2
$path_user_end
path_ref
=
$path_ref_beg
/MY_RUN/KTEST/OCEAN_LES/004_run2
$path_ref_end
else
else
echo
"cas
$t
non reconnu"
echo
"cas
$t
non reconnu"
fi
fi
...
@@ -361,6 +365,32 @@ if [ $check -eq 1 ]; then
...
@@ -361,6 +365,32 @@ if [ $check -eq 1 ]; then
fi
fi
fi
fi
if
[
$case
==
OCEAN_LES
]
;
then
echo
"Compare with python..."
# Compare variable of both Synchronous files with printing difference
file1
=
$path_user
/SPWAN.2.25m00.001.nc
file2
=
$path_ref
/SPWAN.2.25m00.001.nc
set
+e
$PHYEXTOOLSDIR
/compare.py
--f1
$file1
--f2
$file2
t
=
$?
set
-e
allt
=
$((
$allt
+
$t
))
#Check bit-repro before date of creation of Synchronous file from ncdump of all values (pb with direct .nc file checks)
echo
"Compare with ncdump..."
if
[
-f
$file1
-a
-f
$file2
]
;
then
set
+e
diff <
(
ncdump
$file1
|
head
-c
18400
)
<
(
ncdump
$file2
|
head
-c
18400
)
t
=
$?
set
-e
allt
=
$((
$allt
+
$t
))
else
[
!
-f
$file1
]
&&
echo
"
$file1
is missing"
[
!
-f
$file2
]
&&
echo
"
$file2
is missing"
allt
=
$((
$allt
+
1
))
fi
fi
if
[
$case
==
COLD_BUBBLE_3D
]
;
then
if
[
$case
==
COLD_BUBBLE_3D
]
;
then
echo
"Compare with python..."
echo
"Compare with python..."
# Compare variable of both Synchronous and Diachronic files with printing difference
# Compare variable of both Synchronous and Diachronic files with printing difference
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment