Skip to content
Snippets Groups Projects
Commit 7d257fdd authored by Juan Escobar's avatar Juan Escobar
Browse files

Juan 22/09/2022:Modif for Gfortran+MPIVIDE + add missing mpi_sendrecv in mpivide.c

parent 157445ca
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,20 @@ int *__ierr;
*__ierr = 0;
}
#pragma weak mpi_sendrecv__ = mpi_sendrecv
#pragma weak mpi_sendrecv_ = mpi_sendrecv
void mpi_sendrecv(void *sendbuf, int *sendcounts, int *sendtype, int *dest , int *sendtag ,
void *recvbuf, int *recvcounts, int *recvtype, int *source, int *recvtag ,
int *comm, int *__ierr)
{
int size;
disppass("sendrecv");
size = findtypesize(*sendtype);
memcpy(recvbuf, sendbuf, (*recvcounts)*size);
*__ierr = 0;
}
#pragma weak mpi_alltoallv__ = mpi_alltoallv
#pragma weak mpi_alltoallv_ = mpi_alltoallv
......
......@@ -337,7 +337,7 @@ INC_MPI = -I$(B)$(DIR_MPI)
DIR_MASTER += $(DIR_MPI)
OBJS_LISTE_MASTER += mpivide.o
INC += $(INC_MPI)
mpivide.o : CPPFLAGS += -DMNH_INT=$(MNH_INT) -DMNH_REAL=$(MNH_REAL) \
mpivide.o : CPPFLAGS_C += -DMNH_INT=$(MNH_INT) -DMNH_REAL=$(MNH_REAL) \
-I$(DIR_MPI)/include
VPATH += $(DIR_MPI)
endif
......
......@@ -97,9 +97,10 @@ LDFLAGS = $(OPT)
#
# preprocessing flags
#
CPP = cpp -P -traditional -Wcomment
#CPP = cpp -P -traditional -Wcomment
CPP = mnh_expand -imacros MNH_OPENACC_NV_CR.CPP
#
CPPFLAGS_C = -DLITTLE_endian
CPPFLAGS_C += -DLITTLE_endian
CPPFLAGS_SURFEX =
CPPFLAGS_SURCOUCHE += -DDEV_NULL
CPPFLAGS_RAD =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment