Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GEM.H File Reference
#include "mpi.h"
Include dependency graph for GEM.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GEM_Connectivity
 
class  GEM_DataItem< T >
 
class  GEM_UserData
 
class  GEM_DomainBoundary
 
class  GEM_PartitionBoundary
 
class  GEM_Partition
 

Functions

bool flip_elements (std::vector< unsigned int > &, unsigned int)
 

Function Documentation

bool flip_elements ( std::vector< unsigned int > &  ,
unsigned  int 
)

Definition at line 844 of file GEM.C.

845 {
846  unsigned int nel = conn.size()/es;
847  unsigned int temp;
848  unsigned int el = 0;
849  switch(es){
850  case 2:
851  case 3:
852  case 4:
853  while(el < nel){
854  temp = conn[el];
855  conn[el] = conn[el+1];
856  el = el+1;
857  conn[el] = temp;
858  el = el+1;
859  if(es > 2)
860  el++;
861  if(es > 3)
862  el++;
863  }
864  return(true);
865  break;
866  default:
867  return(false);
868  break;
869  }
870  return(false);
871 }