Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion exa-defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
#include <cmath>
#include <stdint.h>
#include <limits.h>

#include <cstddef>
#include <mpi.h>
#include <vector>
#include <fstream>
#include "exa_config.h"

#ifdef _OPENMP
Expand Down Expand Up @@ -223,5 +226,21 @@ struct RefineStats {
emInt cells;
size_t fileSize;
};
struct vertsPartBdry{
emInt ID;
emInt Part;
double coord[3];

};
bool operator==(const vertsPartBdry& a, const vertsPartBdry& b);
bool compX(const vertsPartBdry&a,const vertsPartBdry&b);
bool compY(const vertsPartBdry&a,const vertsPartBdry&b);
bool compZ(const vertsPartBdry&a,const vertsPartBdry&b);
//std::vector<struct vertsPartBdry>findIdenticalVerts(std::vector<struct vertsPartBdry> &x);
std::vector<struct vertsPartBdry>sortBuffer(std::vector<struct vertsPartBdry> &x ); // assigned to MASTER

MPI_Datatype register_mpi_type(vertsPartBdry const&);
void WriteIdenticalVerts(const char fileName[],std::vector<struct vertsPartBdry> &x);
void WriteBuffer(const char fileName[], const std::vector<struct vertsPartBdry>&x);

#endif /* SRC_EXA_DEFS_H_ */