parallelinterface

This commit is contained in:
Joachim Schoeberl 2009-01-25 18:23:46 +00:00
parent 38a9ae19b4
commit 9c15d17ced
7 changed files with 54 additions and 16 deletions

View File

@ -18,9 +18,6 @@
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the `minabc' function. */
#undef HAVE_MINABC
/* Define to 1 if you have the `pow' function. */
#undef HAVE_POW

View File

@ -70,7 +70,6 @@ AC_DISABLE_STATIC
AC_LANG([C++])
AC_PROG_CXX
AC_PROG_LIBTOOL
# AC_PROG_RANLIB
LT_INIT
@ -92,18 +91,11 @@ AC_CHECK_HEADER([limits.h],[OCCFLAGS="$OCCFLAGS -DHAVE_LIMITS_H"])
AC_CHECK_LIB(pthread, pthread_create)
# AC_SEARCH_LIBS(Tcl_Init, [tcl8.5 tcl8.4])
# AC_SEARCH_LIBS(Tk_Init, [tk8.5 tk8.4])
# AC_SEARCH_LIBS(Togl_Init, Toglstub2.0 )
# TEA_TCL_LINK_LIBS
# AC_DEFINE(USE_TCL_STUBS)
# AC_DEFINE(USE_TK_STUBS)
AC_CHECK_FUNCS([pow])
AC_CHECK_FUNCS([floor])
AC_CHECK_HEADERS([limits.h])
AC_CHECK_FUNCS([minabc])
AC_CONFIG_FILES(Makefile libsrc/Makefile libsrc/csg/Makefile

View File

@ -3,7 +3,7 @@ stepgeom.hpp visual.hpp csg.hpp incvis.hpp myadt.hpp opti.hpp \
stepreader.hpp geometry2d.hpp linalg.hpp mydefs.hpp parallel.hpp \
stlgeom.hpp mystdlib.h
include_HEADERS = nginterface.h
include_HEADERS = nginterface.h parallelinterface.hpp
AM_CPPFLAGS =
METASOURCES = AUTO

View File

@ -220,7 +220,7 @@ stepgeom.hpp visual.hpp csg.hpp incvis.hpp myadt.hpp opti.hpp \
stepreader.hpp geometry2d.hpp linalg.hpp mydefs.hpp parallel.hpp \
stlgeom.hpp mystdlib.h
include_HEADERS = nginterface.h
include_HEADERS = nginterface.h parallelinterface.hpp
AM_CPPFLAGS =
METASOURCES = AUTO
all: all-am

View File

@ -0,0 +1,52 @@
#ifndef FILE_PARALLELINTERFACE
#define FILE_PARALLELINTERFACE
#ifdef PARALLEL
#ifdef __cplusplus
extern "C" {
#endif
// this interface is 0-base !!
// // these functions have O(N) complexity
// int NgPar_Glob2Loc_SurfEl ( int globnum ) ;
// int NgPar_Glob2Loc_VolEl ( int globnum ) ;
// int NgPar_Glob2Loc_Segm ( int globnum ) ;
// int NgPar_Glob2Loc_Vert ( int globnum ) ;
int NgPar_GetLoc2Glob_VolEl ( int locnum );
// int NgPar_GetDistantNodeNums ( int nt, int locnum, int * procs, int * distnum);
// number on distant processor
// gibt anzahl an distant pnums zurueck
// * pnums entspricht ARRAY<int[2] >
int NgPar_GetDistantNodeNums ( int nodetype, int locnum, int * pnums );
int NgPar_GetNDistantNodeNums ( int nodetype, int locnum );
int NgPar_GetDistantPNum ( int proc, int locnum ) ;
int NgPar_GetDistantEdgeNum ( int proc, int locnum ) ;
int NgPar_GetDistantFaceNum ( int proc, int locnum ) ;
int NgPar_GetDistantElNum ( int proc, int locnum );
bool NgPar_IsExchangeFace ( int fnr ) ;
bool NgPar_IsExchangeVert ( int vnum );
bool NgPar_IsExchangeEdge ( int ednum );
bool NgPar_IsExchangeElement ( int elnum );
void NgPar_PrintParallelMeshTopology ();
bool NgPar_IsElementInPartition ( int elnum, int dest );
bool NgPar_IsGhostFace ( int facenum );
bool NgPar_IsGhostEdge ( int edgenum );
#ifdef __cplusplus
}
#endif
#endif
#endif

View File

@ -1,4 +1,3 @@
# include_HEADERS = nginterface.h
noinst_HEADERS = writeuser.hpp
AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include -I$(top_srcdir)/libsrc/interface $(TCL_INCLUDES) -DOPENGL

View File

@ -228,8 +228,6 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
# include_HEADERS = nginterface.h
noinst_HEADERS = writeuser.hpp
AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include -I$(top_srcdir)/libsrc/interface $(TCL_INCLUDES) -DOPENGL
METASOURCES = AUTO