From 9ae53dec4ab906ff04593330fbe7f33552534ab3 Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 27 Jan 2015 10:45:03 +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 9cc1ccbc..d20b204f 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