/[escript]/trunk/dudley/src/CPPAdapter/MeshAdapterFactory.cpp
ViewVC logotype

Diff of /trunk/dudley/src/CPPAdapter/MeshAdapterFactory.cpp

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

revision 3891 by caltinay, Fri Oct 21 04:29:33 2011 UTC revision 3892 by jfenwick, Tue Apr 10 08:57:23 2012 UTC
# Line 458  namespace dudley { Line 458  namespace dudley {
458      return temp->getPtr();      return temp->getPtr();
459    }    }
460    
461    Domain_ptr brick(int n0,int n1,int n2,int order,    Domain_ptr brick(double n0, double n1,double n2,int order,
462                     double l0,double l1,double l2,                     double l0,double l1,double l2,
463                     int periodic0,int periodic1,                     int periodic0,int periodic1,
464                     int periodic2,                     int periodic2,
# Line 468  namespace dudley { Line 468  namespace dudley {
468                     int useFullElementOrder,                     int useFullElementOrder,
469                     int optimize)                     int optimize)
470    {    {
471      int numElements[]={n0,n1,n2};      int numElements[]={static_cast<int>(n0),static_cast<int>(n1),static_cast<int>(n2)};
472      double length[]={l0,l1,l2};      double length[]={l0,l1,l2};
473    
474      if (periodic0 || periodic1) // we don't support periodic boundary conditions      if (periodic0 || periodic1) // we don't support periodic boundary conditions
# Line 502  namespace dudley { Line 502  namespace dudley {
502      return temp->getPtr();      return temp->getPtr();
503    }    }
504    
505    Domain_ptr rectangle(int n0,int n1,int order,    Domain_ptr rectangle(double n0, double n1, int order,
506                         double l0, double l1,                         double l0, double l1,
507                         int periodic0,int periodic1,                         int periodic0,int periodic1,
508                         int integrationOrder,                         int integrationOrder,
# Line 511  namespace dudley { Line 511  namespace dudley {
511                         int useFullElementOrder,                         int useFullElementOrder,
512                         int optimize)                         int optimize)
513    {    {
514      int numElements[]={n0,n1};      int numElements[]={static_cast<int>(n0), static_cast<int>(n1)};
515      double length[]={l0,l1};      double length[]={l0,l1};
516    
517      if (periodic0 || periodic1) // we don't support periodic boundary conditions      if (periodic0 || periodic1) // we don't support periodic boundary conditions

Legend:
Removed from v.3891  
changed lines
  Added in v.3892

  ViewVC Help
Powered by ViewVC 1.1.26