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
2222contains
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
0 commit comments