Skip to content

Commit 77407c8

Browse files
committed
Rename extension implementation from bmiheatgeof to bmigeoheatf
1 parent d3a85cd commit 77407c8

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ include(GNUInstallDirs)
1111

1212
set(model_name heatf)
1313
set(bmi_name bmi${model_name})
14-
set(extension_name bmiheatgeof)
14+
set(extension_name bmigeo${model_name})
1515

1616
# Determine the Fortran BMI version.
1717
if(DEFINED ENV{BMIF_VERSION})

bmi_heat/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if(WIN32)
66
add_library(${extension_name} bmi_heat_geo.f90)
77
else()
88
add_library(${bmi_name} SHARED bmi_heat.f90)
9-
add_library(${extension_name} SHARED bmi_heat_geo.f90)
9+
add_library(${extension_name} SHARED bmi_geo_heat.f90)
1010
endif()
1111
target_link_libraries(${bmi_name} ${model_name} ${bmif_lib})
1212
target_link_libraries(${extension_name} ${bmi_name} ${bmigeof_lib})

bmi_heat/bmi_heat_geo.f90 renamed to bmi_heat/bmi_geo_heat.f90

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
! Implement the bmi_geo type and use the bmi_heat type in a new type, bmi_heat_geo
1+
! Implement the bmi_geo type and use the bmi_heat type in a new type, bmi_geo_heat
22

3-
module bmiheatgeof
3+
module bmigeoheatf
44

55
use bmigeof
66
use bmiheatf
77
use bmif_2_0
88
implicit none
99

10-
type, extends (bmi_geo) :: bmi_heat_geo
10+
type, extends (bmi_geo) :: bmi_geo_heat
1111
type (bmi_heat) :: bmi_base
1212
contains
1313
procedure :: initialize => heat_initialize
1414
procedure :: get_grid_coordinate_names => heat_grid_coordinate_names
1515
procedure :: get_grid_coordinate_units => heat_grid_coordinate_units
1616
procedure :: get_grid_coordinate => heat_grid_coordinate
1717
procedure :: get_grid_crs => heat_grid_crs
18-
end type bmi_heat_geo
18+
end type bmi_geo_heat
1919

20-
public bmi_heat_geo
20+
public bmi_geo_heat
2121

2222
contains
2323

2424
function heat_initialize(this, config_file) result (bmi_status)
25-
class (bmi_heat_geo), intent(out) :: this
25+
class (bmi_geo_heat), intent(out) :: this
2626
character (len=*), intent(in) :: config_file
2727
integer :: bmi_status
2828

2929
bmi_status = BMI_SUCCESS
3030
end function heat_initialize
3131

3232
function heat_grid_coordinate_names(this, grid, names) result (bmi_status)
33-
class (bmi_heat_geo), intent(in) :: this
33+
class (bmi_geo_heat), intent(in) :: this
3434
integer, intent(in) :: grid
3535
character (*), pointer, intent(out) :: names(:)
3636
integer :: bmi_status
@@ -42,7 +42,7 @@ function heat_grid_coordinate_names(this, grid, names) result (bmi_status)
4242
end function heat_grid_coordinate_names
4343

4444
function heat_grid_coordinate_units(this, grid, units) result (bmi_status)
45-
class (bmi_heat_geo), intent(in) :: this
45+
class (bmi_geo_heat), intent(in) :: this
4646
integer, intent(in) :: grid
4747
character (*), pointer, intent(out) :: units(:)
4848
integer :: bmi_status
@@ -54,7 +54,7 @@ function heat_grid_coordinate_units(this, grid, units) result (bmi_status)
5454
end function heat_grid_coordinate_units
5555

5656
function heat_grid_coordinate(this, grid, coordinate, values) result (bmi_status)
57-
class (bmi_heat_geo), intent(in) :: this
57+
class (bmi_geo_heat), intent(in) :: this
5858
integer, intent(in) :: grid
5959
character(len=*), intent(in) :: coordinate
6060
double precision, dimension(:), intent(out) :: values
@@ -84,7 +84,7 @@ function heat_grid_coordinate(this, grid, coordinate, values) result (bmi_status
8484
end function heat_grid_coordinate
8585

8686
function heat_grid_crs(this, grid, crs) result (bmi_status)
87-
class (bmi_heat_geo), intent(in) :: this
87+
class (bmi_geo_heat), intent(in) :: this
8888
integer, intent(in) :: grid
8989
character (len=*), intent(out) :: crs
9090
integer :: bmi_status
@@ -93,4 +93,4 @@ function heat_grid_crs(this, grid, crs) result (bmi_status)
9393
bmi_status = BMI_SUCCESS
9494
end function heat_grid_crs
9595

96-
end module bmiheatgeof
96+
end module bmigeoheatf

example/bmi_geospatial_ex.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ program bmi_geospatial_ex
33

44
use bmif_2_0
55
use bmiheatf
6-
use bmiheatgeof
6+
use bmigeoheatf
77
implicit none
88

99
type(bmi_heat) :: h
10-
type(bmi_heat_geo) :: g
10+
type(bmi_geo_heat) :: g
1111
integer :: status, grid_id, grid_rank, i
1212
character (len=BMI_MAX_COMPONENT_NAME), pointer :: component_name
1313
integer, allocatable :: grid_shape(:)
@@ -30,7 +30,7 @@ program bmi_geospatial_ex
3030
status = h%get_grid_shape(grid_id, grid_shape)
3131
write (*,"(a, *(x, i3))") "Grid shape:", grid_shape
3232

33-
g = bmi_heat_geo(h)
33+
g = bmi_geo_heat(h)
3434

3535
allocate(names(grid_rank))
3636
status = g%get_grid_coordinate_names(grid_id, names)

0 commit comments

Comments
 (0)