-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handles compiler warnings in the C++ emissions script based on a ques…
…tion I asked on Stackoverflow (https://stackoverflow.com/questions/72410931/how-to-handle-warn-unused-result-wunused-result/72410978#72410978). RasterIO read and write warnings were created during compilation because the return value of the read and write lines were being ignored. This now puts the returned error codes into their own arguments, which are then checked for non-0 error codes. (#23) Also, I checked whether checking the returned error codes would slow down the emissions script at all. It didn't slow things down. For 00N_110E, the previous version (which had the warnings during compilation) took around 20 minutes. With this error handling, it now takes about 11:30. I don't know why it should be faster now. Also, I checked the 00N_110E output emissions tiles against the tiles I got from the 1.2.2 full model run. The tiles appear identical.
- Loading branch information
Showing
3 changed files
with
86 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters