Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
thopri
PyNEMO
Commits
b1ee0b2f
Commit
b1ee0b2f
authored
5 years ago
by
James Harle
Browse files
Options
Download
Email Patches
Plain Diff
update a few files
parent
c99779e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
inputs/namelist_local.bdy
inputs/namelist_local.bdy
+1
-1
pynemo/profile.py
pynemo/profile.py
+0
-1
pynemo/pynemo_exe.py
pynemo/pynemo_exe.py
+2
-1
No files found.
inputs/namelist_local.bdy
View file @
b1ee0b2f
...
...
@@ -40,7 +40,7 @@
!------------------------------------------------------------------------------
! I/O
!------------------------------------------------------------------------------
sn_src_dir = '/Users/jdha/Projects/GitHub/PyNEMO/inputs/src_data.ncml' ! src_files/'
sn_src_dir = '/Users/jdha/Projects/GitHub/PyNEMO/inputs/src_data
_local
.ncml' ! src_files/'
sn_dst_dir = './outputs'
sn_fn = 'NNA_R12' ! prefix for output files
nn_fv = -1e20 ! set fill value for output files
...
...
This diff is collapsed.
Click to expand it.
pynemo/profile.py
View file @
b1ee0b2f
...
...
@@ -149,7 +149,6 @@ def process_bdy(setup_filepath=0, mask_gui=False):
DstCoord
.
depths
[
grd
][
'bdy_H'
]
=
np
.
nanmax
(
z
.
zpoints
[
'w'
+
grd
],
axis
=
0
)
DstCoord
.
depths
[
grd
][
'bdy_dz'
]
=
np
.
diff
(
z
.
zpoints
[
'w'
+
grd
],
axis
=
0
)
DstCoord
.
depths
[
grd
][
'bdy_z'
]
=
z
.
zpoints
[
grd
]
logger
.
info
(
'Depths defined'
)
# Gather vorizontal grid information
...
...
This diff is collapsed.
Click to expand it.
pynemo/pynemo_exe.py
View file @
b1ee0b2f
...
...
@@ -7,6 +7,7 @@ Entry for the project
import
sys
,
getopt
import
profile
import
logging
import
cProfile
# Logging set to info
logging
.
basicConfig
(
level
=
logging
.
INFO
)
...
...
@@ -41,7 +42,7 @@ def main():
#Logger
#logger = logging.getLogger(__name__)
t0
=
time
.
time
()
profile
.
process_bdy
(
setup_file
,
mask_gui
)
cProfile
.
runctx
(
"f(x, y)"
,{
'f'
:
profile
.
process_bdy
,
'x'
:
setup_file
,
'y'
:
mask_gui
},
{},
'pynemo_stats'
)
t1
=
time
.
time
()
print
"Execution Time: %s"
%
(
t1
-
t0
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment