]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
0022341: [CEA 958] sauv2med: different nb of gauss points in components / note 16307
authoreap <eap@opencascade.com>
Wed, 16 Oct 2013 13:44:15 +0000 (13:44 +0000)
committereap <eap@opencascade.com>
Wed, 16 Oct 2013 13:44:15 +0000 (13:44 +0000)
List fields and their components in case of splitting the field.

src/MEDLoader/SauvMedConvertor.cxx

index 9d1e08eb423b20582d4383fea79af006a0775001..059d2f6d43b44667e8efc6dc16cc93a03414429b 100644 (file)
@@ -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;
         }
     }
 }