Skip to content

Commit

Permalink
Merge branch 'rsachetto-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
bergolho committed Jan 14, 2024
2 parents 3927d22 + 4146c0d commit 197f4e1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ $ ./build.sh
The binary files will be saved in the ```bin``` folder.

# Running examples
----
```sh
$ bin/MonoAlg3D -c example_configs/cuboid_ohara.ini
```
Expand Down Expand Up @@ -51,11 +50,19 @@ Example file:

This file represents 3 volumes with 100 micrometer of side. The first volume is centered at at 850,850,950 and the calculated V is -85 mV.

# Contributors:

@rsachetto Rafael Sachetto Oliveira

@bergolho Lucas Arantes Berg

@Rodrigo-Weber-dos-Santos Rodrigo Weber dos Santos

Among others.

# How to cite:
----

Oliveira RS, Rocha BM, Burgarelli D, Meira Jr W, Constantinides C, dos Santos RW. Performance evaluation of GPU parallelization, space‐time adaptive algorithms, and their combination for simulating cardiac electrophysiology. Int J Numer Meth Biomed Engng. 2018;34:e2913. https://doi.org/10.1002/cnm.2913

# Credits
----
[Heart icons created by phatplus - Flaticon](https://www.flaticon.com/free-icons/heart)
7 changes: 6 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,13 @@ if [ -n "$COMPILE_MPI" ]; then
HDR_FILES=""
DYNAMIC_DEPS="$DYNAMIC_DEPS $MPI_LIBRARIES"
EXTRA_LIB_PATH="$EXTRA_LIB_PATH $CUDA_LIBRARY_PATH $MPI_LIBRARY_PATH $LIBRARY_OUTPUT_DIRECTORY"

if [ -z "$MPI_INCLUDE_PATH" ]; then
COMPILE_EXECUTABLE "MonoAlg3D_batch" "$SRC_FILES" "$HDR_FILES" "$STATIC_DEPS" "$DYNAMIC_DEPS" "$CUDA_LIBRARY_PATH $CUDA_MATH_LIBRARY_PATH $EXTRA_LIB_PATH"
else
COMPILE_EXECUTABLE "MonoAlg3D_batch" "$SRC_FILES" "$HDR_FILES" "$STATIC_DEPS" "$DYNAMIC_DEPS" "$CUDA_LIBRARY_PATH $CUDA_MATH_LIBRARY_PATH $EXTRA_LIB_PATH" "-I$MPI_INCLUDE_PATH"
fi

COMPILE_EXECUTABLE "MonoAlg3D_batch" "$SRC_FILES" "$HDR_FILES" "$STATIC_DEPS" "$DYNAMIC_DEPS" "$CUDA_LIBRARY_PATH $CUDA_MATH_LIBRARY_PATH $EXTRA_LIB_PATH" "-I$MPI_INCLUDE_PATH"
fi

fi
Expand Down
2 changes: 2 additions & 0 deletions src/alg/grid/grid.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ struct grid *new_grid() {

result->purkinje = NULL;

result->extra_info = NULL;

return result;
}

Expand Down
4 changes: 3 additions & 1 deletion src/alg/grid/grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#define MONOALG3D_GRID_H

#include "../cell/cell.h"
#include "../../graph/graph.h"
#include "../grid_purkinje/grid_purkinje.h"
#include "../../common_types/common_types.h"

Expand Down Expand Up @@ -39,6 +38,9 @@ struct grid {

struct point_3d start_discretization;
struct point_3d max_discretization;

void *extra_info;

};

struct grid* new_grid();
Expand Down

0 comments on commit 197f4e1

Please sign in to comment.