Skip to content

Added boundary checks to the SMC input files for ww3_grid#6

Merged
ukmo-ccbunney merged 1 commit into
stagingfrom
bf_smc_ww3grid
Jun 30, 2020
Merged

Added boundary checks to the SMC input files for ww3_grid#6
ukmo-ccbunney merged 1 commit into
stagingfrom
bf_smc_ww3grid

Conversation

@UKMO-lsampson
Copy link
Copy Markdown

Added boundary checks to the SMC grid input files for ww3_grid, to ensure they comply with the limits of the nameslist.

Regrestion tests complete:

  • ww3_tp2.10 [No changes to results]
  • ww3_tp2.16 [No changes to results]

Copy link
Copy Markdown

@ukmo-ansaulter ukmo-ansaulter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Lewis,

I'm generally happy - although note that you've had to use EXIT(65) here rather than EXTCDE(65) in order to make the exit and error messaging work cleanly. If you could just summarize that reasoning in the comments, so we have it captured, then I'm good to approve.

Cheers
Andy

@UKMO-lsampson
Copy link
Copy Markdown
Author

Thanks Lewis,

I'm generally happy - although note that you've had to use EXIT(65) here rather than EXTCDE(65) in order to make the exit and error messaging work cleanly. If you could just summarize that reasoning in the comments, so we have it captured, then I'm good to approve.

Cheers
Andy

Hi Andy,

Thanks for bringing this to my attention, the change was for an earlier practice with the code and has now been reverted back to EXTCDE instead of EXIT. This has been updated in the latest git commit.

Best regards, Lewis.

@ukmo-ansaulter
Copy link
Copy Markdown

Thanks Lewis,
I'm generally happy - although note that you've had to use EXIT(65) here rather than EXTCDE(65) in order to make the exit and error messaging work cleanly. If you could just summarize that reasoning in the comments, so we have it captured, then I'm good to approve.
Cheers
Andy

Hi Andy,

Thanks for bringing this to my attention, the change was for an earlier practice with the code and has now been reverted back to EXTCDE instead of EXIT. This has been updated in the latest git commit.

Best regards, Lewis.

That looks good now Lewis, I'll approve

@ukmo-ansaulter ukmo-ansaulter self-requested a review June 19, 2020 09:01
@ukmo-ccbunney ukmo-ccbunney changed the title Added boundary checks to the SMC grid input files for ww3_grid, Added boundary checks to the SMC input files for ww3_grid Jun 23, 2020
Copy link
Copy Markdown
Collaborator

@aliabdolali aliabdolali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks ok to me.

Copy link
Copy Markdown
Member

@ukmo-ccbunney ukmo-ccbunney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Lewis,
Looking at this, I wonder if we could make the error message slightly clearer.
It would also be nice to include ISEA so the user can see exactly which line caused the issue.
I think something like this would be better:

 *** WAVEWATCH-III ERROR IN W3GRID
  SMC CELL LONGITUDE RANGE OUTSIDE BASE GRID RANGE:
  ISEA = XXX; IX = XXX:XXX; NX = XXX

and similarly for latitude.

This would require you to provide some extra parameters to the write statement, i.e. on line 4415:

WRITE (NDSE,1014) ISEA, IX, IX+IK-1, NX

to ensure they comply with the limits of the nameslist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants