IF(MEDCOUPLING_ENABLE_PYTHON)
ADD_SUBDIRECTORY(MEDCoupling_Swig)
- ADD_SUBDIRECTORY(PyWrapping)
-
+
find_package(SalomeBasicIterativeStatistics)
if( BASICITERATIVESTATISTICS_FOUND )
- add_subdirectory(Stat)
+ add_subdirectory(Stat)
endif( BASICITERATIVESTATISTICS_FOUND )
+
+ ADD_SUBDIRECTORY(PyWrapping)
+
ENDIF(MEDCOUPLING_ENABLE_PYTHON)
IF(NOT MEDCOUPLING_MICROMED)
LIST(APPEND medcoupling_LIB_dependancies paramedmem)
ENDIF(MEDCOUPLING_USE_MPI)
+if(BASICITERATIVESTATISTICS_FOUND)
+ LIST(APPEND SWIG_MODULE_medcoupling_EXTRA_FLAGS -DWITH_ITERATIVE_STATISTICS)
+endif(BASICITERATIVESTATISTICS_FOUND)
+
IF(${CMAKE_VERSION} VERSION_LESS "3.8.0")
SWIG_ADD_MODULE(medcoupling python medcoupling.i)
ELSE()
static const char RENUM_EXT[]="Renumberer";
static const char PART_EXT[]="Partitioner";
static const char PAR_INTERPOL_EXT[]="Parallel interpolator (SPMD paradigm)";
+ static const char IT_STATS_EXT[] = "Iterative statistics";
- static const char *EXTENSIONS[]={SEQ_INTERPOL_EXT,MEDFILEIO_EXT,RENUM_EXT,PART_EXT,PAR_INTERPOL_EXT};
+ static const char *EXTENSIONS[]={SEQ_INTERPOL_EXT,MEDFILEIO_EXT,RENUM_EXT,PART_EXT,PAR_INTERPOL_EXT,IT_STATS_EXT};
static const int NB_OF_EXTENSIONS=sizeof(EXTENSIONS)/sizeof(const char *);
%}
#endif
#ifdef WITH_PARALLEL_INTERPOLATOR
ret.push_back(std::string(PAR_INTERPOL_EXT));
+#endif
+#ifdef WITH_ITERATIVE_STATISTICS
+ ret.push_back(std::string(IT_STATS_EXT));
#endif
return ret;
}
SubExtension(MEDPartitioner.AllAlgorithms(),MEDPartitioner.AvailableAlgorithms(),pad,tab, sts)
pass
pass
-
- try:
- import iterative_stats
- isOK = 1
- except ImportError:
- isOk = 0
- sts.append(f"Iterative statistics {tab[isOK].rjust(3):.>{sz-21}}")
-
return "\n".join(sts)
def ShowAdvancedExtensions(sz=60):