Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
RoutingPP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
IPSL
LMD
InTro
RoutingPP
Commits
07bbfcab
Commit
07bbfcab
authored
5 years ago
by
POLCHER Jan
Browse files
Options
Downloads
Patches
Plain Diff
Small coreections to the new functions
parent
b3f1e892
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
Partition.py
+8
-3
8 additions, 3 deletions
Partition.py
with
8 additions
and
3 deletions
Partition.py
+
8
−
3
View file @
07bbfcab
...
...
@@ -442,9 +442,11 @@ class partition :
elif
order
==
'
F
'
:
x
[
self
.
landcorelist
,:]
=
0.0
else
:
ERROR
(
"
Unforessen order for variable to
zero
"
)
ERROR
(
"
Unforessen order for variable to
be set to zero over core region.
"
)
sys
.
exit
()
else
:
ERROR
(
"
Unforessen rank for variable to summedibe set to zero over the core region.
"
)
sys
.
exit
()
return
#
# Function to sum over the core regions
...
...
@@ -458,6 +460,9 @@ class partition :
elif
order
==
'
F
'
:
y
=
np
.
nansum
(
x
[
self
.
landcorelist
,:],
axis
=
0
)
else
:
ERROR
(
"
Unforessen order for variable to
zero
"
)
ERROR
(
"
Unforessen order for variable to
summed over the core region.
"
)
sys
.
exit
()
else
:
ERROR
(
"
Unforessen rank for variable to summed over the core region.
"
)
sys
.
exit
()
return
y
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