mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 13:30:34 +05:00
needed for curved elements in parallel
This commit is contained in:
parent
150c7c1f10
commit
b90dbcfbe5
@ -35,6 +35,19 @@ namespace netgen
|
||||
inline MPI_Datatype MyGetMPIType<double> ( )
|
||||
{ return MPI_DOUBLE; }
|
||||
|
||||
|
||||
template <int S> class Vec;
|
||||
template <>
|
||||
inline MPI_Datatype MyGetMPIType<Vec<3> > ()
|
||||
{
|
||||
static MPI_Datatype MPI_T = 0;
|
||||
if (!MPI_T)
|
||||
{
|
||||
MPI_Type_contiguous ( 3, MPI_DOUBLE, &MPI_T);
|
||||
MPI_Type_commit ( &MPI_T );
|
||||
}
|
||||
return MPI_T;
|
||||
};
|
||||
|
||||
|
||||
inline void MyMPI_Send (int i, int dest, int tag)
|
||||
|
Loading…
Reference in New Issue
Block a user