// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include "ComponentTopology.hxx"
+#include "ProcessorGroup.hxx"
#include "InterpolationUtils.hxx"
namespace ParaMEDMEM
#ifndef __COMPONENTTOPOLOGY_HXX__
#define __COMPONENTTOPOLOGY_HXX__
-#include "ProcessorGroup.hxx"
#include "Topology.hxx"
#include <vector>
namespace ParaMEDMEM
{
+ class ProcessorGroup;
+
class ComponentTopology
{
public:
#include "ICoCoMEDField.hxx"
#include "ICoCoTrioField.hxx"
#include "ProcessorGroup.hxx"
+#include "ComponentTopology.hxx"
#include "ParaMESH.hxx"
#include "ParaFIELD.hxx"
#include "NormalizedUnstructuredMesh.hxx"
delete data_channel;
}
+
+ int ParaFIELD::nbComponents() const
+ {
+ return _component_topology.nbComponents();
+ }
+
/*! This method retrieves the integral of component \a icomp
over the all domain. */
#ifndef __PARAFIELD_HXX__
#define __PARAFIELD_HXX__
-#include "ComponentTopology.hxx"
-#include "ParaMESH.hxx"
-#include "MEDCouplingFieldDouble.hxx"
-#include "MEDCouplingUMesh.hxx"
+#include "RefCountObject.hxx"
namespace ParaMEDMEM
{
- class ParaSUPPORT;
+ class ParaMESH;
class ProcessorGroup;
+ class MEDCouplingFieldDouble;
+ class ComponentTopology;
class ParaFIELD
{
MEDCouplingFieldDouble* getField() const { return _field; }
Topology* getTopology() const { return _topology; }
ParaMESH* getSupport() const { return _support; }
- int nbComponents() const { return _component_topology.nbComponents(); }
+ int nbComponents() const;
double getVolumeIntegral(int icomp) const;
double getL2Norm()const { return -1; }
private:
#include "IntersectionDEC.hxx"
#include "ParaMESH.hxx"
#include "ParaFIELD.hxx"
+#include "ComponentTopology.hxx"
#include "ICoCoMEDField.hxx"
#include "MEDLoader.hxx"
#include "StructuredCoincidentDEC.hxx"
#include "ParaMESH.hxx"
#include "ParaFIELD.hxx"
+#include "ComponentTopology.hxx"
#include "ICoCoMEDField.hxx"
#include "MEDLoader.hxx"
#include "IntersectionDEC.hxx"
#include "ParaMESH.hxx"
#include "ParaFIELD.hxx"
+#include "ComponentTopology.hxx"
#include "ICoCoMEDField.hxx"
#include "MEDLoader.hxx"