NAME=gatherv_example


MPI_HOME=/server-home/netbin/mpi/mpich2-1.2.1p1-ifort-10.1.018
#MPI_HOME=/server-home/netbin/mpi/mpich2-1.0.7-ifort-10.1.008

MPIF90=$(MPI_HOME)/bin/mpif90
MPIRUN=$(MPI_HOME)/bin/mpirun

NPROC=4




run: $(NAME)
	$(MPIRUN) -n $(NPROC) ./$(NAME)
	

$(NAME):
	$(MPIF90) -g $(NAME).f90 -o $(NAME)

clean:
	rm -f $(NAME) fort.*

debug: $(NAME)
	$(MPIRUN) -gdb -n $(NPROC) $(NAME)

