Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CTDAS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Smith, Naomi
CTDAS
Commits
d948239e
Commit
d948239e
authored
13 years ago
by
Arne Babenhauserheide
Browse files
Options
Downloads
Patches
Plain Diff
tm5: force using only one processor and without mpirun.
parent
4037e6e7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
refactored/da/tm5/observationoperator.py
+6
-2
6 additions, 2 deletions
refactored/da/tm5/observationoperator.py
with
6 additions
and
2 deletions
refactored/da/tm5/observationoperator.py
+
6
−
2
View file @
d948239e
...
@@ -515,7 +515,7 @@ class TM5ObservationOperator(ObservationOperator):
...
@@ -515,7 +515,7 @@ class TM5ObservationOperator(ObservationOperator):
jobfile
=
os
.
path
.
join
(
targetdir
,
'
jb.%s.jb
'
%
jobid
)
jobfile
=
os
.
path
.
join
(
targetdir
,
'
jb.%s.jb
'
%
jobid
)
logfile
=
jobfile
.
replace
(
'
.jb
'
,
'
.log
'
)
logfile
=
jobfile
.
replace
(
'
.jb
'
,
'
.log
'
)
nprocesses
=
int
(
self
.
DaCycle
[
'
da.optimizer.nmembers
'
])
/
5
# Note that we assign 5 tracers to each processor, this seems good for TM5
nprocesses
=
min
(
1
,
int
(
self
.
DaCycle
[
'
da.optimizer.nmembers
'
]
))
#
)/5 # Note that we assign 5 tracers to each processor, this seems good for TM5
jobparams
=
{
'
jobname
'
:
'
tm5
'
,
jobparams
=
{
'
jobname
'
:
'
tm5
'
,
'
jobnodes
'
:
'
ncomp %d
'
%
int
(
nprocesses
),
'
jobnodes
'
:
'
ncomp %d
'
%
int
(
nprocesses
),
'
jobtime
'
:
'
00:30:00
'
,
'
jobtime
'
:
'
00:30:00
'
,
...
@@ -524,7 +524,11 @@ class TM5ObservationOperator(ObservationOperator):
...
@@ -524,7 +524,11 @@ class TM5ObservationOperator(ObservationOperator):
template
=
DaPlatForm
.
GetJobTemplate
(
jobparams
,
block
=
True
)
template
=
DaPlatForm
.
GetJobTemplate
(
jobparams
,
block
=
True
)
template
+=
'
cd %s
\n
'
%
targetdir
template
+=
'
cd %s
\n
'
%
targetdir
template
+=
'
%s -np %d %s tm5.rc
\n
'
%
(
self
.
tm_settings
[
'
mpirun.command
'
],
int
(
nprocesses
),
self
.
Tm5Executable
,)
# avoid mpi if we only use one process
if
nprocesses
>
1
:
template
+=
'
%s -np %d %s tm5.rc
\n
'
%
(
self
.
tm_settings
[
'
mpirun.command
'
],
int
(
nprocesses
),
self
.
Tm5Executable
,)
else
:
template
+=
'
%s tm5.rc
\n
'
%
(
self
.
Tm5Executable
,)
dummy
=
DaPlatForm
.
WriteJob
(
jobfile
,
template
,
jobid
)
dummy
=
DaPlatForm
.
WriteJob
(
jobfile
,
template
,
jobid
)
...
...
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