removed HYPREDEFS, added top level dir to -I in makefile, included HYPRE_config.h in various .c and .h files, restructured some other #includes

This commit is contained in:
dwalker 1999-09-02 18:21:43 +00:00
parent 45ba64290d
commit c24e0773a1
11 changed files with 20 additions and 26 deletions

View File

@ -15,6 +15,8 @@
#ifndef HYPRE_UTILITIES_HEADER #ifndef HYPRE_UTILITIES_HEADER
#define HYPRE_UTILITIES_HEADER #define HYPRE_UTILITIES_HEADER
#include <HYPRE_config.h>
#ifndef HYPRE_SEQUENTIAL #ifndef HYPRE_SEQUENTIAL
#include "mpi.h" #include "mpi.h"
#endif #endif

View File

@ -19,9 +19,10 @@ C_COMPILE_FLAGS=@CFLAGS@
CXX_COMPILE_FLAGS=@CXXFLAGS@ CXX_COMPILE_FLAGS=@CXXFLAGS@
F77_COMPILE_FLAGS=@F77FLAGS@ F77_COMPILE_FLAGS=@F77FLAGS@
CINCLUDES=@INCLUDES@ @MPIINCLUDE@ CINCLUDES=@INCLUDES@ @MPIINCLUDE@
CDEFS = @HYPREDEFS@ @TIMERDEFS@ -DHYPRE_TIMING CDEFS = @TIMERDEFS@ -DHYPRE_TIMING
CFLAGS =\ CFLAGS =\
-I..\
${C_COMPILE_FLAGS}\ ${C_COMPILE_FLAGS}\
${CINCLUDES}\ ${CINCLUDES}\
${CDEFS} ${CDEFS}

View File

@ -16,6 +16,8 @@ INTERNAL_HEADER=utilities.h
cat > $INTERNAL_HEADER <<@ cat > $INTERNAL_HEADER <<@
#include <HYPRE_config.h>
#include "HYPRE_utilities.h" #include "HYPRE_utilities.h"
#ifndef hypre_UTILITIES_HEADER #ifndef hypre_UTILITIES_HEADER

View File

@ -12,9 +12,9 @@
* Memory management utilities * Memory management utilities
* *
*****************************************************************************/ *****************************************************************************/
#include <stdlib.h>
#include "memory.h"
#include <stdio.h> #include <stdio.h>
#include "utilities.h"
#ifdef HYPRE_USE_PTHREADS #ifdef HYPRE_USE_PTHREADS
#include "threading.h" #include "threading.h"

View File

@ -15,9 +15,6 @@
#ifndef hypre_MEMORY_HEADER #ifndef hypre_MEMORY_HEADER
#define hypre_MEMORY_HEADER #define hypre_MEMORY_HEADER
#include <stdlib.h>
#include <stdio.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -12,10 +12,10 @@
* *
*****************************************************************************/ *****************************************************************************/
#ifdef HYPRE_SEQUENTIAL
#include "utilities.h" #include "utilities.h"
#ifdef HYPRE_SEQUENTIAL
int int
MPI_Init( int *argc, MPI_Init( int *argc,
char ***argv) char ***argv)

View File

@ -12,12 +12,11 @@
* *
*****************************************************************************/ *****************************************************************************/
#include "utilities.h"
#ifdef HYPRE_USE_PTHREADS #ifdef HYPRE_USE_PTHREADS
#define HYPRE_USING_THREAD_MPISTUBS #define HYPRE_USING_THREAD_MPISTUBS
#include "utilities.h"
#include <mpi.h>
int int
hypre_thread_MPI_Init( int *argc, hypre_thread_MPI_Init( int *argc,

View File

@ -17,8 +17,6 @@
#ifdef HYPRE_USE_PTHREADS #ifdef HYPRE_USE_PTHREADS
#include "mpi.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -6,14 +6,14 @@
*********************************************************************EHEADER*/ *********************************************************************EHEADER*/
#define HYPRE_THREAD_GLOBALS #define HYPRE_THREAD_GLOBALS
#ifdef HYPRE_USE_PTHREADS
#include <malloc.h> #include <malloc.h>
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <signal.h> #include <signal.h>
#include "mpi.h" #include "utilities.h"
#include "threading.h"
#ifdef HYPRE_USE_PTHREADS
#ifdef HYPRE_USE_UMALLOC #ifdef HYPRE_USE_UMALLOC
#include "umalloc_local.h" #include "umalloc_local.h"

View File

@ -23,8 +23,7 @@
#define MAX_QUEUE 256 #define MAX_QUEUE 256
#endif #endif
#include<pthread.h> #include <pthread.h>
#include "utilities.h"
/* hypre_work_proc_t typedef'd to be a pointer to a function with a void* /* hypre_work_proc_t typedef'd to be a pointer to a function with a void*
argument and a void return type */ argument and a void return type */

View File

@ -1,4 +1,6 @@
#include <HYPRE_config.h>
#include "HYPRE_utilities.h" #include "HYPRE_utilities.h"
#ifndef hypre_UTILITIES_HEADER #ifndef hypre_UTILITIES_HEADER
@ -221,9 +223,6 @@ int MPI_Type_commit P((MPI_Datatype *datatype ));
#ifndef hypre_MEMORY_HEADER #ifndef hypre_MEMORY_HEADER
#define hypre_MEMORY_HEADER #define hypre_MEMORY_HEADER
#include <stdlib.h>
#include <stdio.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
@ -359,8 +358,6 @@ double hypre_Rand P((void ));
#ifdef HYPRE_USE_PTHREADS #ifdef HYPRE_USE_PTHREADS
#include "mpi.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
@ -463,8 +460,7 @@ int hypre_thread_MPI_Type_commit P((MPI_Datatype *datatype ));
#define MAX_QUEUE 256 #define MAX_QUEUE 256
#endif #endif
#include<pthread.h> #include <pthread.h>
#include "utilities.h"
/* hypre_work_proc_t typedef'd to be a pointer to a function with a void* /* hypre_work_proc_t typedef'd to be a pointer to a function with a void*
argument and a void return type */ argument and a void return type */