-
Notifications
You must be signed in to change notification settings - Fork 32
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
[PULL REQUEST] Forward and reverse models compile and run #67
Conversation
Hi @TerribleNews, thanks for these updates. I am bringing these in for the next release of HEMCO. I have similar questions as for the GEOS-Chem companion PR.
It's been on the to do list for a while to improve the error handling and prints in HEMCO, especially when using MPI. If some or all of your prints were for temporary debugging we might still want to bring them in, but maybe with tweaking if they are MAPL-dependent. |
Okay, I'll look into this and get back to you. What is the plan for debug prints?
Oh, that's a good question. I've never build GEOS-Chem classic from the GCHP repo. I will do a quick visual check, but it might take me a while to get to testing if I can build (and run?) classic. |
I think I've covered most of these now. For now I just eliminated the debug printing altogether. It shouldn't be hard to add back in once there's more infrastructure for handling MAPL/non-MAPL cases. |
Thanks @TerribleNews! I'll bring this in this week and let you know if I have any questions. |
@@ -330,5 +333,511 @@ SUBROUTINE GetHcoDiagn ( HcoState, ExtState, DiagnName, & | |||
RC = HCO_SUCCESS | |||
|
|||
END SUBROUTINE GetHcoDiagn | |||
|
|||
#ifdef FALSE ! the adjoint-relevant code in here has been moved to |
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.
Did you intend to leave this as FALSE?
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.
Sorry, I missed that when I cleaned up the other ifdef FALSEs. This whole subroutine was moved to hco_calc_mod but I left it there as insurance in case that didn't work and then forgot to delete it after I verified the new code. I have commited a change removing both these blocks.
@@ -28,6 +28,9 @@ MODULE HCO_Interface_Common | |||
PUBLIC :: SetHcoTime | |||
PUBLIC :: GetHcoVal | |||
PUBLIC :: GetHcoDiagn | |||
#ifdef FALSE |
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.
Same question as above. Should this be ADJOINT?
src/Core/hcoio_write_esmf_mod.F90
Outdated
IF (MAPL_am_I_Root()) THEN | ||
IF ( RC == HCO_SUCCESS .and. FLAG == HCO_SUCCESS ) WRITE(*,*) "Got it! Name: ", TRIM(ThisDiagn%cName) | ||
IF ( RC /= HCO_SUCCESS) WRITE(*,*) "Fail! RC: ", RC, " Flag: ", FLAG | ||
ENDIF |
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.
In my GCHP test this is printing lines every timestep.
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.
Those wound up being pretty key debug messages. I don't know if we'll need them again, but probably. Can I comment them out but keep them?
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.
Yes. We want to overhaul the HEMCO debug prints and if this stays in but commented out it will be included in that update.
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.
Okay, done!
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.
Thanks!
Companion pull request to geoschem/GCHP#71
I needed to add HEMCO code to calculate emissions sensitivities, apply emissions scaling factors, and output adjoint diagnostics.