Skip to content

Commit 318af67

Browse files
committed
Disable separate expected output for Sundials<6.7.0 as it is not valid on ubunut & make field with static when comparing output with Matlab
1 parent ad305bf commit 318af67

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,12 +454,12 @@ function(add_ePhoto_tests)
454454
set(TEST_NAME ${ARGS_PREFIX}ePhoto_${DRIVER_NAME})
455455
set(SHOW_NAME ${TEST_NAME}_SHOW)
456456
set(CHECK_NAME ${TEST_NAME}_CHECK)
457-
if ((DRIVER_NAME STREQUAL "EPS") AND
458-
(SUNDIALS_VERSION VERSION_LESS "6.7.0"))
459-
set(EXPECTED_OUTPUT ${TEST_DATA_DIR}/ePhotoOutput_${DRIVER_NAME}_SUNDIALS_LT_6p7.txt)
460-
else()
461-
set(EXPECTED_OUTPUT ${TEST_DATA_DIR}/ePhotoOutput_${DRIVER_NAME}.txt)
462-
endif()
457+
# if ((DRIVER_NAME STREQUAL "EPS") AND
458+
# (SUNDIALS_VERSION VERSION_LESS "6.7.0"))
459+
# set(EXPECTED_OUTPUT ${TEST_DATA_DIR}/ePhotoOutput_${DRIVER_NAME}_SUNDIALS_LT_6p7.txt)
460+
# else()
461+
set(EXPECTED_OUTPUT ${TEST_DATA_DIR}/ePhotoOutput_${DRIVER_NAME}.txt)
462+
# endif()
463463
set(ACTUAL_OUTPUT ${ePhoto_TEST_DIR}/output_${DRIVER_NAME}.data)
464464
list(APPEND ePhoto_TESTS ${TEST_NAME})
465465
list(APPEND ePhoto_TESTS_CHECK ${CHECK_NAME})

src/Variables.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,11 @@ std::ostream& Variables::dump(std::ostream& out,
358358
const std::map<std::string, std::string>& key_aliases,
359359
const std::map<MODULE, const ValueSet_t*>& conditions,
360360
const std::vector<std::string>& subset) const {
361+
#ifdef MAKE_EQUIVALENT_TO_MATLAB
362+
std::size_t pad = 35;
363+
#else // MAKE_EQUIVALENT_TO_MATLAB
361364
std::size_t pad = max_field_width_all();
365+
#endif // MAKE_EQUIVALENT_TO_MATLAB
362366
if (!subset.empty()) {
363367
for (typename std::vector<std::string>::const_iterator it = subset.begin();
364368
it != subset.end(); it++) {

0 commit comments

Comments
 (0)