From d3c40298db800191f85d8b9047de845cf0e4e42b Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 27 Jan 2015 10:49:23 +0000 Subject: [PATCH] viewFactorsGen/shootRays: Allow the specification of maxDynListLength in viewFactorsDict Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1501 --- .../preProcessing/viewFactorsGen/shootRays.H | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/applications/utilities/preProcessing/viewFactorsGen/shootRays.H b/applications/utilities/preProcessing/viewFactorsGen/shootRays.H index 9cc1ccbcd3..d20b204f03 100644 --- a/applications/utilities/preProcessing/viewFactorsGen/shootRays.H +++ b/applications/utilities/preProcessing/viewFactorsGen/shootRays.H @@ -1,8 +1,11 @@ // All rays expressed as start face (local) index end end face (global) // Pre-size by assuming a certain percentage is visible. -// Maximum lenght for dynamicList -const label maxDynListLength = 100000; +// Maximum length for dynamicList +const label maxDynListLength +( + viewFactorDict.lookupOrDefault