escript  Revision_4925
dudley/src/CPPAdapter/MeshAdapterFactory.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2014 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16 
17 
18 #if !defined dudley_MeshAdapterFactory_20040526_H
19 #define dudley_MeshAdapterFactory_20040526_H
20 #include "system_dep.h"
21 
22 #include "MeshAdapter.h"
23 
24 #include "escript/AbstractContinuousDomain.h"
25 
26 #include <boost/python/list.hpp>
27 
28 #include <sstream>
29 
30 namespace dudley {
45 /* escript::AbstractContinuousDomain* loadMesh(const std::string& fileName);*/
46  escript::Domain_ptr loadMesh(const std::string& fileName);
58 // escript::AbstractContinuousDomain* readMesh(const std::string& fileName,
59  escript::Domain_ptr readMesh(const std::string& fileName,
60  int integrationOrder=-1,
61  int reducedIntegrationOrder=-1,
62  int optimize=0);
76 // escript::AbstractContinuousDomain* readGmsh(const std::string& fileName,
77  escript::Domain_ptr readGmsh(const std::string& fileName,
78  int numDim,
79  int integrationOrder=-1,
80  int reducedIntegrationOrder=-1,
81  int optimize=0,
82  int useMacroElements=0);
102  escript::Domain_ptr brick(double n0=1,double n1=1,double n2=1,int order=1,
103  double l0=1.0,double l1=1.0,double l2=1.0,
104  int periodic0=0,int periodic1=0,
105  int periodic2=0,
106  int integrationOrder=-1,
107  int reducedIntegrationOrder=-1,
108  int useElementsOnFace=0,
109  int useFullElementOrder=0,
110  int optimize=0);
111 
132  escript::Domain_ptr rectangle(double n0=1,double n1=1,int order=1,
133  double l0=1.0, double l1=1.0,
134  int periodic0=false,int periodic1=false,
135  int integrationOrder=-1,
136  int reducedIntegrationOrder=-1,
137  int useElementsOnFace=0,
138  int useFullElementOrder=0,
139  int optimize=0);
140 
141 // /**
142 // \brief
143 // Merges a list of meshes into one list.
144 // \param meshList Input - The list of meshes.
145 // */
146 // DUDLEY_DLL_API
147 // // escript::AbstractContinuousDomain* meshMerge(const boost::python::list& meshList);
148 // escript::Domain_ptr meshMerge(const boost::python::list& meshList);
149 
150 
151 } // end of namespace
152 #endif
double l2(dim_t n, const double *x, Esys_MPIInfo *mpiinfo)
returns the global L2 norm of x
Definition: PasoUtil.cpp:484
boost::shared_ptr< AbstractDomain > Domain_ptr
Definition: AbstractDomain.h:57
Domain_ptr readMesh(const std::string &fileName, int integrationOrder, int reducedIntegrationOrder, int optimize)
Read a mesh from a file. For MPI parallel runs fan out the mesh to multiple processes.
Definition: dudley/src/CPPAdapter/MeshAdapterFactory.cpp:403
Domain_ptr readGmsh(const std::string &fileName, int numDim, int integrationOrder, int reducedIntegrationOrder, int optimize, int useMacroElements)
Read a gmsh mesh file.
Definition: dudley/src/CPPAdapter/MeshAdapterFactory.cpp:433
Domain_ptr rectangle(double n0, double n1, int order, double l0, double l1, int periodic0, int periodic1, int integrationOrder, int reducedIntegrationOrder, int useElementsOnFace, int useFullElementOrder, int optimize)
Creates a rectangular mesh with n0 x n1 elements over the brick [0,l0] x [0,l1].
Definition: dudley/src/CPPAdapter/MeshAdapterFactory.cpp:509
#define DUDLEY_DLL_API
Definition: dudley/src/CPPAdapter/system_dep.h:44
Domain_ptr loadMesh(const std::string &fileName)
A suite of factory methods for creating various MeshAdapters.
Definition: dudley/src/CPPAdapter/MeshAdapterFactory.cpp:66
Domain_ptr brick(double n0, double n1, double n2, int order, double l0, double l1, double l2, int periodic0, int periodic1, int periodic2, int integrationOrder, int reducedIntegrationOrder, int useElementsOnFace, int useFullElementOrder, int optimize)
Creates a rectangular mesh with n0 x n1 x n2 elements over the brick [0,l0] x [0,l1] x [0...
Definition: dudley/src/CPPAdapter/MeshAdapterFactory.cpp:465