Skip to content

Commit

Permalink
Merge pull request #23 from kgerheiser/bugfix/unique-module-name
Browse files Browse the repository at this point in the history
Change name of GDSWZD_MOD to avoid name conflict with ip
  • Loading branch information
kgerheiser authored Nov 19, 2020
2 parents 72b9f57 + 7c0d7be commit 89067de
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/gdswzd_c.F90
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ SUBROUTINE GDSWZD_C(IGDTNUM,IGDTMPL,IGDTLEN,IOPT,NPTS,FILL, &
!
USE, INTRINSIC :: ISO_C_BINDING

USE GDSWZD_MOD
USE GDSWZD_MOD_ip2

IMPLICIT NONE

Expand Down
6 changes: 3 additions & 3 deletions src/gdswzd_mod.f90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MODULE GDSWZD_MOD
MODULE GDSWZD_MOD_IP2
!$$$ MODULE DOCUMENTATION BLOCK
!
! MODULE: GDSWZD_MOD GDS WIZARD MODULE
Expand All @@ -23,7 +23,7 @@ MODULE GDSWZD_MOD
! 2015-01-21 GAYNO INITIAL VERSION FROM A MERGER OF
! ROUTINES GDSWIZ AND GDSWZD.
!
! USAGE: "USE GDSWZD_MOD" THEN CALL THE PUBLIC DRIVER
! USAGE: "USE GDSWZD_MOD_ip2" THEN CALL THE PUBLIC DRIVER
! ROUTINE "GDSWZD".
!
! ATTRIBUTES:
Expand Down Expand Up @@ -585,4 +585,4 @@ SUBROUTINE GDSWZD_1D_ARRAY(IGDTNUM,IGDTMPL,IGDTLEN,IOPT,NPTS,FILL, &
! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
END SUBROUTINE GDSWZD_1D_ARRAY

END MODULE GDSWZD_MOD
END MODULE GDSWZD_MOD_IP2
2 changes: 1 addition & 1 deletion src/polates0.f90
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ SUBROUTINE POLATES0(IPOPT,IGDTNUMI,IGDTMPLI,IGDTLENI, &
!
!$$$
!
USE GDSWZD_MOD
USE GDSWZD_MOD_ip2
!
IMPLICIT NONE
!
Expand Down
2 changes: 1 addition & 1 deletion src/polates1.f90
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ SUBROUTINE POLATES1(IPOPT,IGDTNUMI,IGDTMPLI,IGDTLENI, &
!
!$$$
!
USE GDSWZD_MOD
USE GDSWZD_MOD_ip2
!
IMPLICIT NONE
!
Expand Down
2 changes: 1 addition & 1 deletion src/polates2.f90
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ SUBROUTINE POLATES2(IPOPT,IGDTNUMI,IGDTMPLI,IGDTLENI, &
! LANGUAGE: FORTRAN 90
!
!$$$
USE GDSWZD_MOD
USE GDSWZD_MOD_ip2
!
IMPLICIT NONE
!
Expand Down
2 changes: 1 addition & 1 deletion src/polates3.f90
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ SUBROUTINE POLATES3(IPOPT,IGDTNUMI,IGDTMPLI,IGDTLENI, &
! LANGUAGE: FORTRAN 90
!
!$$$
USE GDSWZD_MOD
USE GDSWZD_MOD_ip2

IMPLICIT NONE
!
Expand Down
2 changes: 1 addition & 1 deletion src/polates4.f90
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ SUBROUTINE POLATES4(IPOPT,IGDTNUMI,IGDTMPLI,IGDTLENI, &
! LANGUAGE: FORTRAN 90
!
!$$$
USE GDSWZD_MOD
USE GDSWZD_MOD_ip2
!
IMPLICIT NONE
!
Expand Down
2 changes: 1 addition & 1 deletion src/polates6.f90
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ SUBROUTINE POLATES6(IPOPT,IGDTNUMI,IGDTMPLI,IGDTLENI, &
! LANGUAGE: FORTRAN 90
!
!$$$
USE GDSWZD_MOD
USE GDSWZD_MOD_ip2
!
IMPLICIT NONE
!
Expand Down
2 changes: 1 addition & 1 deletion src/polatev0.f90
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ SUBROUTINE POLATEV0(IPOPT,IGDTNUMI,IGDTMPLI,IGDTLENI, &
! LANGUAGE: FORTRAN 90
!
!$$$
USE GDSWZD_MOD
USE GDSWZD_MOD_ip2
!
IMPLICIT NONE
!
Expand Down
2 changes: 1 addition & 1 deletion src/polatev1.f90
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ SUBROUTINE POLATEV1(IPOPT,IGDTNUMI,IGDTMPLI,IGDTLENI, &
!
!$$$
!
USE GDSWZD_MOD
USE GDSWZD_MOD_ip2
!
IMPLICIT NONE
!
Expand Down
2 changes: 1 addition & 1 deletion src/polatev2.f90
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ SUBROUTINE POLATEV2(IPOPT,IGDTNUMI,IGDTMPLI,IGDTLENI, &
!
!$$$
!
USE GDSWZD_MOD
USE GDSWZD_MOD_ip2
!
IMPLICIT NONE
!
Expand Down
2 changes: 1 addition & 1 deletion src/polatev3.f90
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ SUBROUTINE POLATEV3(IPOPT,IGDTNUMI,IGDTMPLI,IGDTLENI, &
!
!$$$
!
USE GDSWZD_MOD
USE GDSWZD_MOD_ip2
!
IMPLICIT NONE
!
Expand Down
2 changes: 1 addition & 1 deletion src/polatev4.f90
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ SUBROUTINE POLATEV4(IPOPT,IGDTNUMI,IGDTMPLI,IGDTLENI, &
!
!$$$
!
USE GDSWZD_MOD
USE GDSWZD_MOD_ip2
!
IMPLICIT NONE
!
Expand Down
2 changes: 1 addition & 1 deletion src/polatev6.f90
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ SUBROUTINE POLATEV6(IPOPT,IGDTNUMI,IGDTMPLI,IGDTLENI, &
!
!$$$
!
USE GDSWZD_MOD
USE GDSWZD_MOD_ip2
!
IMPLICIT NONE
!
Expand Down
4 changes: 4 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$")
set(CMAKE_Fortran_FLAGS "-fdefault-real-8 -fno-range-check -g -fbacktrace -fcheck=bounds")
endif()

if(${CMAKE_Fortran_COMPILER_ID} MATCHES "^(GNU)$" AND ${CMAKE_Fortran_COMPILER_VERSION} VERSION_GREATER_EQUAL 10)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -w -fallow-argument-mismatch -fallow-invalid-boz")
endif()

# Contains common routines used for testing such as reading and interpolating data
add_library(test_library input_data_mod.f90 interp_mod.f90)
target_link_libraries(test_library PUBLIC ip2::ip2_d)
Expand Down

0 comments on commit 89067de

Please sign in to comment.