Skip to content

Commit

Permalink
add build instructions for 128bit reals
Browse files Browse the repository at this point in the history
  • Loading branch information
nimgould committed Apr 8, 2024
1 parent 27b5774 commit a8c6ea0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
35 changes: 34 additions & 1 deletion bin/install_cutest_main
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,27 @@ echo "$MACHINE ($OPSYS) $COMPUSED" > $CUTEST/versions/$VERSION

if [[ ! -e $OBJDIR ]]; then
$MKDIR $OBJDIR
$MKDIR $OBJDIR/double $OBJDIR/single $OBJDIR/double_64 $OBJDIR/single_64
$MKDIR $OBJDIR/double $OBJDIR/single $OBJDIR/quadruple
$MKDIR $OBJDIR/double_64 $OBJDIR/single_64 $OBJDIR/quadruple_64
else
if [[ ! -e $OBJDIR/double ]]; then
$MKDIR $OBJDIR/double
fi
if [[ ! -e $OBJDIR/single ]]; then
$MKDIR $OBJDIR/single
fi
if [[ ! -e $OBJDIR/quadruple ]]; then
$MKDIR $OBJDIR/quadruple
fi
if [[ ! -e $OBJDIR/double_64 ]]; then
$MKDIR $OBJDIR/double_64
fi
if [[ ! -e $OBJDIR/single_64 ]]; then
$MKDIR $OBJDIR/single_64
fi
if [[ ! -e $OBJDIR/quadruple_64 ]]; then
$MKDIR $OBJDIR/quadruple_64
fi
fi

if [[ ! -e $MODDIR ]]; then
Expand All @@ -81,17 +88,30 @@ else
if [[ ! -e $MODDIR/single ]]; then
$MKDIR $MODDIR/single
fi
if [[ ! -e $MODDIR/quadruple ]]; then
$MKDIR $MODDIR/quadruple
fi
if [[ ! -e $OBJDIR/double_64 ]]; then
$MKDIR $OBJDIR/double_64
fi
if [[ ! -e $OBJDIR/single_64 ]]; then
$MKDIR $OBJDIR/single_64
fi
if [[ ! -e $OBJDIR/quadruple_64 ]]; then
$MKDIR $OBJDIR/quadruple_64
fi
fi

[[ ! -e $PKGDIR ]] && $MKDIR $PKGDIR
[[ ! -e $PKGDIR/double ]] && $MKDIR $PKGDIR/double
[[ ! -e $PKGDIR/single ]] && $MKDIR $PKGDIR/single
[[ ! -e $PKGDIR/quadruple ]] && $MKDIR $PKGDIR/quadruple

if [[ $QUADREAL == 'yes' ]] ; then
QUADFLAG="-DCUTEST_16btye_reals_exist"
else
QUADFLAG=""
if

# write out the cutest/bin/sys file for this architecture

Expand Down Expand Up @@ -168,6 +188,7 @@ echo 'TIMER = '$TIMER >> $MAKEFILE
echo 'NOT95 = '$NOT95 >> $MAKEFILE
echo 'NOT64 = '$NOT64 >> $MAKEFILE
echo 'INTEGER = '$INTEGER >> $MAKEFILE
echo 'QUADREAL = '$QUADFLAG >> $MAKEFILE
echo ' ' >> $MAKEFILE
echo 'AMPLDIR = '$AMPLLIBDIR >> $MAKEFILE
echo 'CC = '$CC >> $MAKEFILE
Expand Down Expand Up @@ -227,6 +248,18 @@ if [[ $? != 0 ]]; then
PREC='single'
cutest_compile
fi

# optionally compile the selected packages in quadruple precision if supported

if [[ $QUADREAL == 'yes' ]] ; then
yesno_default_no ' Would you like to compile CUTEst in quadruple precision ...'
if [[ $? != 0 ]]; then
PREC='quadruple'
cutest_compile
fi
fi


success 'CUTEst successfully installed'
fi

Expand Down
2 changes: 1 addition & 1 deletion src/tools/cohprods.F90
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
! moden fortran version released in CUTEst, 29th October 2023

SUBROUTINE CUTEST_Cint_cohprods_r( status, n, goth, X, VECTOR, &
nnzohp, lohp, RESULT, IND )
nnzohp, lohp, RESULT, IND )
USE CUTEST_KINDS_precision
USE CUTEST_precision
USE, INTRINSIC :: ISO_C_BINDING, ONLY : C_Bool
Expand Down

0 comments on commit a8c6ea0

Please sign in to comment.