Skip to content

Commit 42984a8

Browse files
committed
RMC: POT3D v3.1.0 - Cleaned up code, added analytic validation run mode, updated documentation and scripts.
1 parent ba78b24 commit 42984a8

6 files changed

Lines changed: 497 additions & 3542 deletions

File tree

build.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ HDF5_INCLUDE_DIR="/usr/include/hdf5/serial"
1717
HDF5_LIB_DIR="/usr/lib/x86_64-linux-gnu"
1818

1919
# Locally installed
20-
#HDF5_INCLUDE_DIR="/opt/psi/gnu/ext_deps/deps/hdf5/include"
21-
#HDF5_LIB_DIR="/opt/psi/gnu/ext_deps/deps/hdf5/lib"
20+
#HDF5_INCLUDE_DIR="/opt/psi/nv/ext_deps/deps/hdf5/include"
21+
#HDF5_LIB_DIR="/opt/psi/nv/ext_deps/deps/hdf5/lib"
2222

2323
###########################################################################
2424
# Please set the HDF5 linker flags to match your installed version of hdf5.
@@ -35,11 +35,11 @@ HDF5_LIB_FLAGS="-lhdf5_serial_fortran -lhdf5_serialhl_fortran -lhdf5_serial -lhd
3535
# Examples:
3636
# GNU (CPU): FFLAGS="-O3 -mtune=native "
3737
# NV/PGI (CPU): FFLAGS="-O3"
38-
# NV/PGI (GPU): FFLAGS="-O3 -acc=gpu -gpu=cc60,cc70,cuda11.1 -Minfo=accel"
38+
# NV/PGI (GPU): FFLAGS="-O3 -acc=gpu -gpu=cc60,cc70,cuda11.2 -Minfo=accel"
3939
# INTEL (CPU): FFLAGS="-O3 -fp-model precise -assume byterecl -heap-arrays -xCORE-AVX2 -axCORE-AVX512"
4040
###########################################################################
4141

42-
FFLAGS="-O3 -mtune=native"
42+
FFLAGS="-O3"
4343

4444
###########################################################################
4545
###########################################################################
@@ -53,7 +53,8 @@ sed -i "s#<FFLAGS>#${FFLAGS}#g" Makefile
5353
sed -i "s#<HDF5_INCLUDE_DIR>#${HDF5_INCLUDE_DIR}#g" Makefile
5454
sed -i "s#<HDF5_LIB_DIR>#${HDF5_LIB_DIR}#g" Makefile
5555
sed -i "s#<HDF5_LIB_FLAGS>#${HDF5_LIB_FLAGS}#g" Makefile
56-
make
56+
echo "make 1>build.log 2>build.err"
57+
make 1>build.log 2>build.err
5758

5859
echo "cp ${POT3D_HOME}/src/pot3d ${POT3D_HOME}/bin/pot3d"
5960

pot3d_input_documentation.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
! 'open' Open field. Used for current sheet (CS)
2020
! and fully open field runs.
2121
! Note! Resulting B field will be unsigned.
22+
validation_run=.false. ! Set this to run a validation test with an analytic tilted
23+
! dipole solution. This overrides other inputs.
24+
dipole_angle=0.7853981633974483 ! Angle to tilt dipole in validation run.
2225
!
2326
! ****** Input options.
2427
!
@@ -95,10 +98,12 @@
9598
epscg=1.e-9 ! Solver convergence tolerance, |residual|/|right-hand-side|.
9699
!
97100
ncghist=0 ! Iteration information.
98-
! 0 Only writes out total iterations.
99-
! 1 Writes out residuals for all iterations.
101+
! 0 Only writes out total iteration number.
102+
! >0 Writes out every NCGHIST iteration residual.
100103
!
101-
ncgmax=10000000 ! Maximum solver iterations.
104+
ncgflush=25 ! Flush output file every NGCFLUSH iterations.
105+
!
106+
ncgmax=5000 ! Maximum solver iterations.
102107
! If solver does not converge in ncgmax iterations,
103108
! the code will exit with an error.
104109
!

0 commit comments

Comments
 (0)