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
Méso-NH
Méso-NH code
Commits
8a77d7a3
Commit
8a77d7a3
authored
2 years ago
by
RIETTE Sébastien
Browse files
Options
Downloads
Patches
Plain Diff
Add the possibility to suppress files when preparing source code for a model
parent
09fafa78
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
check_commit_ial.sh
+1
-1
1 addition, 1 deletion
check_commit_ial.sh
conf_tests/small_3D_np1/aro48t1.sh
+1
-1
1 addition, 1 deletion
conf_tests/small_3D_np1/aro48t1.sh
prep_code.sh
+11
-1
11 additions, 1 deletion
prep_code.sh
with
13 additions
and
3 deletions
check_commit_ial.sh
+
1
−
1
View file @
8a77d7a3
...
@@ -14,7 +14,7 @@ set -e
...
@@ -14,7 +14,7 @@ set -e
#small_3D_alt4: small_3D_alt1 + CSNOWRIMING='OLD'
#small_3D_alt4: small_3D_alt1 + CSNOWRIMING='OLD'
#small_3D_alt5: CCLOUD='ICE4'
#small_3D_alt5: CCLOUD='ICE4'
#small_3D_alt6: CMF_UPDRAFT='RAHA', CMF_CLOUD='BIGA'
#small_3D_alt6: CMF_UPDRAFT='RAHA', CMF_CLOUD='BIGA'
#small_3D_alt7:
CMF_UPDRAFT='RHCJ',
CMF_CLOUD='STAT', LOSIGMAS=.FALSE. #Needs 2 corrections in original cycle 48
#small_3D_alt7: CMF_CLOUD='STAT', LOSIGMAS=.FALSE. #Needs 2 corrections in original cycle 48
#small_3D_alt8: CMF_UPDRAFT='RHCJ'
#small_3D_alt8: CMF_UPDRAFT='RHCJ'
#The small_3D_alt8 is not included in the list of available tests because it needs to be compared against a special commit.
#The small_3D_alt8 is not included in the list of available tests because it needs to be compared against a special commit.
...
...
This diff is collapsed.
Click to expand it.
conf_tests/small_3D_np1/aro48t1.sh
+
1
−
1
View file @
8a77d7a3
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
#SBATCH -N 1
#SBATCH -N 1
#SBATCH -p normal256
#SBATCH -p normal256
#The MYLIB vari
b
ale must contain the gmkpack pack name
#The MYLIB varia
b
le must contain the gmkpack pack name
#The TESTDIR variable must contain the test directory
#The TESTDIR variable must contain the test directory
#Results will be stored in the local directory
#Results will be stored in the local directory
...
...
This diff is collapsed.
Click to expand it.
prep_code.sh
+
11
−
1
View file @
8a77d7a3
...
@@ -146,7 +146,17 @@ if [ -n "${model-}" ]; then
...
@@ -146,7 +146,17 @@ if [ -n "${model-}" ]; then
[
-e
src/
$model
/
$sub
]
&&
cp
-rlf
src/
$model
/
$sub
.
&&
rm
-rf
src/
$model
/
$sub
[
-e
src/
$model
/
$sub
]
&&
cp
-rlf
src/
$model
/
$sub
.
&&
rm
-rf
src/
$model
/
$sub
done
done
#cleaning
#Supression of unwanted files
if
[
-f
src/
$model
/filesToSuppress.txt
]
;
then
#Some files can be present in the common directory but are not wanted for a model export
#because these files are already existing elsewhere in the model source code
while
read
-r
line
;
do
filename
=
$(
echo
$line
|
sed
-e
's/^[[:space:]]*//'
|
sed
-e
's/[[:space:]]*$//'
)
#trim
[
-f
"
$filename
"
]
&&
rm
-f
"
$filename
"
done
< src/
$model
/filesToSuppress.txt
fi
#Cleaning
[
$verbose
-gt
0
]
&&
echo
"Cleaning unrelevant files"
[
$verbose
-gt
0
]
&&
echo
"Cleaning unrelevant files"
#multiple checks to prevent error
#multiple checks to prevent error
if
[
$from
==
'git'
-a
!
$(
git config
--get
remote.origin.url
)
==
"
$repository
"
]
;
then
if
[
$from
==
'git'
-a
!
$(
git config
--get
remote.origin.url
)
==
"
$repository
"
]
;
then
...
...
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