--- trunk/bibio/Writefield/writefield.f 2014/09/17 11:55:05 110 +++ trunk/bibio/writefield.f 2014/09/19 17:36:20 115 @@ -2,7 +2,7 @@ use CreateNewField_m, only: CreateNewField, ncid, nbfield, MaxWriteField use GetFieldIndex_m, only: GetFieldIndex - USE netcdf95, ONLY: nf95_put_var + USE netcdf95, ONLY: nf95_put_var, nf95_sync implicit none @@ -39,6 +39,7 @@ call NF95_PUT_VAR(Ncid(Index), Varid = 1, values = Field, & start = (/1, Record(Index)/)) + call nf95_sync(Ncid(Index)) end subroutine WriteField1d @@ -66,6 +67,7 @@ call NF95_PUT_VAR(Ncid(Index), Varid = 1, values = Field, & start = (/1, 1, Record(Index)/)) + call nf95_sync(Ncid(Index)) end subroutine WriteField2d @@ -93,6 +95,7 @@ call NF95_PUT_VAR(Ncid(Index), Varid = 1, values = Field, & start = (/1, 1, 1, Record(Index)/)) + call nf95_sync(Ncid(Index)) end subroutine WriteField3d