ESCOMP / ESCOMP/CMEPS

A bug when using REST_OPTION=date

Open
#301 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Fortran
Stars
35
Forks
106
Avg merge
6d 5h
Merged PRs (30d)
4

Description

The errors occur in the following line:
https://github.com/ESCOMP/CMEPS/blob/95e148bde5d71d31fd431f11a2539d461b325b9a/mediator/med_phases_restart_mod.F90#L88

Errors message is like such:
```
20220505 103527.148 ERROR PET0 (med_time_alarmInit):date requires opt_ymd
20220505 103527.149 ERROR PET0 ESMF_Alarm.F90:1445 ESMF_AlarmSet() Object being used before creation - Bad Object
20220505 103527.149 ERROR PET0 med_phases_restart_mod.F90:91 Object being used before creation - Passing error in return code
```
According to line:
https://github.com/ESCOMP/CMEPS/blob/95e148bde5d71d31fd431f11a2539d461b325b9a/mediator/med_time_mod.F90#L53

There should be a parameter `opt_ymd` added when calling `med_time_alarmInit` and `restart_option` is ` date`. Namely,

`call med_time_alarmInit(mclock, alarm, option=restart_option, opt_n=restart_n, &`

should be:

`call med_time_alarmInit(mclock, alarm, option=restart_option, opt_n=restart_n, opt_ymd=restart_ymd, &`

`restart_ymd` also has to be declared and retrieved in the file.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.