forked from NOAA-EMC/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from pjpegion/EMC-stochastic-candidate-20211028
replace MOM_stochastics_stub with stochastic_physics stub
- Loading branch information
Showing
6 changed files
with
78 additions
and
114 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
68 changes: 0 additions & 68 deletions
68
config_src/external/OCEAN_stochastic_physics/MOM_stochastics_stub.F90
This file was deleted.
Oops, something went wrong.
59 changes: 59 additions & 0 deletions
59
config_src/external/stochastic_physics/stochastic_physics.F90
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
! The are stubs for ocean stochastic physics | ||
! the fully functional code is available at | ||
! http://github.com/noaa-psd/stochastic_physics | ||
module stochastic_physics | ||
|
||
implicit none | ||
|
||
private | ||
|
||
public :: init_stochastic_physics_ocn | ||
public :: run_stochastic_physics_ocn | ||
|
||
contains | ||
|
||
!!!!!!!!!!!!!!!!!!!! | ||
subroutine init_stochastic_physics_ocn(delt,geoLonT,geoLatT,nx,ny,nz,pert_epbl_in,do_sppt_in, & | ||
mpiroot, mpicomm, iret) | ||
implicit none | ||
real,intent(in) :: delt | ||
integer,intent(in) :: nx,ny,nz | ||
real,intent(in) :: geoLonT(nx,ny),geoLatT(nx,ny) | ||
logical,intent(in) :: pert_epbl_in,do_sppt_in | ||
integer,intent(in) :: mpiroot, mpicomm | ||
integer, intent(out) :: iret | ||
|
||
iret=0 | ||
if (pert_epbl_in .EQV. .true. ) then | ||
print*,'pert_epbl needs to be false if using the stub' | ||
iret=-1 | ||
endif | ||
if (do_sppt_in.EQV. .true. ) then | ||
print*,'do_sppt needs to be false if using the stub' | ||
iret=-1 | ||
endif | ||
return | ||
end subroutine init_stochastic_physics_ocn | ||
|
||
subroutine run_stochastic_physics_ocn(sppt_wts,t_rp1,t_rp2) | ||
implicit none | ||
real, intent(inout) :: sppt_wts(:,:),t_rp1(:,:),t_rp2(:,:) | ||
return | ||
end subroutine run_stochastic_physics_ocn | ||
|
||
end module stochastic_physics | ||
|
||
module get_stochy_pattern_mod | ||
|
||
private | ||
|
||
public :: write_stoch_restart_ocn | ||
|
||
contains | ||
subroutine write_stoch_restart_ocn(sfile) | ||
|
||
character(len=*) :: sfile | ||
return | ||
end subroutine write_stoch_restart_ocn | ||
|
||
end module get_stochy_pattern_mod |
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