New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
#2140 (DMP_TOOL modification) – NEMO

Opened 5 years ago

Last modified 4 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)

ChangesetAuthorTimeChangeLog
10778jenniewaters2019-03-20T15:35:07+01:00

#2140 Small bug fix to get code to compile.

Attachments (3)

namelist_025 (1.6 KB) - added by jenniewaters 5 years ago.
namelist_025_readdistcoast (1.6 KB) - added by jenniewaters 5 years ago.
resto_plots.png (384.7 KB) - added by jenniewaters 5 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 5 years ago by jenniewaters

Last edited 5 years ago by jenniewaters (previous) (diff)

comment:2 Changed 5 years ago by jenniewaters

In 10778:

Error: Failed to load processor CommitTicketReference
No macro or processor named 'CommitTicketReference' found

comment:3 in reply to: ↑ description Changed 5 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 5 years ago by jenniewaters

comment:4 Changed 5 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 5 years ago by jenniewaters

comment:5 Changed 5 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.

Last edited 5 years ago by jenniewaters (previous) (diff)

Changed 5 years ago by jenniewaters

comment:6 Changed 4 years ago by clevy

  • Type changed from Enhancement to Feature request
Note: See TracTickets for help on using tickets.