-
Notifications
You must be signed in to change notification settings - Fork 19
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 #3105 from GEOS-ESM/feature/tclune/refactor
Feature/tclune/refactor
- Loading branch information
Showing
8 changed files
with
119 additions
and
95 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#include "MAPL_TestErr.h" | ||
|
||
module Test_Ungridded | ||
use mapl3g_UngriddedDim | ||
use mapl3g_UngriddedDims | ||
use funit | ||
use esmf | ||
implicit none | ||
|
||
contains | ||
|
||
@test | ||
subroutine test_make_ungridded_dim() | ||
type(UngriddedDim) :: a, b | ||
type(ESMF_Info) :: info | ||
|
||
integer :: status | ||
|
||
a = UngriddedDim(name='a', units='m', coordinates=[2.,3.,5.]) | ||
info = a%make_info(_RC) | ||
|
||
b = make_UngriddedDim(info, _RC) | ||
|
||
@assert_that(a == b, is(true())) | ||
|
||
end subroutine test_make_ungridded_dim | ||
|
||
@test | ||
subroutine test_make_ungridded_dims() | ||
type(UngriddedDims) :: a, b | ||
type(ESMF_Info) :: info | ||
|
||
integer :: status | ||
|
||
a = UngriddedDims() | ||
call a%add_dim(UngriddedDim(name='a1', units='m', coordinates=[2.,3.,5.])) | ||
call a%add_dim(UngriddedDim(name='a2', units='cm', extent=5)) | ||
|
||
info = a%make_info(_RC) | ||
|
||
b = make_UngriddedDims(info, _RC) | ||
|
||
@assert_that(a == b, is(true())) | ||
|
||
end subroutine test_make_ungridded_dims | ||
|
||
end module Test_Ungridded |
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