Skip to content

Instantly share code, notes, and snippets.

@ScottWales
Created October 16, 2014 04:02
Show Gist options
  • Save ScottWales/966eab38ef4978cd1a1d to your computer and use it in GitHub Desktop.
Save ScottWales/966eab38ef4978cd1a1d to your computer and use it in GitHub Desktop.
module netcdf
private
public type netcdf_file
contains
procedure open
procedure close
! ...
end type
contains
subroutine ncdf_open(this, filename, mode)
class(netcdf_file), intent(inout) :: this
character(len=*) :: filename, mode
! ...
end subroutine
end module
program test
use netcdf
type(netcdf_file) :: foo
call foo%open()
end program
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment