Opened 6 years ago
Last modified 5 years ago
#2140 new Request
DMP_TOOL modification
Reported by: | jenniewaters | Owned by: | jenniewaters |
---|---|---|---|
Priority: | low | Milestone: | Unscheduled |
Component: | tools | Version: | |
Severity: | minor | Keywords: | |
Cc: |
Description
Context
The current DMP_TOOL for calculating the restoration coefficients for use with the tra_dmp module in NEMO calculates the distance to coast (using the surface only) for every vertical level. Subsequently the tool is very inefficient for large model domains.
Proposal
- Include functionality to allow the distance to coast to be read in rather than calculated
- Only perform the distance to coast calculation once.
Commit History (1)
Changeset | Author | Time | ChangeLog |
---|---|---|---|
10778 | jenniewaters | 2019-03-20T15:35:07+01:00 | #2140 Small bug fix to get code to compile. |
Attachments (3)
Change History (9)
comment:1 Changed 6 years ago by jenniewaters
comment:2 Changed 6 years ago by jenniewaters
In 10778:
comment:3 in reply to: ↑ description Changed 6 years ago by jenniewaters
- Version v3.6 deleted
Replying to jenniewaters:
Context
The current DMP_TOOL for calculating the restoration coefficients for use with the tra_dmp module in NEMO calculates the distance to coast (using the surface only) for every vertical level. Subsequently the tool is very inefficient for large model domains.
Proposal
- Include functionality to allow the distance to coast to be read in rather than calculated
- Only perform the distance to coast calculation once.
Future developments
Get the DMP_TOOL to calculate the distance to coast correctly for each vertical level. This could be achieved by reading in the land mask for the current vertical level in cofdis in coast_dist.F90.
Changed 6 years ago by jenniewaters
comment:4 Changed 6 years ago by jenniewaters
I ran both the trunk@5518 and my version of the DMP_TOOLS with namelist_025 (attached to the ticket). The resulting resto.nc files are identical, but the trunk version took 2hours 45 minutes to run, while the new version took less the 3 minutes.
Changed 6 years ago by jenniewaters
comment:5 Changed 6 years ago by jenniewaters
The namelist_025_readdistcoast is used to generate the new resto.nc file used in the PS43 testing. The file differs slightly from the versions produced using namelist_025 as the distance to coast is depth dependent. It took less than 30 seconds to produce this file.
resto_plots.png shows the level 53 resto field generated using namelist_025_readdistcoast (right plot) and the level 53 difference between resto fields generated using namelist_025_readdistcoast and namelist_025. The only differences are around sea mounts, islands and coastlines, as we would expect.
Changed 6 years ago by jenniewaters
comment:6 Changed 5 years ago by clevy
- Type changed from Enhancement to Feature request
My proposed code changes can be seen here:
http://fcm3/projects/NEMO.xm/browser/branches/UKMO/dev_r5518_DMP_TOOLS