Skip to content

Commit

Permalink
Start writing example main program
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Feb 2, 2024
1 parent 7d17756 commit 914a405
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ make_example(get_value_ex)
make_example(set_value_ex)
make_example(conflicting_instances_ex)
make_example(change_diffusivity_ex)
make_example(bmi_geospatial_ex)
12 changes: 11 additions & 1 deletion example/bmi_geospatial_ex.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
! An example of using a BMI extension
program bmi_geospatial_ex

use bmif_2_0
use bmiheatf
use bmiheatgeof
implicit none


type(bmi_heat) :: h
integer :: status
character (len=BMI_MAX_COMPONENT_NAME), pointer :: name

status = h%get_component_name(name)
write (*,"(a, a30)") "Component name: ", name

end program bmi_geospatial_ex

0 comments on commit 914a405

Please sign in to comment.