|
1 | 1 | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
|
2 | 2 | //-----------------------------------------------------------------------------
|
3 |
| -// Copyright 2000-2023 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) |
| 3 | +// Copyright 2000-2025 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) |
4 | 4 | // See the top-level COPYRIGHT file for details.
|
5 | 5 | // SPDX-License-Identifier: Apache-2.0
|
6 | 6 | //-----------------------------------------------------------------------------
|
7 | 7 | /*---------------------------------------------------------------------------*/
|
8 |
| -/* CaseOptionsTesterModule.cc (C) 2000-2023 */ |
| 8 | +/* CaseOptionsTesterModule.cc (C) 2000-2025 */ |
9 | 9 | /* */
|
10 | 10 | /* Module de test des options du jeu de données. */
|
11 | 11 | /*---------------------------------------------------------------------------*/
|
@@ -484,7 +484,8 @@ init()
|
484 | 484 | info() << " SimpleInteger=" << options()->simpleInteger.name();
|
485 | 485 | info() << " SimpleBool= " << options()->simpleBool;
|
486 | 486 | info() << " SimpleString= " << options()->simpleString;
|
487 |
| - info() << " InfinityReal = " << options()->infinityReal(); |
| 487 | + info() << " InfinityReal= " << options()->infinityReal(); |
| 488 | + info() << " NaNReal= " << options()->nanReal(); |
488 | 489 | info() << " SimpleEnumWithFunction = " << options()->simpleEnumFunction.name();
|
489 | 490 | info() << " Complex1/SimpleReal-2 = " << options()->complex1.simpleReal2;
|
490 | 491 | info() << " Complex1/SimpleReal3-2 = " << options()->complex1.simpleReal32;
|
@@ -523,6 +524,11 @@ init()
|
523 | 524 | UniqueArray<Real> v0 = { 5.2, 2.3 };
|
524 | 525 | vc.areEqual(options()->complex1.getSimpleReal2Multi(),v0.constView(),"SimpleReal2Multi");
|
525 | 526 | }
|
| 527 | + { |
| 528 | + vc.areEqual(options()->infinityReal(),std::numeric_limits<Real>::infinity(),"RealInfinity"); |
| 529 | + if (!std::isnan(options()->nanReal())) |
| 530 | + ARCANE_FATAL("Value is not 'NaN' : '{0}'",options()->nanReal()); |
| 531 | + } |
526 | 532 | if (options()->testId()==4){
|
527 | 533 | vc.areEqual(options()->simpleRealWithDefault(),3.0,"setDefaultValue() for real");
|
528 | 534 | vc.areEqual(options()->simpleIntegerWithDefault(),99,"setDefaultValue() for integer");
|
|
0 commit comments