Skip to content

Commit

Permalink
move directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bena-nasa committed Jun 29, 2022
1 parent 8eb25e5 commit 7cd4877
Show file tree
Hide file tree
Showing 39 changed files with 16 additions and 4 deletions.
7 changes: 6 additions & 1 deletion tutorial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ install (PROGRAMS run_tutorial_case.sh DESTINATION bin)

add_subdirectory (driver_app)
add_subdirectory (grid_comps)
#add_subdirectory (tutorials)

file (GLOB_RECURSE tutorial_files CONFIGURE_DEPENDS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} mapl_tutorials/*)
foreach ( file ${tutorial_files} )
get_filename_component( dir ${file} DIRECTORY )
install( FILES ${file} DESTINATION etc/${dir} )
endforeach()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 10 additions & 3 deletions tutorial/run_tutorial_case.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,18 @@ export INSTALL_DIR=$1
export TUTORIAL_CASE=$2
source $INSTALL_DIR/bin/g5_modules.sh
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${BASEDIR}/${ARCH}/lib:${INSTALL_DIR}/lib
export TUTORIAL_PATH=${INSTALL_DIR}/etc/mapl_tutorials/${TUTORIAL_CASE}

for file in `ls ${TUTORIAL_CASE}`; do
cp "${TUTORIAL_CASE}/${file}" .
for file in `ls ${TUTORIAL_PATH}`; do
cp "${TUTORIAL_PATH}/${file}" .
done

ROOT_LIB=`cat root_lib`

mpirun -np 1 ${INSTALL_DIR}/bin/Example_Driver.x --root_dso ${ROOT_LIB}
export ROOT_RC=`grep '^\s*ROOT_CF:' CAP.rc | cut -d: -f2`
export NX=`grep '^\s*NX:' ${ROOT_RC} | cut -d: -f2`
export NY=`grep '^\s*NY:' ${ROOT_RC} | cut -d: -f2`

export NPES=`expr ${NY} \* ${NX}`

mpirun -np ${NPES} ${INSTALL_DIR}/bin/Example_Driver.x --root_dso ${ROOT_LIB}

0 comments on commit 7cd4877

Please sign in to comment.