Created
October 16, 2014 04:02
-
-
Save ScottWales/966eab38ef4978cd1a1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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