Small changes to enable compulition on Windows with Visual C++.

This commit is contained in:
kolev1 2009-11-17 22:27:43 +00:00
parent 884470b1ce
commit 06916c815c
6 changed files with 13 additions and 8 deletions

View File

@ -23,11 +23,13 @@ double SuperLU_timer_() {
#else
#ifndef NO_TIMER
#include <sys/types.h>
#include <sys/times.h>
#include <time.h>
#include <sys/types.h>
#ifndef WIN32
#include <sys/times.h>
#include <sys/time.h>
#endif
#endif
#ifndef CLK_TCK
#define CLK_TCK 60

View File

@ -24,8 +24,10 @@
#include "shellSort_dh.h"
#ifndef WIN32
/* for debugging only! */
#include <unistd.h>
#endif
static void init_seq_private(SubdomainGraph_dh s, int blocks, bool bj, void *A);
static void init_mpi_private(SubdomainGraph_dh s, int blocks, bool bj, void *A);

View File

@ -53,7 +53,7 @@ int hypre_F90_NAME_LAPACK(dgels, DGELS)(char *, int *, int *, int *, double *, i
#endif
#ifdef WIN32
static void bzero(char *a, int n) {int i: for (i=0; i<n; i++) {a[i]=0;}}
static void bzero(char *a, int n) {int i; for (i=0; i<n; i++) {a[i]=0;}}
#endif

View File

@ -18,6 +18,11 @@
*====================*/
#include <headers.h>
/* TK: a hack to make this compile on Windows */
#ifdef WIN32
#define drand48 rand
#endif
#define RelaxScheme1 3 /* cr type */
#define fptOmegaJac 1 /* 1 is f pt weighted jacobi */
#define omega1 1.0 /* weight */

View File

@ -23,10 +23,6 @@
#include "HYPRE_config.h"
#ifdef WIN32
#include "mkl.h"
#endif
#if defined(F77_FUNC_)
/* F77_FUNC_ macro assumes underscores exist in name */
# define hypre_NAME_C_CALLING_FORT(name,NAME) F77_FUNC_(name,NAME)

View File

@ -23,8 +23,8 @@
*/
#include <time.h>
#include <unistd.h>
#ifndef WIN32
#include <unistd.h>
#include <sys/times.h>
#endif
#ifdef TIMER_USE_MPI