E3SM-Project / E3SM-Project/E3SM

Runtime Error (atm): vmag_gust not added to pbuf when CLUBB not used

Open
#2,912 0 comments 0 reactions 1 assignee Claimed by @singhbalwinder View on GitHub
Atmosphere bug
Dominant language
Fortran
Stars
441
Forks
481
Avg merge
4d 7h
Merged PRs (30d)
33

Description

'vmag_gust' is added to pbuf in `clubb_register_cam`. If CLUB is not used, there is a runtime error, as recorded in atm.log:

```
CAM_PIO_CHECK_VAR INFO: variable vmag_gust is not on file
vmag_gust initialized to 1.
ERROR: Attempt to find undefined name in pbuf vmag_gust
```
(As an aside, from the code it looks to me like the default initialized value is 0, not 1.)

This was encountered while merging E3SM/master into ACME-ECP because we do not use CLUBB with superparameterization.

One solution is to move the `pbuf_add_field` call for `vmag_gust` somewhere other than `clubb_register_cam`, but I do not know the best place to move it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.