-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBOVFileModule.f90
71 lines (67 loc) · 2.06 KB
/
BOVFileModule.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
! ____ _ __ ____ __ ____
! / __/___(_) / ___ ____/ __ \__ _____ ___ / /_ / _/__ ____
! _\ \/ __/ / _ \/ -_) __/ /_/ / // / -_|_-</ __/ _/ // _ \/ __/
! /___/\__/_/_.__/\__/_/ \___\_\_,_/\__/___/\__/ /___/_//_/\__(_)
!
!
! Copyright 2010 SciberQuest Inc.
!
! No permission is granted to reproduce this software.
!
! This is experimental software and is provided ‘‘as is’’, with no
! warranties of any kind whatsoever, no support, no promise of updates,
! or printed documentation.
!==============================================================================
module BOVFileModule
! !============================================================================
! type BOVFile
! character(len=*) FileName
! integer UnitNo
! end type
contains
! !----------------------------------------------------------------------------
! function NewBOVFile()
! implicit none
! type(BOVFile), pointer :: fh
! integer iErr
!
! allocate(fh,stat=iErr)
! if (iErr.ne.0) then
! write(0,*)"Error: Failed to allocate BOVFile."
! stop
! end if
!
! fh%FileName="/dev/null"
! fh%UnitNo=-1
!
! end function
! !----------------------------------------------------------------------------
! subroutine WriteBOVFile(fileName, nX, iErr)
! use UnitManagerModule
!
! implicit none
! character(len=*) fileName
! integer nX(3)
! integer iErr
! integer unitNo
! type(UnitManager),pointer :: unitMan
!
!
! unitMan => NewUnitManager()
! unitNo=UnitManagerGetUnit(unitMan,iErr)
! call DeleteUnitManager(unitMan)
! if (iErr.ne.0) return
!
! open(unit=unitNo,file=fileName,status="replace",iostat=iErr)
! if (iErr.ne.0) then
! write(0,*)"Error: Failed to create the BOV file at ",trim(fileName),"."
! return
! end if
!
! write(unitNo,'(A)')"# gda data file header"
! write(unitNo,'(3(A,I5))')"nx=",nX(1)," ny=",nX(2)," nz=",nX(3)
! write(unitNo,'(A)')""
! close(unit=unitNo)
!
! end subroutine
end module