Skip to content

Commit

Permalink
Remove extra GetNewUnit calls from BeamDyn
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-platt committed Nov 28, 2024
1 parent e0032e6 commit d943ecd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions modules/beamdyn/src/BeamDyn_IO.f90
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,6 @@ SUBROUTINE BD_ReadPrimaryFile(InputFile,InputFileData,OutFileRoot,UnEc,ErrStat,E
CALL SetErrStat( ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName )


CALL GetNewUnit(UnIn,ErrStat2,ErrMsg2)
CALL SetErrStat( ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName )
CALL OpenFInpFile(UnIn,InputFile,ErrStat2,ErrMsg2)
CALL SetErrStat( ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName )
IF (ErrStat >= AbortErrLev) then
Expand Down Expand Up @@ -1048,8 +1046,6 @@ SUBROUTINE BD_ReadBladeFile(BldFile,BladeInputFileData,UnEc,ErrStat,ErrMsg)
ErrStat = ErrID_None
ErrMsg = ""

CALL GetNewUnit(UnIn,ErrStat2,ErrMsg2)
CALL SetErrStat( ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName )
CALL OpenFInpFile (UnIn,BldFile,ErrStat2,ErrMsg2)
CALL SetErrStat( ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName )
if (ErrStat >= AbortErrLev) then
Expand Down Expand Up @@ -1940,7 +1936,6 @@ SUBROUTINE BD_PrintSum( p, x, OtherState, m, InitInp, ErrStat, ErrMsg )

! Open the summary file and give it a heading.

CALL GetNewUnit( UnSu, ErrStat, ErrMsg )
CALL OpenFOutFile ( UnSu, TRIM( InitInp%RootName )//'.sum.yaml', ErrStat, ErrMsg )
IF ( ErrStat >= AbortErrLev ) RETURN

Expand Down
2 changes: 0 additions & 2 deletions modules/beamdyn/src/Driver_Beam_Subs.f90
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ SUBROUTINE BD_ReadDvrFile(DvrInputFile,dt,InitInputData,DvrData,&
ErrMsg = ""
UnEc = -1

CALL GetNewUnit(UnIn,ErrStat2,ErrMsg2); if (Failed()) return;
CALL OpenFInpFile(UnIn,DvrInputFile,ErrStat2,ErrMsg2); if (Failed()) return;


Expand Down Expand Up @@ -261,7 +260,6 @@ SUBROUTINE Dvr_InitializeOutputFile(OutUnit,IntOutput,RootName,ErrStat,ErrMsg)
ErrStat = ErrID_none
ErrMsg = ""

CALL GetNewUnit(OutUnit,ErrStat2,ErrMsg2)
CALL OpenFOutFile ( OutUnit, trim(RootName)//'.out', ErrStat2, ErrMsg2 )
CALL SetErrStat( ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName )
if (ErrStat >= AbortErrLev) return
Expand Down

0 comments on commit d943ecd

Please sign in to comment.