Skip to content

Commit

Permalink
Module renaming, added stub module file for ectrans
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrows committed Nov 3, 2023
1 parent 185c345 commit dd1443a
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/programs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ foreach( prec sp dp )
ecbuild_add_executable(TARGET ectrans-benchmark-uni-${prec}
SOURCES
ectrans-benchmark-program.F90
ectrans-benchmark-driver.F90
ectrans-benchmark-driver_mod.F90
ectrans-benchmark-data_mod.F90
LIBS
fiat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
! nor does it submit to any jurisdiction.
!

MODULE transform_driver
MODULE transform_driver_mod
use parkind1, only: jpim, jprb, jprd
use oml_mod ,only : oml_max_threads
use yomgstats, only: jpmaxstat
Expand Down Expand Up @@ -718,6 +718,6 @@ subroutine dump_gridpoint_field(jstep, myproc, nproma, ngpblks, fld, fldchar, no
end subroutine dump_gridpoint_field


end module transform_driver
end module transform_driver_mod

!===================================================================================================
2 changes: 1 addition & 1 deletion src/programs/ectrans-benchmark-program.F90
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ program transform_test
use mpl_module
use yomgstats, only: jpmaxstat
use yomhook, only : dr_hook_init
use transform_driver,only : ectrans_setup, ectrans_setup0, &
use transform_driver_mod, only : ectrans_setup, ectrans_setup0, &
ectrans_trans_inq, ectrans_allocate_spectral, &
ectrans_allocate_grid, ectrans_deallocate_grid, &
ectrans_allocate_normdata, ectrans_calculate_norms, &
Expand Down
1 change: 1 addition & 0 deletions src/trans/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ ecbuild_list_add_pattern( LIST trans_src
algor/*
internal/*
external/*
module/*
${CMAKE_CURRENT_BINARY_DIR}/internal/ectrans_version_mod.F90
QUIET
)
Expand Down
24 changes: 24 additions & 0 deletions src/trans/module/ectrans_mod.F90
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module ectrans_mod
#include "setup_trans0.h"
#include "setup_trans.h"
#include "inv_trans.h"
#include "dir_trans.h"
#include "trans_inq.h"
#include "specnorm.h"
end module ectrans_mod
submodule (ectrans_mod) setup_trans0_mod
#include "setup_trans0.F90"
end submodule setup_trans0_mod
submodule (ectrans_mod) setup_trans_mod
#include "setup_trans.F90"
end submodule setup_trans_mod
submodule (ectrans_mod) inv_trans_mod
#include "inv_trans.F90"
end submodule inv_trans_mod
submodule (ectrans_mod) inv_trans_mod
#include "inv_trans.F90"
end submodule inv_trans_mod
submodule (ectrans_mod) specnorm_mod
#include "specnorm.F90"
end submodule specnorm_mod

0 comments on commit dd1443a

Please sign in to comment.