mirror of
https://github.com/sfilippone/amg4psblas.git
synced 2026-10-16 19:02:10 +00:00
Changes for SUN compilers.
This commit is contained in:
@@ -4,7 +4,8 @@ include $(PSBLASDIR)/Make.inc
|
||||
|
||||
LIBDIR=$(PSBLASDIR)/lib
|
||||
HERE=.
|
||||
INCDIRS=-I. -I$(LIBDIR)
|
||||
FINCLUDES=$(FMFLAG)$(LIBDIR) $(FMFLAG).
|
||||
|
||||
|
||||
MODOBJS= psb_prec_type.o psb_prec_mod.o
|
||||
MPFOBJS=psb_dbldaggrmat.o psb_zbldaggrmat.o
|
||||
|
||||
@@ -102,8 +102,13 @@ contains
|
||||
subroutine raw_aggregate(info)
|
||||
use psb_base_mod
|
||||
use psb_prec_type
|
||||
#ifdef MPI_MOD
|
||||
use mpi
|
||||
#endif
|
||||
implicit none
|
||||
#ifdef MPI_H
|
||||
include 'mpif.h'
|
||||
#endif
|
||||
|
||||
integer, intent(out) :: info
|
||||
type(psb_dspmat_type) :: b
|
||||
@@ -322,8 +327,13 @@ contains
|
||||
subroutine smooth_aggregate(info)
|
||||
use psb_base_mod
|
||||
use psb_prec_type
|
||||
#ifdef MPI_MOD
|
||||
use mpi
|
||||
#endif
|
||||
implicit none
|
||||
#ifdef MPI_H
|
||||
include 'mpif.h'
|
||||
#endif
|
||||
|
||||
integer, intent(out) :: info
|
||||
|
||||
@@ -101,8 +101,13 @@ contains
|
||||
subroutine raw_aggregate(info)
|
||||
use psb_base_mod
|
||||
use psb_prec_type
|
||||
#ifdef MPI_MOD
|
||||
use mpi
|
||||
#endif
|
||||
implicit none
|
||||
#ifdef MPI_H
|
||||
include 'mpif.h'
|
||||
#endif
|
||||
|
||||
integer, intent(out) :: info
|
||||
type(psb_zspmat_type) :: b
|
||||
@@ -321,8 +326,13 @@ contains
|
||||
subroutine smooth_aggregate(info)
|
||||
use psb_base_mod
|
||||
use psb_prec_type
|
||||
#ifdef MPI_MOD
|
||||
use mpi
|
||||
#endif
|
||||
implicit none
|
||||
#ifdef MPI_H
|
||||
include 'mpif.h'
|
||||
#endif
|
||||
|
||||
integer, intent(out) :: info
|
||||
|
||||
+4
-2
@@ -132,11 +132,12 @@ typedef struct {
|
||||
|
||||
void
|
||||
psb_zsludist_factor_(int *n, int *nl, int *nnzl, int *ffstr,
|
||||
doublecomplex *values, int *rowptr, int *colind,
|
||||
#ifdef Have_SLUDist_
|
||||
doublecomplex *values, int *rowptr, int *colind,
|
||||
fptr *f_factors, /* a handle containing the address
|
||||
pointing to the factored matrices */
|
||||
#else
|
||||
void *values, int *rowptr, int *colind,
|
||||
void *f_factors,
|
||||
#endif
|
||||
int *nprow, int *npcol, int *info)
|
||||
@@ -239,11 +240,12 @@ psb_zsludist_factor_(int *n, int *nl, int *nnzl, int *ffstr,
|
||||
|
||||
void
|
||||
psb_zsludist_solve_(int *itrans, int *n, int *nrhs,
|
||||
doublecomplex *b, int *ldb,
|
||||
#ifdef Have_SLUDist_
|
||||
doublecomplex *b, int *ldb,
|
||||
fptr *f_factors, /* a handle containing the address
|
||||
pointing to the factored matrices */
|
||||
#else
|
||||
void *b, int *ldb,
|
||||
void *f_factors,
|
||||
#endif
|
||||
int *info)
|
||||
|
||||
Reference in New Issue
Block a user