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

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

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

revision 1801 by ksteube, Fri Sep 19 01:37:09 2008 UTC revision 1859 by gross, Wed Oct 8 03:03:37 2008 UTC
# Line 1  Line 1 
1    
 /* $Id$ */  
   
2  /*******************************************************  /*******************************************************
3   *  *
4   *           Copyright 2003-2007 by ACceSS MNRF  * Copyright (c) 2003-2008 by University of Queensland
5   *       Copyright 2007 by University of Queensland  * Earth Systems Science Computational Center (ESSCC)
6   *  * http://www.uq.edu.au/esscc
7   *                http://esscc.uq.edu.au  *
8   *        Primary Business: Queensland, Australia  * Primary Business: Queensland, Australia
9   *  Licensed under the Open Software License version 3.0  * Licensed under the Open Software License version 3.0
10   *     http://www.opensource.org/licenses/osl-3.0.php  * http://www.opensource.org/licenses/osl-3.0.php
11   *  *
12   *******************************************************/  *******************************************************/
13    
14    
15  #include "MeshAdapter.h"  #include "MeshAdapter.h"
16  #include "escript/Data.h"  #include "escript/Data.h"
# Line 1827  bool MeshAdapter::operator!=(const Abstr Line 1826  bool MeshAdapter::operator!=(const Abstr
1826     return !(operator==(other));     return !(operator==(other));
1827  }  }
1828    
1829  int MeshAdapter::getSystemMatrixTypeId(const int solver, const int package, const bool symmetry) const  int MeshAdapter::getSystemMatrixTypeId(const int solver, const int preconditioner, const int package, const bool symmetry) const
1830  {  {
1831     int out=Paso_SystemMatrix_getSystemMatrixTypeId(SystemMatrixAdapter::mapOptionToPaso(solver),SystemMatrixAdapter::mapOptionToPaso(package),symmetry?1:0);     int out=Paso_SystemMatrix_getSystemMatrixTypeId(SystemMatrixAdapter::mapOptionToPaso(solver),SystemMatrixAdapter::mapOptionToPaso(preconditioner), SystemMatrixAdapter::mapOptionToPaso(package),symmetry?1:0);
1832       checkPasoError();
1833       return out;
1834    }
1835    int MeshAdapter::getTransportTypeId(const int solver, const int preconditioner, const int package, const bool symmetry) const
1836    {
1837       int out=Paso_FCTransportProblem_getTypeId(SystemMatrixAdapter::mapOptionToPaso(solver),SystemMatrixAdapter::mapOptionToPaso(preconditioner), SystemMatrixAdapter::mapOptionToPaso(package),symmetry?1:0);
1838     checkPasoError();     checkPasoError();
1839     return out;     return out;
1840  }  }
# Line 2129  int* MeshAdapter::borrowListOfTagsInUse( Line 2134  int* MeshAdapter::borrowListOfTagsInUse(
2134  }  }
2135    
2136    
2137    bool MeshAdapter::canTag(int functionSpaceCode) const
2138    {
2139      switch(functionSpaceCode) {
2140       case(Nodes):
2141       case(Elements):
2142       case(ReducedElements):
2143       case(FaceElements):
2144       case(ReducedFaceElements):
2145       case(Points):
2146       case(ContactElementsZero):
2147       case(ReducedContactElementsZero):
2148       case(ContactElementsOne):
2149       case(ReducedContactElementsOne):
2150              return true;
2151       case(ReducedNodes):
2152       case(DegreesOfFreedom):
2153       case(ReducedDegreesOfFreedom):
2154          return false;
2155       default:
2156        return false;
2157      }
2158    }
2159    
2160    
2161  }  // end of namespace  }  // end of namespace

Legend:
Removed from v.1801  
changed lines
  Added in v.1859

  ViewVC Help
Powered by ViewVC 1.1.26