Skip to content

Commit f662bb4

Browse files
authored
Merge pull request #2821 from andrew-platt/b/SD_MaxOutputs
bugfix: SD maximum number of output channels was incorrectly set
2 parents 407e7b4 + bb2ab49 commit f662bb4

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

modules/subdyn/src/SD_FEM.f90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ MODULE SD_FEM
2424

2525

2626
INTEGER(IntKi), PARAMETER :: MaxMemJnt = 20 ! Maximum number of members at one joint
27-
INTEGER(IntKi), PARAMETER :: MaxOutChs = 2000 ! Max number of Output Channels to be read in
2827
INTEGER(IntKi), PARAMETER :: nDOFL_TP = 6 !TODO rename me ! 6 degrees of freedom (length of u subarray [UTP])
2928

3029
! values of these parameters are ordered by their place in SubDyn input file:

modules/subdyn/src/SubDyn.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Module SubDyn
2525

2626
USE NWTC_Library
2727
USE SubDyn_Types
28+
USE SubDyn_Output_Params, only: MaxOutPts
2829
USE SubDyn_Output
2930
USE SubDyn_Tests
3031
USE SD_FEM
@@ -1511,7 +1512,7 @@ SUBROUTINE SD_Input(SDInputFile, Init, p, ErrStat,ErrMsg)
15111512
! OutList - list of requested parameters to output to a file
15121513
CALL ReadCom( UnIn, SDInputFile, 'SSOutList',ErrStat2, ErrMsg2, UnEc ); if(Failed()) return
15131514

1514-
ALLOCATE(Init%SSOutList(MaxOutChs), STAT=ErrStat2)
1515+
ALLOCATE(Init%SSOutList(MaxOutPts + p%OutAllInt*p%OutAllDims), STAT=ErrStat2)
15151516
If (Check( ErrStat2 /= ErrID_None ,'Error allocating SSOutList arrays')) return
15161517
CALL ReadOutputList ( UnIn, SDInputFile, Init%SSOutList, p%NumOuts, 'SSOutList', 'List of outputs requested', ErrStat2, ErrMsg2, UnEc ); if(Failed()) return
15171518
CALL CleanUp()

modules/subdyn/src/SubDyn_Output.f90

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,10 @@ MODULE SubDyn_Output
2222
USE SubDyn_Types
2323
USE SD_FEM
2424
USE SubDyn_Output_Params, only: MNfmKe, MNfmMe, MNTDss, MNRDe, MNTRAe, IntfSS, IntfTRss, IntfTRAss, ReactSS, OutStrLenM1
25-
USE SubDyn_Output_Params, only: ParamIndxAry, ParamUnitsAry, ValidParamAry, SSqm01, SSqmd01, SSqmdd01
25+
USE SubDyn_Output_Params, only: ParamIndxAry, ParamUnitsAry, ValidParamAry, SSqm01, SSqmd01, SSqmdd01, MaxOutPts
2626

2727
IMPLICIT NONE
2828

29-
! The maximum number of output channels which can be output by the code.
30-
INTEGER(IntKi),PUBLIC, PARAMETER :: MaxOutPts = 21705
31-
3229
PRIVATE
3330
! ..... Public Subroutines ...................................................................................................
3431
PUBLIC :: SDOut_CloseSum

modules/subdyn/src/SubDyn_Output_Params.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21757,7 +21757,7 @@ module SubDyn_Output_Params
2175721757

2175821758

2175921759
! The maximum number of output channels which can be output by the code.
21760-
!INTEGER(IntKi), PARAMETER :: MaxOutPts = 21705
21760+
INTEGER(IntKi), PARAMETER :: MaxOutPts = 21705
2176121761

2176221762

2176321763
INTEGER(IntKi), PARAMETER ::MNfmKe(6,9,99) = reshape((/ &

0 commit comments

Comments
 (0)