/[escript]/trunk/finley/src/CPPAdapter/MeshAdapter.h
ViewVC logotype

Diff of /trunk/finley/src/CPPAdapter/MeshAdapter.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2895 by caltinay, Fri Jan 29 04:58:16 2010 UTC revision 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC
# Line 14  Line 14 
14    
15  #if !defined finley_MeshAdapter_20040526_H  #if !defined finley_MeshAdapter_20040526_H
16  #define finley_MeshAdapter_20040526_H  #define finley_MeshAdapter_20040526_H
17  #include "finley/system_dep.h"  #include "system_dep.h"
18    
19  extern "C" {  extern "C" {
20  #include "finley/Mesh.h"  #include "finley/Mesh.h"
21  #include "finley/Finley.h"  #include "finley/Finley.h"
22  #include "finley/Assemble.h"  #include "finley/Assemble.h"
23  #include "paso/SystemMatrix.h"  #include "paso/SystemMatrix.h"
24  #include "paso/SolverFCT.h"  #include "paso/Transport.h"
25  #include "paso/Paso_MPI.h"  #include "esysUtils/Esys_MPI.h"
26  }  }
27    
28  #include "FinleyError.h"  #include "FinleyError.h"
# Line 151  class MeshAdapter : public escript::Abst Line 151  class MeshAdapter : public escript::Abst
151    virtual bool onMasterProcessor() const;    virtual bool onMasterProcessor() const;
152    
153    FINLEY_DLL_API    FINLEY_DLL_API
154  #ifdef PASO_MPI  #ifdef ESYS_MPI
155    MPI_Comm    MPI_Comm
156  #else  #else
157    unsigned int    unsigned int
# Line 160  class MeshAdapter : public escript::Abst Line 160  class MeshAdapter : public escript::Abst
160    
161    /**    /**
162       \brief       \brief
      return this as an AbstractContinuousDomain.  
   */  
   inline const AbstractContinuousDomain& asAbstractContinuousDomain() const  
   {  
      return *(static_cast<const AbstractContinuousDomain*>(this));  
   }  
   
   /**  
      \brief  
      return this as an AbstractDomain.  
   */  
   inline const AbstractDomain& asAbstractDomain() const  
   {  
      return *(static_cast<const AbstractDomain*>(this));  
   }  
   
   /**  
      \brief  
163       Write the current mesh to a file with the given name.       Write the current mesh to a file with the given name.
164       \param fileName Input - The name of the file to write to.       \param fileName Input - The name of the file to write to.
165    */    */
# Line 605  class MeshAdapter : public escript::Abst Line 587  class MeshAdapter : public escript::Abst
587      creates a SystemMatrixAdapter stiffness matrix and initializes it with zeros:      creates a SystemMatrixAdapter stiffness matrix and initializes it with zeros:
588    */    */
589    FINLEY_DLL_API    FINLEY_DLL_API
590    SystemMatrixAdapter newSystemMatrix(    escript::ASM_ptr newSystemMatrix(
591                        const int row_blocksize,                        const int row_blocksize,
592                        const escript::FunctionSpace& row_functionspace,                        const escript::FunctionSpace& row_functionspace,
593                        const int column_blocksize,                        const int column_blocksize,
# Line 618  class MeshAdapter : public escript::Abst Line 600  class MeshAdapter : public escript::Abst
600    */    */
601    
602    FINLEY_DLL_API    FINLEY_DLL_API
603    TransportProblemAdapter newTransportProblem(    escript::ATP_ptr newTransportProblem(
604                        const double theta,                        const bool useBackwardEuler,
605                        const int blocksize,                        const int blocksize,
606                        const escript::FunctionSpace& functionspace,                        const escript::FunctionSpace& functionspace,
607                        const int type) const;                        const int type) const;
# Line 684  class MeshAdapter : public escript::Abst Line 666  class MeshAdapter : public escript::Abst
666    virtual    virtual
667    int getApproximationOrder(const int functionSpaceCode) const;    int getApproximationOrder(const int functionSpaceCode) const;
668    
669      FINLEY_DLL_API
670      bool supportsContactElements() const;
671    
672    
673   protected:   protected:
674    
# Line 700  class MeshAdapter : public escript::Abst Line 685  class MeshAdapter : public escript::Abst
685    
686  };  };
687    
688    // Do not use this class. It is a convenience wrapper for the dataexporter.
689    class FINLEY_DLL_API ReferenceElementSetWrapper {
690     public:
691      ReferenceElementSetWrapper(Finley_ElementTypeId id, index_t order,
692                                 index_t reducedOrder);
693      ~ReferenceElementSetWrapper();
694    
695      Finley_ReferenceElementSet* getElementSet() const { return m_refSet; }
696    
697     private:
698      Finley_ReferenceElementSet* m_refSet;
699    };
700    
701    
702  } // end of namespace  } // end of namespace
703    
704  #endif  #endif

Legend:
Removed from v.2895  
changed lines
  Added in v.3259

  ViewVC Help
Powered by ViewVC 1.1.26