Skip to content

Commit

Permalink
Update laser_ionization.1Rank.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
EyaDammak authored Jan 13, 2025
1 parent 9cb30f3 commit 1054b33
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/laser_ionization.1Rank.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ set -eu -o pipefail
# Read input parameters
HIPACE_EXECUTABLE=$1
HIPACE_SOURCE_DIR=$2
HIPACE_COMPUTE=$3

HIPACE_EXAMPLE_DIR=${HIPACE_SOURCE_DIR}/examples/laser_ionization
HIPACE_TEST_DIR=${HIPACE_SOURCE_DIR}/tests
Expand All @@ -38,8 +39,10 @@ mpiexec -n 1 $HIPACE_EXECUTABLE $HIPACE_EXAMPLE_DIR/inputs_laser_ionization \
$HIPACE_EXAMPLE_DIR/analysis_laser_ionization.py --first=$TEST_NAME/linear --second=$TEST_NAME/circular


# Compare the results with checksum benchmark
$HIPACE_TEST_DIR/checksum/checksumAPI.py \
--evaluate \
--file_name $TEST_NAME/linear \
--test-name $TEST_NAME
# Compare the results with checksum benchmark if it runs on CPU only
if [[ "$HIPACE_COMPUTE" != "CUDA" ]]; then
$HIPACE_TEST_DIR/checksum/checksumAPI.py \
--evaluate \
--file_name $TEST_NAME/linear \
--test-name $TEST_NAME
fi

0 comments on commit 1054b33

Please sign in to comment.