forked from mom-ocean/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 15
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 #81 from jiandewang/feature/update-to-main-20211220
update MOM6 to its main branch commit 20211220
- Loading branch information
Showing
6 changed files
with
105 additions
and
115 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_phyiscs/MOM_stochastics_stub.F90
This file was deleted.
Oops, something went wrong.
68 changes: 68 additions & 0 deletions
68
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,68 @@ | ||
! 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 !< timestep in seconds between calls to run_stochastic_physics_ocn | ||
integer,intent(in) :: nx !< number of gridpoints in the x-direction of the compute grid | ||
integer,intent(in) :: ny !< number of gridpoints in the y-direction of the compute grid | ||
integer,intent(in) :: nz !< number of gridpoints in the z-direction of the compute grid | ||
real,intent(in) :: geoLonT(nx,ny) !< Longitude in degrees | ||
real,intent(in) :: geoLatT(nx,ny) !< Latitude in degrees | ||
logical,intent(in) :: pert_epbl_in !< logical flag, if true generate random pattern for ePBL perturbations | ||
logical,intent(in) :: do_sppt_in !< logical flag, if true generate random pattern for SPPT perturbations | ||
integer,intent(in) :: mpiroot !< root processor | ||
integer,intent(in) :: mpicomm !< mpi communicator | ||
integer, intent(out) :: iret !< return code | ||
|
||
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(:,:) !< array containing random weights for SPPT range [0,2] | ||
real, intent(inout) :: t_rp1(:,:) !< array containing random weights for ePBL | ||
!! perturbations (KE generation) range [0,2] | ||
real, intent(inout) :: t_rp2(:,:) !< array containing random weights for ePBL | ||
!! perturbations (KE dissipation) range [0,2] | ||
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 !< name of restart file | ||
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