Commit c2fad5c8 authored by French, Robert's avatar French, Robert
Browse files

Build static executable for eos

parent 0d57b8b2
build/*
*.o* # PBS output files
......@@ -4,7 +4,7 @@ project(Oersted)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 --coverage")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
set(BUILD_SHARED_LIBRARIES OFF)
find_package(Boost REQUIRED COMPONENTS system filesystem)
include_directories(${Boost_INCLUDE_DIR})
......@@ -21,4 +21,4 @@ include_directories(./src/Mesh/include/)
add_subdirectory(./src/)
add_subdirectory(./test/)
\ No newline at end of file
add_subdirectory(./test/)
#!/bin/bash
module swap PrgEnv-intel PrgEnv-gnu
module swap gcc gcc/6.1.0
module load dynamic-link
module load cmake3
module load boost
mkdir -p build/eos
cd build/eos
cmake ../..
make
......@@ -7,6 +7,6 @@ set(SOURCE_FILES
./src/Edge.h ./src/Edge.cpp
./src/Point.h ./src/Point.cpp)
add_library(mesh SHARED ${SOURCE_FILES})
add_library(mesh ${SOURCE_FILES})
target_link_libraries(mesh ${Boost_LIBRARIES})
\ No newline at end of file
target_link_libraries(mesh ${Boost_LIBRARIES})
......@@ -39,6 +39,6 @@ set(SOURCE_FILES
./src/Contour.h ./src/Contour.cpp)
add_library(sketch SHARED ${SOURCE_FILES})
add_library(sketch ${SOURCE_FILES})
target_link_libraries(sketch ${Boost_LIBRARIES})
\ No newline at end of file
target_link_libraries(sketch ${Boost_LIBRARIES})
#!/bin/bash -ex
#PBS -A STF007
#PBS -l nodes=1
#PBS -l walltime=1800
#PBS -N oersted_tests_eos
#PBS -j oe
export MEMBERWORK=/lustre/atlas/scratch/frenchrd
cd $PBS_O_WORKDIR
cp build/eos/test/run_tests /ccs/proj/stf007/oersted_tests_eos.exe
cd $MEMBERWORK/stf007
aprun -n1 /ccs/proj/stf007/oersted_tests_eos.exe
#!/bin/bash
ls -RAhlF build
module load python/3.5.1
module load /sw/xk6/modulefiles/blocking_qsub/0.2.0
blocking_qsub test-eos.pbs
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment