Skip to content

Commit

Permalink
Attempt automatic linking of problems (4)
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Oct 3, 2024
1 parent 3556a7c commit 5519568
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fortran/problem_linker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ for file in "$SRC_DIR"/p[0-9][0-9][0-9][0-9].f90; do
((count++))
fi
done
problem_ids_str=$(IFS=,; echo "${problem_ids[*]/%/_i4t}")
problem_ids_str=$(printf '%s_i4t, &\n' "${problem_ids[@]}")
# Remove the last ', &\n' for proper formatting
problem_ids_str=${problem_ids_str%, &$'\n'}

# Start writing to the output file
cat <<EOF1 > $OUTPUT_FILE
Expand Down

0 comments on commit 5519568

Please sign in to comment.