mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-24 14:51:49 +00:00
Split type definitions from psb_config
This commit is contained in:
@@ -124,7 +124,7 @@ FINCLUDES=$(FMFLAG)$(LIBDIR) $(FMFLAG). $(FIFLAG).
|
||||
|
||||
objs: $(MODULES) $(OBJS) $(MPFOBJS)
|
||||
/bin/cp -p $(CPUPDFLAG) *$(.mod) $(MODDIR)
|
||||
/bin/cp -p $(CPUPDFLAG) psb_config.h $(INCDIR)
|
||||
/bin/cp -p $(CPUPDFLAG) psb_config.h psb_types.h $(INCDIR)
|
||||
|
||||
lib: objs $(LIBDIR)/$(LIBNAME)
|
||||
|
||||
|
||||
@@ -1,15 +1,6 @@
|
||||
#ifndef PSB_CONFIG_H
|
||||
#define PSB_CONFIG_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <complex>
|
||||
#else
|
||||
#include <math.h>
|
||||
#include <complex.h>
|
||||
#endif
|
||||
|
||||
#define PSB_ERR_ERROR -1
|
||||
#define PSB_ERR_SUCCESS 0
|
||||
|
||||
@@ -35,30 +26,4 @@
|
||||
|
||||
|
||||
|
||||
typedef int32_t psb_m_t;
|
||||
|
||||
#if defined(PSB_IPK4) && defined(PSB_LPK4)
|
||||
typedef int32_t psb_i_t;
|
||||
typedef int32_t psb_l_t;
|
||||
#elif defined(PSB_IPK4) && defined(PSB_LPK8)
|
||||
typedef int32_t psb_i_t;
|
||||
typedef int64_t psb_l_t;
|
||||
#elif defined(PSB_IPK8) && defined(PSB_LPK8)
|
||||
typedef int64_t psb_i_t;
|
||||
typedef int64_t psb_l_t;
|
||||
#else
|
||||
#endif
|
||||
typedef int64_t psb_e_t;
|
||||
|
||||
typedef float psb_s_t;
|
||||
typedef double psb_d_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
typedef std::complex<float> psb_c_t;
|
||||
typedef std::complex<double> psb_z_t;
|
||||
#else
|
||||
typedef float complex psb_c_t;
|
||||
typedef double complex psb_z_t;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#ifndef PSB_FAKEMPI_H
|
||||
#define PSB_FAKEMPI_H
|
||||
#include "psb_config.h"
|
||||
#include "psb_types.h"
|
||||
|
||||
#define MPI_INTEGER 1
|
||||
#define MPI_INTEGER8 2
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
#ifndef PSB_TYPES_H
|
||||
#define PSB_TYPES_H
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <complex>
|
||||
#else
|
||||
#include <math.h>
|
||||
#include <complex.h>
|
||||
#endif
|
||||
typedef int32_t psb_m_t;
|
||||
|
||||
#if defined(PSB_IPK4) && defined(PSB_LPK4)
|
||||
typedef int32_t psb_i_t;
|
||||
typedef int32_t psb_l_t;
|
||||
#elif defined(PSB_IPK4) && defined(PSB_LPK8)
|
||||
typedef int32_t psb_i_t;
|
||||
typedef int64_t psb_l_t;
|
||||
#elif defined(PSB_IPK8) && defined(PSB_LPK8)
|
||||
typedef int64_t psb_i_t;
|
||||
typedef int64_t psb_l_t;
|
||||
#else
|
||||
#endif
|
||||
typedef int64_t psb_e_t;
|
||||
|
||||
typedef float psb_s_t;
|
||||
typedef double psb_d_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
typedef std::complex<float> psb_c_t;
|
||||
typedef std::complex<double> psb_z_t;
|
||||
#else
|
||||
typedef float complex psb_c_t;
|
||||
typedef double complex psb_z_t;
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user