Skip to content
Snippets Groups Projects
Commit ced98447 authored by Antoine Cyril David Hoffmann's avatar Antoine Cyril David Hoffmann
Browse files

portability update

parent 8dcebe03
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ include local/make.inc ...@@ -3,7 +3,7 @@ include local/make.inc
EXEC = $(BINDIR)/helaz EXEC = $(BINDIR)/helaz
F90 = mpif90 F90 = mpiifort
# Add Multiple-Precision Library # Add Multiple-Precision Library
EXTLIBS += -L$(FMDIR)/lib EXTLIBS += -L$(FMDIR)/lib
......
...@@ -5,9 +5,13 @@ BINDIR = $(PREFIX)/bin ...@@ -5,9 +5,13 @@ BINDIR = $(PREFIX)/bin
OBJDIR = $(PREFIX)/obj OBJDIR = $(PREFIX)/obj
LIBDIR = $(PREFIX)/lib LIBDIR = $(PREFIX)/lib
MODDIR = $(PREFIX)/mod MODDIR = $(PREFIX)/mod
FMDIR = $(PREFIX)/FM FMDIR = $(PREFIX)/FM
FFTW3DIR = /home/ahoffman/lib/fftw-3.3.8 FFTW3DIR = /home/ahoffman/lib/fftw-3.3.8
INTEL_LOCAL = /home/ahoffman/local/spcpc/intel FUTILS_DIR = /home/ahoffman/local/spcpc/intel
FUTILS = /home/ahoffman/lib/futils_1.4/src
#FMDIR = (HOME)/lib/FM
#FFTW3DIR = $(HOME)/lib/fftw-3.3.8
#FUTILS_DIR = $(HOME)/lib/futils
# Naming ideas : HeLaZ, MoNoLiT (Moment Non Linear Torroidal) # Naming ideas : HeLaZ, MoNoLiT (Moment Non Linear Torroidal)
...@@ -54,10 +54,10 @@ endif ...@@ -54,10 +54,10 @@ endif
# #
################################################################ ################################################################
IDIRS := -I$(INTEL_LOCAL)/include/$(OPTLEVEL) IDIRS := -I$(FUTILS_DIR)/include/$(OPTLEVEL)
LIBS := -lfutils -lhdf5_fortran -lhdf5 -lz -ldl -lpthread LIBS := -lfutils -lhdf5_fortran -lhdf5 -lz -ldl -lpthread
LDIRS := -L$(INTEL_LOCAL)/lib/$(OPTLEVEL) -L$(HDF5)/lib LDIRS := -L$(FUTILS_DIR)/lib/$(OPTLEVEL) -L$(HDF5)/lib
# Add Multiple-Precision Library # Add Multiple-Precision Library
LIBS += -lfm LIBS += -lfm
......
...@@ -63,22 +63,20 @@ CALL cpu_time(t0_step) ! Measuring time ...@@ -63,22 +63,20 @@ CALL cpu_time(t0_step) ! Measuring time
step = step + 1 step = step + 1
cstep = cstep + 1 cstep = cstep + 1
! CALL mpi_barrier(MPI_COMM_WORLD, ierr)
CALL stepon CALL stepon
CALL mpi_barrier(MPI_COMM_WORLD, ierr) CALL mpi_barrier(MPI_COMM_WORLD, ierr)
time = time + dt time = time + dt
CALL tesend CALL tesend
IF( nlend ) EXIT ! exit do loop IF( nlend ) EXIT ! exit do loop
CALL cpu_time(t0_diag) ! Measuring time CALL cpu_time(t0_diag) ! Measuring time
CALL diagnose(step) CALL diagnose(step)
CALL cpu_time(t1_diag); tc_diag = tc_diag + (t1_diag - t0_diag) CALL cpu_time(t1_diag); tc_diag = tc_diag + (t1_diag - t0_diag)
! CALL mpi_barrier(MPI_COMM_WORLD, ierr)
CALL cpu_time(t1_step); tc_step = tc_step + (t1_step - t0_step) CALL cpu_time(t1_step); tc_step = tc_step + (t1_step - t0_step)
END DO END DO
IF (my_id .EQ. 1) WRITE(*,'(a/)') '...time integration done' IF (my_id .EQ. 1) WRITE(*,'(a/)') '...time integration done'
!________________________________________________________________________________ !________________________________________________________________________________
......
...@@ -271,9 +271,7 @@ SUBROUTINE diagnose(kstep) ...@@ -271,9 +271,7 @@ SUBROUTINE diagnose(kstep)
IF (my_id .EQ. 0) CALL display_h_min_s(finish-start) IF (my_id .EQ. 0) CALL display_h_min_s(finish-start)
! Close all diagnostic files ! Close all diagnostic files
CALL mpi_barrier(MPI_COMM_WORLD, ierr)
CALL closef(fidres) CALL closef(fidres)
CALL mpi_barrier(MPI_COMM_WORLD, ierr)
CALL closef(fidrst) CALL closef(fidrst)
CALL mpi_barrier(MPI_COMM_WORLD, ierr) CALL mpi_barrier(MPI_COMM_WORLD, ierr)
END IF END IF
......
...@@ -3,8 +3,8 @@ character(len=40) BRANCH ...@@ -3,8 +3,8 @@ character(len=40) BRANCH
character(len=20) AUTHOR character(len=20) AUTHOR
character(len=40) EXECDATE character(len=40) EXECDATE
character(len=40) HOST character(len=40) HOST
parameter (VERSION='fde3f88-dirty') parameter (VERSION='8dcebe0-dirty')
parameter (BRANCH='MPI') parameter (BRANCH='MPI')
parameter (AUTHOR='ahoffman') parameter (AUTHOR='ahoffman')
parameter (EXECDATE='Fri Nov 27 15:29:47 CET 2020') parameter (EXECDATE='Fri Nov 27 17:13:58 CET 2020')
parameter (HOST ='spcpc606') parameter (HOST ='spcpc606')
...@@ -3,8 +3,8 @@ character(len=40) BRANCH ...@@ -3,8 +3,8 @@ character(len=40) BRANCH
character(len=20) AUTHOR character(len=20) AUTHOR
character(len=40) EXECDATE character(len=40) EXECDATE
character(len=40) HOST character(len=40) HOST
parameter (VERSION='fde3f88-dirty') parameter (VERSION='8dcebe0-dirty')
parameter (BRANCH='MPI') parameter (BRANCH='MPI')
parameter (AUTHOR='ahoffman') parameter (AUTHOR='ahoffman')
parameter (EXECDATE='Fri Nov 27 15:29:47 CET 2020') parameter (EXECDATE='Fri Nov 27 17:13:58 CET 2020')
parameter (HOST ='spcpc606') parameter (HOST ='spcpc606')
&BASIC &BASIC
nrun = 100000000 nrun = 100000000
dt = 0.01 dt = 0.005
tmax = 100 tmax = 200
RESTART = .false. RESTART = .true.
/ /
&GRID &GRID
pmaxe =2 pmaxe =2
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
CANCEL_ODD_P = .false. CANCEL_ODD_P = .false.
/ /
&OUTPUT_PAR &OUTPUT_PAR
nsave_0d = 100 nsave_0d = 200
nsave_1d = 0 nsave_1d = 0
nsave_2d = 100 nsave_2d = 200
nsave_5d = 1000 nsave_5d = 2000
write_Na00 = .true. write_Na00 = .true.
write_moments = .true. write_moments = .true.
write_phi = .true. write_phi = .true.
......
...@@ -19,12 +19,12 @@ JMAXE = 1; % Highest '' Laguerre '' ...@@ -19,12 +19,12 @@ JMAXE = 1; % Highest '' Laguerre ''
PMAXI = 2; % Highest ion Hermite polynomial degree PMAXI = 2; % Highest ion Hermite polynomial degree
JMAXI = 1; % Highest '' Laguerre '' JMAXI = 1; % Highest '' Laguerre ''
%% TIME PARAMETERS %% TIME PARAMETERS
TMAX = 100; % Maximal time unit TMAX = 200; % Maximal time unit
DT = 1e-2; % Time step DT = 5e-3; % Time step
SPS0D = 1; % Sampling per time unit for profiler SPS0D = 1; % Sampling per time unit for profiler
SPS2D = 1; % Sampling per time unit for 2D arrays SPS2D = 1; % Sampling per time unit for 2D arrays
SPS5D = 0.1; % Sampling per time unit for 5D arrays SPS5D = 0.1; % Sampling per time unit for 5D arrays
RESTART = 0; % To restart from last checkpoint RESTART = 1; % To restart from last checkpoint
JOB2LOAD= 0; JOB2LOAD= 0;
%% OPTIONS %% OPTIONS
SIMID = 'test_parallel'; % Name of the simulation SIMID = 'test_parallel'; % Name of the simulation
......
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