Back to index

salome-med  6.5.0
Public Member Functions | Private Attributes
Compo2 Class Reference

#include <Compo2.hxx>

Collaboration diagram for Compo2:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Compo2 ()
 ~Compo2 ()
std::string Calcul (const MEDMEM::MESH &M)
const MEDMEM::FAMILY * Calcul2 (const MEDMEM::MESH &M)
void Calcul3 (const MEDMEM::FIELD< double > &S)

Private Attributes

MEDMEM::FIELD< double > * _F

Detailed Description

Definition at line 32 of file Compo2.hxx.


Constructor & Destructor Documentation

Definition at line 35 of file Compo2.cxx.

               : _F(NULL)
{
}

Definition at line 39 of file Compo2.cxx.

{
  if (_F) delete _F;
}

Member Function Documentation

std::string Compo2::Calcul ( const MEDMEM::MESH &  M)

Definition at line 44 of file Compo2.cxx.

{
  const char* LOC = "std::string Compo2::Calcul(MESH &M)";
  BEGIN_OF(LOC);

  MESSAGE("type virtuel : MESH");
  MESSAGE("type reel : " << typeid(M).name());

  std::string name = M.getName();

  name += " recu";

  try {
    std::cerr << M << std::endl;
  }
  catch (...) {
    std::cerr << "erreur Compo2::Calcul" << std::endl;
  }

  END_OF(LOC);
  return name;
}
const FAMILY * Compo2::Calcul2 ( const MEDMEM::MESH &  M)

Definition at line 67 of file Compo2.cxx.

{
  const char* LOC = "const FAMILY * Compo2::Calcul2(const MESH &M)";
  BEGIN_OF(LOC);

  const FAMILY * F = M.getFamily(MED_CELL, 1);
  std::cerr << "ok ici 2" << std::endl;
  try {
    std::cout << F << std::endl;
  }
  catch (...) {
    std::cerr << "erreur Compo2::Calcul2" << std::endl;
  }

  END_OF(LOC);
  return F;
}
void Compo2::Calcul3 ( const MEDMEM::FIELD< double > &  S)

Definition at line 85 of file Compo2.cxx.

{
  const char* LOC = "void Compo2::Calcul3(const FIELD<double> *)";
  BEGIN_OF(LOC);

  const double *v = F.getValue();
  long i, n = F.getSupport()->getNumberOfElements(MED_CELL);
  int j, m = F.getNumberOfComponents();

  for (i=0; i<n; i++) {
    std::cout << i << " : ";
    for (j=0; j<m; j++)
      std::cout << v[j + i*m];
    std::cout << std::endl;
  }
  
  END_OF(LOC);
}

Here is the call graph for this function:


Member Data Documentation

MEDMEM::FIELD<double>* Compo2::_F [private]

Definition at line 35 of file Compo2.hxx.


The documentation for this class was generated from the following files: