From: eap Date: Wed, 16 Oct 2013 13:44:15 +0000 (+0000) Subject: 0022341: [CEA 958] sauv2med: different nb of gauss points in components / note 16307 X-Git-Tag: V7_3_1b1~106 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cbcf3e5ccb319e42be0ae7fbc98ccd1340570b94;p=tools%2Fmedcoupling.git 0022341: [CEA 958] sauv2med: different nb of gauss points in components / note 16307 List fields and their components in case of splitting the field. --- diff --git a/src/MEDLoader/SauvMedConvertor.cxx b/src/MEDLoader/SauvMedConvertor.cxx index 9d1e08eb4..059d2f6d4 100644 --- a/src/MEDLoader/SauvMedConvertor.cxx +++ b/src/MEDLoader/SauvMedConvertor.cxx @@ -3290,7 +3290,7 @@ void IntermediateMED::setFields( SauvUtilities::DoubleField* fld, const bool uniteSubs = fld->hasCommonSupport() && sameNbGauss; if ( !uniteSubs ) cout << "Castem field #" << castemID << " <" << fld->_name - << "> is incompatible with MED format, so we split it into several fields" << endl; + << "> is incompatible with MED format, so we split it into several fields:" << endl; for ( size_t iSub = 0; iSub < fld->_sub.size(); ) { @@ -3315,6 +3315,11 @@ void IntermediateMED::setFields( SauvUtilities::DoubleField* fld, { fld->setValues( valPtr, iSub ); setTS( fld, values, medFields, mesh, iSub++ ); + + cout << fld->_name << " with compoments"; + for ( size_t i = 0; i < (size_t)fld->_sub[iSub-1].nbComponents(); ++i ) + cout << " " << fld->_sub[iSub-1]._comp_names[ i ]; + cout << endl; } } }