Skip to content

Commit

Permalink
Append _m to all modules to avoid name clashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
micaeljtoliveira committed Nov 18, 2024
1 parent 2cba76b commit 94aa3e7
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/float_vgrid.f90
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
program float_vgrid
! Zeta is double precision. Convert to single and rewrite. This stops small floating point errors.
use M_CLI2
use vgrid
use utils
use vgrid_m
use utils_m
implicit none

type(vgrid_t) :: vgrid
Expand Down
2 changes: 1 addition & 1 deletion src/gen_topo.f90
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module gen_topo_m
!
use iso_fortran_env
use netcdf
use utils
use utils_m
implicit none

private
Expand Down
8 changes: 4 additions & 4 deletions src/topography.f90
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module topography
module topography_m
use iso_fortran_env
use netcdf
use utils
use vgrid
use utils_m
use vgrid_m
implicit none

type topography_t
Expand Down Expand Up @@ -761,4 +761,4 @@ subroutine topography_mask(this, filename)

end subroutine topography_mask

end module topography
end module topography_m
2 changes: 1 addition & 1 deletion src/topogtools.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ program topogtools
use, intrinsic :: iso_fortran_env
use M_CLI2
use gen_topo_m
use topography
use topography_m
implicit none

character(len=5), PARAMETER :: VERSION = "1.0.0"
Expand Down
4 changes: 2 additions & 2 deletions src/utils.f90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module utils
module utils_m
use iso_fortran_env
use netcdf
implicit none
Expand Down Expand Up @@ -119,4 +119,4 @@ function get_mycommand() result(command)

end function get_mycommand

end module utils
end module utils_m
6 changes: 3 additions & 3 deletions src/vgrid.f90
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module vgrid
module vgrid_m
use iso_fortran_env
use netcdf
use utils
use utils_m
implicit none

private
Expand Down Expand Up @@ -207,4 +207,4 @@ subroutine vgrid_float(this)
end subroutine vgrid_float


end module vgrid
end module vgrid_m

0 comments on commit 94aa3e7

Please sign in to comment.