File tree Expand file tree Collapse file tree 7 files changed +3
-45
lines changed Expand file tree Collapse file tree 7 files changed +3
-45
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,5 @@ target_link_libraries(io_reader PUBLIC
14
14
PIO::PIO_C
15
15
cam_pio_utils
16
16
ccpp_framework)
17
- #target_link_libraries(io_reader PUBLIC PIO::PIO_Fortran cam_pio_utils ccpp_framework)
18
17
target_include_directories (io_reader PRIVATE ${CMAKE_BINARY_DIR} /ccpp_framework_stub
19
- ${CMAKE_BINARY_DIR} /utils )
18
+ ${CMAKE_BINARY_DIR} /mock_routines )
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.18)
2
2
3
3
project (CAM-SIMA-core-utils LANGUAGES Fortran C)
4
- #project(CAM-SIMA-core-utils LANGUAGES Fortran)
5
4
6
5
option (CAM_SIMA_ENABLE_TESTS "Run pFUnit unit tests" OFF )
7
6
option (CAM_SIMA_ENABLE_CODE_COVERAGE "Run code coverage tool" OFF )
@@ -36,17 +35,15 @@ if(CAM_SIMA_ENABLE_TESTS OR CAM_SIMA_ENABLE_CODE_COVERAGE OR CAM_SIMA_ENABLE_IO_
36
35
endif ()
37
36
if (CAM_SIMA_ENABLE_IO_TESTS)
38
37
find_package (MPI REQUIRED COMPONENTS Fortran C)
39
- #find_package(MPI REQUIRED COMPONENTS Fortran)
40
38
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" )
41
39
find_package (NetCDF REQUIRED COMPONENTS Fortran C)
42
- #find_package(NetCDF REQUIRED COMPONENTS Fortran)
43
40
find_package (PIO REQUIRED COMPONENTS Fortran C)
44
41
45
42
add_subdirectory (ccpp_framework_stub)
46
- add_subdirectory (utils )
43
+ add_subdirectory (mock_routines )
47
44
48
45
add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /../../../src/physics/utils ${CMAKE_CURRENT_BINARY_DIR} /src/physics/utils)
49
46
50
- add_subdirectory (src/mock_routines )
47
+ add_subdirectory (src/pio_reader )
51
48
endif ()
52
49
endif ()
Original file line number Diff line number Diff line change 1
1
add_library (cam_pio_utils cam_pio_utils.F90)
2
2
target_link_libraries (cam_pio_utils PUBLIC MPI::MPI_Fortran
3
- #MPI::MPI_C
4
3
PIO::PIO_Fortran
5
4
PIO::PIO_C
6
5
NetCDF::NetCDF_C
File renamed without changes.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
add_pfunit_ctest(pio_tests
2
- #TEST_SOURCES test_pio_read.pf test_pio_reader.pf
3
2
TEST_SOURCES test_pio_reader.pf
4
3
LINK_LIBRARIES io_reader
5
4
cam_pio_utils
6
5
ccpp_framework
7
6
MPI::MPI_Fortran
8
- #MPI::MPI_C
9
7
PIO::PIO_Fortran
10
8
PIO::PIO_C
11
9
NetCDF::NetCDF_C
Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ subroutine test_pio_reader_open_close_file()
29
29
!close a file successfully.
30
30
use funit
31
31
32
- !use mpi, only: mpi_init
33
-
34
32
use ccpp_io_reader, only: abstract_netcdf_reader_t
35
33
use ccpp_io_reader, only: create_netcdf_reader_t
36
34
@@ -39,17 +37,11 @@ subroutine test_pio_reader_open_close_file()
39
37
integer :: errcode
40
38
character(len=256) :: errmsg
41
39
42
- !integer :: mpi_ierr
43
-
44
40
! File name for testing:
45
41
! NOTE: This specific file is added during the Github Actions workflow.
46
42
character(len=*), parameter :: fname = &
47
43
'../../../rrtmgp-data/rrtmgp-gas-sw-g112.nc'
48
44
49
- ! Initialize MPI:
50
- ! NOTE: This must be done for the first test in the test suite.
51
- !call mpi_init(mpi_ierr)
52
-
53
45
! Begin test:
54
46
55
47
reader = create_netcdf_reader_t()
You can’t perform that action at this time.
0 commit comments