Skip to content

Commit

Permalink
examples: update the example of mulliken (#1289)
Browse files Browse the repository at this point in the history
  • Loading branch information
pxlxingliang committed Sep 23, 2022
1 parent 00d6301 commit d2aadb3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
File renamed without changes.
8 changes: 8 additions & 0 deletions examples/mulliken/lcao_Si2/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

ABACUS_PATH=$(awk -F "=" '$1=="ABACUS_PATH"{print $2}' ../../SETENV)
ABACUS_NPROCS=$(awk -F "=" '$1=="ABACUS_NPROCS"{print $2}' ../../SETENV)
ABACUS_THREADS=$(awk -F "=" '$1=="ABACUS_THREADS"{print $2}' ../../SETENV)

OMP_THREADS_NUM=${ABACUS_THREADS} mpirun -np ${ABACUS_NPROCS} ${ABACUS_PATH} | tee output

11 changes: 11 additions & 0 deletions examples/mulliken/runall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

for ii in *
do
if [ -d $ii ];then
cd ${ii}
echo "RUN: ${ii}"
bash run.sh
cd ..
fi
done

0 comments on commit d2aadb3

Please sign in to comment.