/[escript]/trunk-mpi-branch/finley/src/CPPAdapter/finleycpp.cpp
ViewVC logotype

Diff of /trunk-mpi-branch/finley/src/CPPAdapter/finleycpp.cpp

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

revision 1225 by gross, Fri Aug 3 02:40:39 2007 UTC revision 1226 by gross, Fri Aug 3 08:00:07 2007 UTC
# Line 90  BOOST_PYTHON_MODULE(finleycpp) Line 90  BOOST_PYTHON_MODULE(finleycpp)
90    // return pointers.    // return pointers.
91    
92    def("ReadMesh",finley::readMesh,    def("ReadMesh",finley::readMesh,
93        (arg("fileName")="file.fly",arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,  arg("optimizeLabeling")=true),        (arg("fileName")="file.fly",arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,  arg("optimize")=true),
94        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
95    
96    def("ReadGmsh",finley::readGmsh,    def("ReadGmsh",finley::readGmsh,
97        (arg("fileName")="file.msh",arg("numDim"), arg("integrationOrder")=-1, arg("reducedIntegrationOrder")=-1, arg("optimizeLabeling")=true),        (arg("fileName")="file.msh",arg("numDim"), arg("integrationOrder")=-1, arg("reducedIntegrationOrder")=-1, arg("optimize")=true),
98        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
99    
100    def ("Brick",finley::brick,    def ("Brick",finley::brick,
# Line 104  BOOST_PYTHON_MODULE(finleycpp) Line 104  BOOST_PYTHON_MODULE(finleycpp)
104        arg("periodic0")=false,arg("periodic1")=false,arg("periodic2")=false,        arg("periodic0")=false,arg("periodic1")=false,arg("periodic2")=false,
105        arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,        arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,
106        arg("useElementsOnFace")=false,        arg("useElementsOnFace")=false,
107        arg("useFullElementOrder")=false),        arg("useFullElementOrder")=false,
108          arg("optimize")=false),
109        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
110    
111    def ("Rectangle",finley::rectangle,    def ("Rectangle",finley::rectangle,
# Line 113  BOOST_PYTHON_MODULE(finleycpp) Line 114  BOOST_PYTHON_MODULE(finleycpp)
114        arg("periodic0")=false,arg("periodic1")=false,        arg("periodic0")=false,arg("periodic1")=false,
115        arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,        arg("integrationOrder")=-1,  arg("reducedIntegrationOrder")=-1,
116        arg("useElementsOnFace")=false,        arg("useElementsOnFace")=false,
117        arg("useFullElementOrder")=false),        arg("useFullElementOrder")=false,
118          arg("optimize")=false),
119        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
120    
121    def("Merge",finley::meshMerge,    def("Merge",finley::meshMerge,
# Line 122  BOOST_PYTHON_MODULE(finleycpp) Line 124  BOOST_PYTHON_MODULE(finleycpp)
124    def("GlueFaces",finley::glueFaces,    def("GlueFaces",finley::glueFaces,
125        (arg("safetyFactor")=0.2,        (arg("safetyFactor")=0.2,
126        arg("tolerance")=1.e-8,        arg("tolerance")=1.e-8,
127        arg("optimizeLabeling")=true),        arg("optimize")=true),
128        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
129    
130    def("JoinFaces",finley::joinFaces,    def("JoinFaces",finley::joinFaces,
131        (arg("safetyFactor")=0.2,        (arg("safetyFactor")=0.2,
132        arg("tolerance")=1.e-8,        arg("tolerance")=1.e-8,
133        arg("optimizeLabeling")=true),        arg("optimize")=true),
134        return_value_policy<manage_new_object>());        return_value_policy<manage_new_object>());
135    
136    register_exception_translator<finley::FinleyAdapterException>(&(esysUtils::esysExceptionTranslator));    register_exception_translator<finley::FinleyAdapterException>(&(esysUtils::esysExceptionTranslator));

Legend:
Removed from v.1225  
changed lines
  Added in v.1226

  ViewVC Help
Powered by ViewVC 1.1.26