Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flex_gen_input
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
Container Registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ignacio Pisso
flex_gen_input
Commits
55c1d309
Commit
55c1d309
authored
6 years ago
by
Ignacio Pisso
Browse files
Options
Downloads
Patches
Plain Diff
export and info mode on laptop
parent
0e0e8d10
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
export_flexgen.sh
+6
-0
6 additions, 0 deletions
export_flexgen.sh
loop_on_pathnames_laptop.sh
+43
-0
43 additions, 0 deletions
loop_on_pathnames_laptop.sh
run_all_sl_laptop
+19
-0
19 additions, 0 deletions
run_all_sl_laptop
with
68 additions
and
0 deletions
export_flexgen.sh
0 → 100755
+
6
−
0
View file @
55c1d309
#!/bin/bash
target
=
$1
#/Users/ignacio/todo/doing/flexpart/flex_gen_input/2018-07-03
cp
define_default_run.sh
$target
cp
Makefile
$target
cp
loop_on_pathnames_laptop.sh
$target
cp
run_all_sl_laptop
$target
This diff is collapsed.
Click to expand it.
loop_on_pathnames_laptop.sh
0 → 100755
+
43
−
0
View file @
55c1d309
#!/bin/bash
#OUTPUT="$(ls -1 pathnames*)"
OUTPUTdefault
=
"
$(
ls
-1
pathnames
*
)
"
OUTPUT
=
${
OUTPUTvar
:-
$OUTPUTdefault
}
OUTPUTpwd
=
"
$(
pwd
)
"
FLEXPARTdefault
=
FLEXPART_8d70e43
#FLEXPART=FLEXPART_8d70e43
FLEXPART
=
${
FLEXPARTvar
:-
$FLEXPARTdefault
}
echo
$OUTPUT
for
i
in
${
OUTPUT
}
do
#FP_slurm_batch_sl=slurm_batch_$i.sl
FP_slurm_batch_sl
=
batch_dry_
$i
.sl
#FP_slurm_batch_sl=toto.sl
echo
'#!/bin/bash'
>
$FP_slurm_batch_sl
echo
'#SBATCH -J '
FP_
$i
>>
$FP_slurm_batch_sl
echo
'#SBATCH -D '
${
OUTPUTpwd
}
' # working directory of script'
>>
$FP_slurm_batch_sl
echo
'#SBATCH --mem=8092 # total memory requirement for the node (in MB)'
>>
$FP_slurm_batch_sl
echo
'#SBATCH --mem-per-cpu=1024 # minimum amount of memory required pr. allocated CPU'
>>
$FP_slurm_batch_sl
echo
'#SBATCH -n 1 # number of tasks, e.g. number of cores'
>>
$FP_slurm_batch_sl
echo
'#SBATCH -N 1 # ensure all cores are on the same host/machine'
>>
$FP_slurm_batch_sl
echo
'#SBATCH --mail-type=ALL # when to send e-mail (valid options are: BEGIN,END,FAIL,REQUEUE,ALL)'
>>
$FP_slurm_batch_sl
echo
'#SBATCH --mail-user=ip@nilu.no # who to send email to'
>>
$FP_slurm_batch_sl
echo
'#SBATCH -o output-%N-%j.out # filename to send standard out to'
>>
$FP_slurm_batch_sl
echo
'#SBATCH -e error-%N-%j.err # filename to send standard error to'
>>
$FP_slurm_batch_sl
echo
' '
>>
$FP_slurm_batch_sl
#echo 'srun -l ' $FLEXPART $i >> $FP_slurm_batch_sl
FLEXPART_run_string
=
"
$FLEXPART
$i
-i"
#echo $FLEXPART -i $i >> $FP_slurm_batch_sl
#echo $FLEXPART $i -i2
echo
$FLEXPART_run_string
>>
$FP_slurm_batch_sl
echo
$FLEXPART_run_string
done
This diff is collapsed.
Click to expand it.
run_all_sl_laptop
0 → 100755
+
19
−
0
View file @
55c1d309
#!/bin/bash
#OUTPUT="$(ls -1 *.sl)"
OUTPUTdefault
=
"
$(
ls
-1
*
.sl
)
"
OUTPUT
=
${
OUTPUTvar
:-
$OUTPUTdefault
}
#rm joblist
for
i
in
${
OUTPUT
}
do
echo
sbatch
$i
#| tee -a joblist1$group
#source $i | tee -a joblist2$group
source
$i
|
tee
stdout
$i
# -a joblist2$group
echo
'##########################################'
done
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