Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 22 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -2,51 +2,46 @@

The code needs OCCA to run ( https://github.com/libocca/occa )

Install OCCA first.
Install OCCA first:

git clone https://github.com/libocca/occa.git
git clone https://github.com/libocca/occa.git
cd occa
make

Enter occa directory.
Set environmental variables:

Type make.

Set environmental variables
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${PWD}/lib"
PATH+=":${PWD}/bin"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${PWD}/lib"
PATH+=":${PWD}/bin"

[set occa_dir]

You can also add the commands to your .bashrc
You can also add the commands to your `.bashrc`

export OCCA_DIR=/path/to/folder/occa/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OCCA_DIR/lib
export OCCA_DIR=/path/to/folder/occa/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OCCA_DIR/lib

To run the code in the repo:

## BP1.0
cd BP10

make

./BP10 512 10
cd BP10
make
./BP10 512 10

[to simulate mass-matrix-vector multiplication on a mesh with 512 elements and polynomial degree 10 using 12^3 quadrature nodes]
This benchmark simulates mass-matrix-vector multiplication on a mesh with 512 elements and polynomial degree 10 using 12^3 quadrature nodes.

## BP3.0
cd BP30

make

./BP30 512 10
cd BP30
make
./BP30 512 10

[to simulate stiffness-matrix-vector multiplication on a mesh with 512 elements and polynomial degree 10 using 12^3 quadrature nodes]
This benchmark simulates stiffness-matrix-vector multiplication on a mesh with 512 elements and polynomial degree 10 using 12^3 quadrature nodes.

## BP3.5

cd BP35

make

./BP35 512 10
cd BP35
make
./BP35 512 10

[to simulate stiffness-matrix-vector multiplication on a mesh with 512 elements and polynomial degree 10 using 11^3 quadrature nodes]
This benchmark simulates stiffness-matrix-vector multiplication on a mesh with 512 elements and polynomial degree 10 using 11^3 quadrature nodes.