Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flex Extract
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
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
Flexpart
Flex Extract
Commits
f5e40d8c
Commit
f5e40d8c
authored
4 years ago
by
Anne Philipp
Browse files
Options
Downloads
Patches
Plain Diff
removed template for jobs created from installation
parent
5f678830
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Templates/submitscript.template
+0
-80
0 additions, 80 deletions
Templates/submitscript.template
with
0 additions
and
80 deletions
Templates/submitscript.template
deleted
100644 → 0
+
0
−
80
View file @
5f678830
#!/bin/ksh
# ON ECGB:
# start with ecaccess-job-submit -queueName ecgb NAME_OF_THIS_FILE on gateway server
# start with sbatch NAME_OF_THIS_FILE directly on machine
#SBATCH --workdir=/scratch/ms/at/km4a
#SBATCH --qos=normal
#SBATCH --job-name=flex_ecmwf
#SBATCH --output=flex_ecmwf.%j.out
#SBATCH --error=flex_ecmwf.%j.out
#SBATCH --mail-type=FAIL
#SBATCH --time=12:00:00
## CRAY specific batch requests
##PBS -N flex_ecmwf
##PBS -q np
##PBS -S /usr/bin/ksh
## -o /scratch/ms/at/km4a/flex_ecmwf.$${PBS_JOBID}.out
## job output is in .ecaccess_DO_NOT_REMOVE
##PBS -j oe
##PBS -V
##PBS -l EC_threads_per_task=24
##PBS -l EC_memory_per_task=32000MB
set
-x
export
VERSION
=
7.1.1
case
$$
{
HOST
}
in
*
ecg
*
)
module unload grib_api
module unload eccodes
module unload python
module unload emos
module load python3/3.6.8-01
module load eccodes/2.13.0
module load emos/455-r64
export
PATH
=
$$
{
PATH
}
:
$$
{
HOME
}
/flex_extract_v7.1.1/Source/Python
;;
*
cca
*
)
module unload python
module switch PrgEnv-cray PrgEnv-intel
module load python3
module load eccodes/2.13.0
module load emos/455-r64
export
SCRATCH
=
$$
{
TMPDIR
}
export
PATH
=
$$
{
PATH
}
:
$$
{
HOME
}
/flex_extract_v7.1.1/Source/Python
;;
esac
cd
$$
{
SCRATCH
}
mkdir
-p
python
$$$$
cd
python
$$$$
export
CONTROL
=
CONTROL
cat
>
$$
{
CONTROL
}<<
EOF
$control_content
EOF
submit.py
--controlfile
=
$$
{
CONTROL
}
--inputdir
=
./work
--outputdir
=
./work 1> prot 2>&1
if
[
$?
-eq
0
]
;
then
l
=
0
for
muser
in
`
grep
-i
MAILOPS
$$
{
CONTROL
}
`
;
do
if
[
$$
{
l
}
-gt
0
]
;
then
mail
-s
flex.
$$
{
HOST
}
.
$$$$
$$
{
muser
}
<prot
fi
l
=
$((
$$
{
l
}+
1
))
done
else
l
=
0
for
muser
in
`
grep
-i
MAILFAIL
$$
{
CONTROL
}
`
;
do
if
[
$$
{
l
}
-gt
0
]
;
then
mail
-s
"ERROR! flex.
$$
{HOST}.
$$$$
"
$$
{
muser
}
<prot
fi
l
=
$((
$$
{
l
}+
1
))
done
fi
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