-
Notifications
You must be signed in to change notification settings - Fork 823
Shared physics wsm6 #1993
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
Merged
weiwangncar
merged 15 commits into
wrf-model:develop
from
weiwangncar:shared-physics-wsm6
Feb 2, 2024
Merged
Shared physics wsm6 #1993
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
37cd610
Add ccpp-compliant files from MMM-physics to phys/physics_mmm:
weiwangncar ff5127b
need this module too
weiwangncar 1f3fa1b
add new compilation rules
weiwangncar da4c6ed
define limits for effective radii as constants
weiwangncar e6ab497
module_mp_wsm6.F becomes a driver to call mp_wsm6_run in physics_mmm/…
weiwangncar fe57645
- modify the driver to add error variables and effective radii limits
weiwangncar efe3a76
- phys/Makefile: allow compilation of routines in physics_mmm/ subdir…
weiwangncar eb7f1b1
fix errors when wrf_chem is on
weiwangncar 123c7e6
These files are not required in the physics_mmm directory:
weiwangncar e1541c8
Merge branch 'develop' into shared-physics-wsm6
weiwangncar e86f2be
Update depend.common to conform to the updated format
weiwangncar 58572b0
remove silly spaces
weiwangncar 23ba446
remove silly spaces, again
weiwangncar d1168c9
Update depend.common
weiwangncar 09d42d5
Merge branch 'develop' into shared-physics-wsm6
weiwangncar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,91 @@ | ||
| !================================================================================================================= | ||
| module module_libmassv | ||
|
|
||
| implicit none | ||
|
|
||
|
|
||
| interface vrec | ||
| module procedure vrec_d | ||
| module procedure vrec_s | ||
| end interface | ||
|
|
||
| interface vsqrt | ||
| module procedure vsqrt_d | ||
| module procedure vsqrt_s | ||
| end interface | ||
|
|
||
| integer, parameter, private :: R4KIND = selected_real_kind(6) | ||
| integer, parameter, private :: R8KIND = selected_real_kind(12) | ||
|
|
||
| contains | ||
|
|
||
|
|
||
| !================================================================================================================= | ||
| subroutine vrec_d(y,x,n) | ||
| !================================================================================================================= | ||
| integer,intent(in):: n | ||
| real(kind=R8KIND),dimension(*),intent(in):: x | ||
| real(kind=R8KIND),dimension(*),intent(out):: y | ||
|
|
||
| integer:: j | ||
| !----------------------------------------------------------------------------------------------------------------- | ||
|
|
||
| do j=1,n | ||
| y(j)=real(1.0,kind=R8KIND)/x(j) | ||
| enddo | ||
|
|
||
| end subroutine vrec_d | ||
|
|
||
| !================================================================================================================= | ||
| subroutine vrec_s(y,x,n) | ||
| !================================================================================================================= | ||
| integer,intent(in):: n | ||
| real(kind=R4KIND),dimension(*),intent(in):: x | ||
| real(kind=R4KIND),dimension(*),intent(out):: y | ||
|
|
||
| integer:: j | ||
| !----------------------------------------------------------------------------------------------------------------- | ||
|
|
||
| do j=1,n | ||
| y(j)=real(1.0,kind=R4KIND)/x(j) | ||
| enddo | ||
|
|
||
| end subroutine vrec_s | ||
|
|
||
| !================================================================================================================= | ||
| subroutine vsqrt_d(y,x,n) | ||
| !================================================================================================================= | ||
| integer,intent(in):: n | ||
| real(kind=R8KIND),dimension(*),intent(in):: x | ||
| real(kind=R8KIND),dimension(*),intent(out):: y | ||
|
|
||
| integer:: j | ||
| !----------------------------------------------------------------------------------------------------------------- | ||
|
|
||
| do j=1,n | ||
| y(j)=sqrt(x(j)) | ||
| enddo | ||
|
|
||
| end subroutine vsqrt_d | ||
|
|
||
| !================================================================================================================= | ||
| subroutine vsqrt_s(y,x,n) | ||
| !================================================================================================================= | ||
|
|
||
| integer,intent(in):: n | ||
| real(kind=R4KIND),dimension(*),intent(in):: x | ||
| real(kind=R4KIND),dimension(*),intent(out):: y | ||
|
|
||
| integer:: j | ||
|
|
||
| !----------------------------------------------------------------------------------------------------------------- | ||
|
|
||
| do j=1,n | ||
| y(j)=sqrt(x(j)) | ||
| enddo | ||
|
|
||
| end subroutine vsqrt_s | ||
|
|
||
| !================================================================================================================= | ||
| end module module_libmassv | ||
| !================================================================================================================= |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.