2 |
|
|
3 |
use CreateNewField_m, only: CreateNewField, ncid, nbfield, MaxWriteField |
use CreateNewField_m, only: CreateNewField, ncid, nbfield, MaxWriteField |
4 |
use GetFieldIndex_m, only: GetFieldIndex |
use GetFieldIndex_m, only: GetFieldIndex |
5 |
USE netcdf95, ONLY: nf95_put_var |
USE netcdf95, ONLY: nf95_put_var, nf95_sync |
6 |
|
|
7 |
implicit none |
implicit none |
8 |
|
|
39 |
|
|
40 |
call NF95_PUT_VAR(Ncid(Index), Varid = 1, values = Field, & |
call NF95_PUT_VAR(Ncid(Index), Varid = 1, values = Field, & |
41 |
start = (/1, Record(Index)/)) |
start = (/1, Record(Index)/)) |
42 |
|
call nf95_sync(Ncid(Index)) |
43 |
|
|
44 |
end subroutine WriteField1d |
end subroutine WriteField1d |
45 |
|
|
47 |
|
|
48 |
subroutine WriteField2d(name,Field) |
subroutine WriteField2d(name,Field) |
49 |
|
|
|
use netcdf, only: nf90_sync |
|
|
|
|
50 |
character(len=*), intent(in):: name |
character(len=*), intent(in):: name |
51 |
real, intent(in):: Field(:, :) |
real, intent(in):: Field(:, :) |
52 |
|
|
53 |
! Local: |
! Local: |
54 |
integer index, status |
integer index |
55 |
|
|
56 |
!------------------------------------------- |
!------------------------------------------- |
57 |
|
|
67 |
|
|
68 |
call NF95_PUT_VAR(Ncid(Index), Varid = 1, values = Field, & |
call NF95_PUT_VAR(Ncid(Index), Varid = 1, values = Field, & |
69 |
start = (/1, 1, Record(Index)/)) |
start = (/1, 1, Record(Index)/)) |
70 |
status = nf90_sync(Ncid(Index)) |
call nf95_sync(Ncid(Index)) |
71 |
|
|
72 |
end subroutine WriteField2d |
end subroutine WriteField2d |
73 |
|
|
95 |
|
|
96 |
call NF95_PUT_VAR(Ncid(Index), Varid = 1, values = Field, & |
call NF95_PUT_VAR(Ncid(Index), Varid = 1, values = Field, & |
97 |
start = (/1, 1, 1, Record(Index)/)) |
start = (/1, 1, 1, Record(Index)/)) |
98 |
|
call nf95_sync(Ncid(Index)) |
99 |
|
|
100 |
end subroutine WriteField3d |
end subroutine WriteField3d |
101 |
|
|