Skip to content

Latest commit

 

History

History
57 lines (35 loc) · 962 Bytes

README.md

File metadata and controls

57 lines (35 loc) · 962 Bytes

IT 515R - Scientific Computing - Phase 4

Tanner Satchwell

Files

solver.cpp - solver file grid.h - contains common grid functions grid2pgm.cpp - creates pgm visual of the grid binary.cpp - program to generate binary test input CMakeLists.txt - cmake file

Phase 4 Instructions

Load the necessary modules

module load cmake

module unload compiler_gnu/4.9.2 module load compiler_gnu/5/3

module unload compiler_intel/14.0.2 module load compiler_intel/2017

module load llvm/3.9 module load compiler_clang/3.5.0

Prepare to build the program

mkdir build cd build

Run one of the following cmake

CXX=g++; cmake .. CXX=icpc; cmake .. CXX=clang++; cmake ..

Build your executables

make

Run solver

./solver < [BINARY_INPUT] > [BINARY_OUTPUT]

To generate binary test input

./binary > input.bin

To generate a pgm image

./grid2pgm < [BINARY_INPUT] > [PGM_OUTPUT].pgm

Clean up

make clean