Skip to content

Commit

Permalink
added error when climate and update grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholaswogan committed May 17, 2024
1 parent a3c20e6 commit 9961559
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/evoatmosphere/photochem_evoatmosphere_utils.f90
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,11 @@ module subroutine update_vertical_grid(self, TOA_alt, TOA_pressure, err)
var => self%var
wrk => self%wrk

if (self%evolve_climate) then
err = 'You can not call "update_vertical_grid" when evolving climate'
return
endif

if (present(TOA_alt) .and. present(TOA_pressure)) then
err = 'Both "TOA_alt" and "TOA_pressure" can not be specified'
return
Expand Down

0 comments on commit 9961559

Please sign in to comment.