Skip to content

Commit

Permalink
remove extra commas
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Dec 21, 2021
1 parent 1347767 commit 67ada29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ROSCO/rosco_registry/write_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def write_roscoio(yfile):
file.write(" CHARACTER(128) :: ErrMsg \n")
file.write(" CHARACTER(128) :: n_t_global ! timestep number as a string\n")
file.write("\n")
file.write(" WRITE(n_t_global, '(I0.0)' ), NINT(LocalVar%Time/LocalVar%DT)\n")
file.write(" WRITE(n_t_global, '(I0.0)' ) NINT(LocalVar%Time/LocalVar%DT)\n")
file.write(" InFile = RootName(1:size_avcOUTNAME-5)//TRIM( n_t_global )//'.RO.chkp'\n")
file.write(" OPEN(unit=Un, FILE=TRIM(InFile), STATUS='UNKNOWN', FORM='UNFORMATTED' , ACCESS='STREAM', IOSTAT=ErrStat, ACTION='WRITE' )\n")
file.write("\n")
Expand Down Expand Up @@ -103,7 +103,7 @@ def write_roscoio(yfile):
file.write(" CHARACTER(128) :: ErrMsg \n")
file.write(" CHARACTER(128) :: n_t_global ! timestep number as a string\n")
file.write("\n")
file.write(" WRITE(n_t_global, '(I0.0)' ), NINT(avrSWAP(2)/avrSWAP(3))\n")
file.write(" WRITE(n_t_global, '(I0.0)' ) NINT(avrSWAP(2)/avrSWAP(3))\n")
file.write(" InFile = RootName(1:size_avcOUTNAME-5)//TRIM( n_t_global )//'.RO.chkp'\n")
file.write(" OPEN(unit=Un, FILE=TRIM(InFile), STATUS='UNKNOWN', FORM='UNFORMATTED' , ACCESS='STREAM', IOSTAT=ErrStat, ACTION='READ' )\n")
file.write("\n")
Expand Down
4 changes: 2 additions & 2 deletions ROSCO/src/ROSCO_IO.f90
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SUBROUTINE WriteRestartFile(LocalVar, CntrPar, objInst, RootName, size_avcOUTNAM
CHARACTER(128) :: ErrMsg
CHARACTER(128) :: n_t_global ! timestep number as a string

WRITE(n_t_global, '(I0.0)' ), NINT(LocalVar%Time/LocalVar%DT)
WRITE(n_t_global, '(I0.0)' ) NINT(LocalVar%Time/LocalVar%DT)
InFile = RootName(1:size_avcOUTNAME-5)//TRIM( n_t_global )//'.RO.chkp'
OPEN(unit=Un, FILE=TRIM(InFile), STATUS='UNKNOWN', FORM='UNFORMATTED' , ACCESS='STREAM', IOSTAT=ErrStat, ACTION='WRITE' )

Expand Down Expand Up @@ -196,7 +196,7 @@ SUBROUTINE ReadRestartFile(avrSWAP, LocalVar, CntrPar, objInst, PerfData, RootNa
CHARACTER(128) :: ErrMsg
CHARACTER(128) :: n_t_global ! timestep number as a string

WRITE(n_t_global, '(I0.0)' ), NINT(avrSWAP(2)/avrSWAP(3))
WRITE(n_t_global, '(I0.0)' ) NINT(avrSWAP(2)/avrSWAP(3))
InFile = RootName(1:size_avcOUTNAME-5)//TRIM( n_t_global )//'.RO.chkp'
OPEN(unit=Un, FILE=TRIM(InFile), STATUS='UNKNOWN', FORM='UNFORMATTED' , ACCESS='STREAM', IOSTAT=ErrStat, ACTION='READ' )

Expand Down

0 comments on commit 67ada29

Please sign in to comment.