Skip to content

Commit

Permalink
Update t_FunctionalChaos_nd.cxx
Browse files Browse the repository at this point in the history
Test "FunctionalChaosResult-PrintEllipsisThreshold" ResourceMap key.
  • Loading branch information
mbaudin47 committed Apr 30, 2024
1 parent 96fe076 commit 59f3b5a
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/test/t_FunctionalChaos_nd.cxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// -*- C++ -*-
/**
* @brief The test file of MonteCarlo class
* @brief The test file of FunctionalChaosAlgorithm class
*
* Copyright 2005-2024 Airbus-EDF-IMACS-ONERA-Phimeca
*
Expand Down Expand Up @@ -146,6 +146,9 @@ int main(int, char *[])
// 3rd order Total Sobol
Point sob_T3(sob_3);
SymbolicFunction model(inputVariables, formula);

// Default
const UnsignedInteger defaultEllipsisThreshold = ResourceMap::GetAsUnsignedInteger("FunctionalChaosResult-PrintEllipsisThreshold");

// Create the input distribution
Collection<Distribution> marginals(inputDimension);
Expand Down Expand Up @@ -196,6 +199,9 @@ int main(int, char *[])

// Examine the results
FunctionalChaosResult result(algo.getResult());
ResourceMap::SetAsUnsignedInteger("FunctionalChaosResult-PrintEllipsisThreshold", defaultEllipsisThreshold);
fullprint << result.__str__() << std::endl;
ResourceMap::SetAsUnsignedInteger("FunctionalChaosResult-PrintEllipsisThreshold", 20);
fullprint << result.__str__() << std::endl;
fullprint << "//////////////////////////////////////////////////////////////////////" << std::endl;
fullprint << algo.getAdaptiveStrategy() << std::endl;
Expand Down
Loading

0 comments on commit 59f3b5a

Please sign in to comment.