From 5bc6f66f9b3b40d66c331bcf8ff09543e9bcee35 Mon Sep 17 00:00:00 2001 From: David Goz <david.goz@inaf.it> Date: Fri, 21 Jun 2024 13:37:28 +0000 Subject: [PATCH] Delete write_paramfile.sh --- .../serial/not_opt/script/write_paramfile.sh | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100755 jacobi/serial/not_opt/script/write_paramfile.sh diff --git a/jacobi/serial/not_opt/script/write_paramfile.sh b/jacobi/serial/not_opt/script/write_paramfile.sh deleted file mode 100755 index 6af6591..0000000 --- a/jacobi/serial/not_opt/script/write_paramfile.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -# NAME: write_paramfile -# PURPOSE: to write a user defined paramfile for the X NBody app -# USAGE: write_paramfile [template_file] [paramfile_to_write] \ -# [DeleteOutputFiles] [OutputDir] \ -# [OMP threads] [N] - -function write_paramfile() -{ - local TEMPLATE=$1 - - # check if TEMPLATE is a regular file - if [ ! -f ${TEMPLATE} ] - then - echo "${TEMPLATE} is not a regular file.. aborting..." - return 1 - fi - - # copy template file - local PARAMFILE=$2 - cp -v ${TEMPLATE} ${PARAMFILE} - - local DELETE_OUTPUT_FILES=$3 - local OUTPUTDIR=$4 - local THREADS=$5 - local N=$6 - - # add parameters - echo "DeleteOutputFiles ${DELETE_OUTPUT_FILES}" >> ${PARAMFILE} - echo "OutputDir ${OUTPUTDIR}" >> ${PARAMFILE} - echo "RequestedNThreads ${THREADS}" >> ${PARAMFILE} - echo "N ${N}" >> ${PARAMFILE} - - echo "${PARAMFILE} written" - - return 0 -} -- GitLab