Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nek5000
giraffe
Commits
fbd62346
Commit
fbd62346
authored
Dec 13, 2016
by
Ron Rahaman
Browse files
Tweaking SIZE file
parent
2ad1f77a
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
fbd62346
...
...
@@ -232,6 +232,112 @@ AC_SUBST([nek_lapack_obj])
###############################################################################
# SIZE FILE HANDLING
###############################################################################
AC_CHECK_FILE([SIZE], , AC_MSG_ERROR([could not find SIZE file in current directory]))
AC_MSG_NOTICE([tweaking SIZE file])
# == General subroutines ======================================================
cat SIZE | grep -i 'lxo' >/dev/null
if test $? -ne 0; then
echo >>SIZE
echo 'c automatically added by makenek' >>SIZE
echo ' parameter(lxo = lx1) ! max output grid size (lxo>=lx1)' >>SIZE
fi
cat SIZE | grep -i 'lpart' >/dev/null
if test $? -ne 0; then
echo >>SIZE
echo 'c automatically added by makenek' >>SIZE
echo ' parameter(lpart = 1 ) ! max number of particles/proc' >>SIZE
fi
cat SIZE | grep -i 'ax1' >/dev/null
if test $? -ne 0; then
echo >>SIZE
echo 'c automatically added by makenek' >>SIZE
echo ' integer ax1,ay1,az1,ax2,ay2,az2' >> SIZE
echo ' parameter (ax1=lx1,ay1=ly1,az1=lz1,ax2=lx2,ay2=ly2,az2=lz2) ! running averages' >> SIZE
fi
cat SIZE | grep -i 'lys=lxs' >/dev/null
if test $? -ne 0; then
cat SIZE | grep -iv lxs > SIZE.x; mv SIZE.x SIZE # Clean existing SIZE file of old version
echo >>SIZE
echo 'c automatically added by makenek' >>SIZE
echo ' parameter (lxs=1,lys=lxs,lzs=(lxs-1)*(ldim-2)+1) !New Pressure Preconditioner' >> SIZE
fi
cat SIZE | grep -i 'lfdm' >/dev/null
if test $? -ne 0; then
echo >>SIZE
echo 'c automatically added by makenek' >>SIZE
echo ' parameter (lfdm=0) ! == 1 for fast diagonalization method' >> SIZE
fi
cat SIZE | grep -i 'nio' >/dev/null
if test $? -ne 0; then
echo >>SIZE
echo 'c automatically added by makenek' >>SIZE
echo ' common/IOFLAG/nio ! for logfile verbosity control' >> SIZE
fi
# == CVODE subroutines ========================================================
if test "x$cvode" = "xyes"; then
cat SIZE | grep -i 'cv_maxl' >/dev/null
if test $? -ne 0; then
echo >>SIZE
echo 'c automatically added by makenek' >>SIZE
echo ' integer cv_maxl' >> SIZE
echo ' parameter(cv_maxl = 20 ) ! Size of Krylov Space' >>SIZE
fi
cat SIZE | grep -i 'cv_delt' >/dev/null
if test $? -ne 0; then
echo >>SIZE
echo 'c automatically added by makenek' >>SIZE
echo ' real cv_delt' >> SIZE
echo ' parameter(cv_delt = 0.1 ) ! linear convergence factor ' >>SIZE
fi
cat SIZE | grep -i 'cv_sigs' >/dev/null
if test $? -ne 0; then
echo >>SIZE
echo 'c automatically added by makenek' >>SIZE
echo ' real cv_sigs' >> SIZE
echo ' parameter(cv_sigs = 0.01) ! Jacobian DQ perturbation scaling factor' >>SIZE
fi
fi
# == CMT subroutines ==========================================================
cat SIZE | grep -i 'toteq' >/dev/null
if test $? -ne 0; then
if test "x$cmt" = "xyes"; then
echo >>SIZE
echo 'c automatically added by makenek' >>SIZE
echo ' integer toteq' >> SIZE
echo ' parameter(toteq = 5 ) ! Number of conserved variables ' >>SIZE
echo 'c IFCMT=TRUE then toteq=5' >>SIZE
else
echo >>SIZE
echo 'c automatically added by makenek' >>SIZE
echo ' integer toteq' >> SIZE
echo ' parameter(toteq = 1 ) ! Number of conserved variables ' >>SIZE
echo 'c IFCMT=FALSE then toteq=1' >>SIZE
fi
fi
cat SIZE | grep -i 'lelcmt' >/dev/null
if test $? -ne 0; then
if test "x$cmt" = "xyes"; then
echo >>SIZE
echo 'c automatically added by makenek' >>SIZE
echo ' integer lelcmt' >> SIZE
echo ' parameter(lelcmt = lelt ) ! # of cmt elements ' >>SIZE
echo 'c IFCMT=TRUE then lelcmt=lelt' >>SIZE
else
echo >>SIZE
echo 'c automatically added by makenek' >>SIZE
echo ' integer lelcmt' >> SIZE
echo ' parameter(lelcmt = 1 ) ! # of cmt elements ' >>SIZE
echo 'c IFCMT=FALSE then lelcmt=1' >>SIZE
fi
fi
###############################################################################
# ALL DONE!
###############################################################################
AC_OUTPUT
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment