-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor modifications to Monio::readState for HofX #29
Conversation
…ot previously been approached with Monio directly before current work in LFRic-JEDI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
This isn't building on EXZ: /home/h01/david.davies/cylc-run/monio-29/share/mo-bundle/monio/src/monio/Utils.cc: In function 'std::string monio::utils::exec(const std::string&)': |
Maybe add #include <array> ? |
I'm completely lost; I am trying to write #include <array>, but it won't show the <array> |
Thanks @DJDavies2. Your suggestion is valid from a code linting perspective, but I'm very confused why this would cause a build issue! I've added the include now. I'd be interested to know if it builds now. |
If you want to use std::array you need to #include <array>. The real question is why it does compile on other platforms; probably because <array> is included via some other header but there is a different version of libstdc++ on the EXZ. I don't think it is standard conforming to rely on including headers indirectly from other standard library headers, the only reliable thing is to include the header where it is used. |
In HofX tests there is a current need to pre-allocate fields that do not exist in the model, but which are populated as part of a variable transformation process. This use-case had not previously been tested in this version of MONIO and has indicated the need to check for fields that are not available in the state file. This PR introduces that check, and generates a warning message if reading is skipped.
Test outputs in MONIO, and with LFRic-Lite and LFRic-JEDI (on feature/hofx_io_compare): http://fcm1/cylc-review/taskjobs/punderwo/?suite=hofx_io_comapare_02