#INCLUDE(CMakeDependentOption)
PROJECT(MEDCoupling C CXX)
+
# Versioning
# ===========
# Project name, upper case
# ==============
INCLUDE(SalomeSetupPlatform)
+# [ABN]: use the below for aggressive code quality check:
+#if( EXISTS "aaaa")
+# add_definitions(-Weverything)
+# add_definitions(-Wno-inconsistent-missing-override)
+# add_definitions(-Wno-c++98-compat -Wno-c++98-compat-pedantic)
+# add_definitions(-Wno-sign-conversion)
+# add_definitions(-Wno-switch-enum)
+#
+# add_definitions(-Wno-documentation-unknown-command) # \image in Doxygen
+# add_definitions(-Wno-gnu-statement-expression) # assert(...)
+#
+# add_definitions(-Wno-reserved-id-macro -Wno-padded -Wno-weak-vtables -Wdouble-promotion -Wno-comma -Wno-unused-parameter)
+# add_definitions(-Wno-unreachable-code-break -Wno-old-style-cast -Wno-deprecated -Wno-double-promotion)
+# add_definitions(-Wno-exit-time-destructors -Wno-global-constructors -Wno-missing-prototypes)
+# add_definitions(-Wno-covered-switch-default -Wno-weak-template-vtables -Wno-undefined-func-template -Wno-used-but-marked-unused)
+# add_definitions(-Wno-unreachable-code-return -Wno-missing-noreturn -Wno-unused-member-function -Wno-header-hygiene)
+# add_definitions(-Wno-ignored-qualifiers) # because of MED-file
+# add_definitions(-Wno-unused-function -Wno-unused-macros)
+# add_definitions(-Wno-missing-field-initializers)
+# add_definitions(-Wno-shadow) # SWIG generates a lot of those ...
+#
+# add_definitions(-Wno-float-equal) # OUCH
+#endif()
+
#
# User options
# ============
IF(MEDCOUPLING_USE_MPI)
FIND_PACKAGE(SalomeMPI REQUIRED)
ADD_DEFINITIONS("-DHAVE_MPI")
+
+salome_accumulate_environment(LD_LIBRARY_PATH "/usr/lib64/mpich/lib")
+
SALOME_ADD_MPI_TO_HDF5()
IF(MEDCOUPLING_PARTITIONER_PARMETIS)
FIND_PACKAGE(SalomeParMetis)
LOG(2, "for seg " << seg << " consistency " << term1 + term2 + term3 );
LOG(2, "term1 :" << term1 << " term2 :" << term2 << " term3: " << term3 );
-
+
const int num_zero = (term1 == 0.0 ? 1 : 0) + (term2 == 0.0 ? 1 : 0) + (term3 == 0.0 ? 1 : 0);
const int num_neg = (term1 < 0.0 ? 1 : 0) + (term2 < 0.0 ? 1 : 0) + (term3 < 0.0 ? 1 : 0);
const int num_pos = (term1 > 0.0 ? 1 : 0) + (term2 > 0.0 ? 1 : 0) + (term3 > 0.0 ? 1 : 0);
-
+
assert( num_zero + num_neg + num_pos == 3 );
-
+
// calculated geometry is inconsistent if we have one of the following cases
// * one term zero and the other two of the same sign
// * two terms zero
using namespace MEDCoupling;
-template class ParaDataArrayTemplate<Int32>;
-template class ParaDataArrayTemplate<Int64>;
-template class ParaDataArrayDiscrete<Int32>;
-template class ParaDataArrayDiscrete<Int64>;
+template class MEDCoupling::ParaDataArrayTemplate<Int32>;
+template class MEDCoupling::ParaDataArrayTemplate<Int64>;
+template class MEDCoupling::ParaDataArrayDiscrete<Int32>;
+template class MEDCoupling::ParaDataArrayDiscrete<Int64>;
ParaDataArrayInt32 *ParaDataArrayInt32::New(DataArrayInt32 *seqDa)
{
// MyMPIAccessDEC->NextTime( nextdeltatime ) ;
}
MyMPIAccessDEC->setTime( timeLoc , nextdeltatime ) ;
- debugStream << "test_AllToAllvTimeDEC" << myrank << "=====TIME " << time << "=====DELTATIME "
+ debugStream << "test_AllToAllvTimeDEC" << myrank << "=====TIME " << timeLoc << "=====DELTATIME "
<< nextdeltatime << "=====MAXTIME " << maxtime << " ======" << endl ;
int * sendbuf = new int[datamsglength*size] ;
// int * sendbuf = (int *) malloc(sizeof(int)*datamsglength*size) ;