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

Function input feature for time-dependent boundary conditions #108

Open
wants to merge 45 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
4df6072
expression_string (SEGFAULT)
kharold23 Apr 3, 2024
7fad1f0
Time dependent flow (fixed)
kharold23 Apr 13, 2024
fe12497
Time-dependent pressure
kharold23 Apr 21, 2024
6460bf8
Add test cases and clean/format code
kharold23 May 9, 2024
8258e4e
Documentation
kharold23 May 16, 2024
ad3b585
Clang Format Fix?
kharold23 May 16, 2024
7acb97c
Clang-format fix?
kharold23 May 16, 2024
a3411ba
Update Parameter.cpp
kharold23 May 17, 2024
46e733c
Merge branch 'SimVascular:master' into time-dependent
kharold23 Jun 11, 2024
8b73387
Create "ThirdParty" directory and add expression compiling check
kharold23 Jun 11, 2024
b32058a
exprtk improvements suggested by A. Partow
kharold23 Jun 17, 2024
a328460
Update handling for when function parameter is not given
kharold23 Jun 17, 2024
fa4c9fe
Fix symbol_table bug
kharold23 Jun 18, 2024
cace21c
Expression string length bug
kharold23 Jun 18, 2024
baa42d2
clang formatting
kharold23 Jun 18, 2024
e6760c6
Clang formatting (again)
kharold23 Jun 18, 2024
8a4c875
Requested changes
kharold23 Jul 12, 2024
927d5cd
Add results of the time dependent test cases
kharold23 Jul 12, 2024
2741f35
expression_string (SEGFAULT)
kharold23 Apr 3, 2024
772548b
Time dependent flow (fixed)
kharold23 Apr 13, 2024
10e293f
Time-dependent pressure
kharold23 Apr 21, 2024
25070a1
Add test cases and clean/format code
kharold23 May 9, 2024
356674c
Documentation
kharold23 May 16, 2024
aec0dd2
Clang Format Fix?
kharold23 May 16, 2024
29e4a4a
Clang-format fix?
kharold23 May 16, 2024
24911c8
Update Parameter.cpp
kharold23 May 17, 2024
40d2fb7
Create "ThirdParty" directory and add expression compiling check
kharold23 Jun 11, 2024
62cfac4
exprtk improvements suggested by A. Partow
kharold23 Jun 17, 2024
57dc47d
Update handling for when function parameter is not given
kharold23 Jun 17, 2024
3f85d4a
Fix symbol_table bug
kharold23 Jun 18, 2024
2de2ace
Expression string length bug
kharold23 Jun 18, 2024
006d604
clang formatting
kharold23 Jun 18, 2024
02dd225
Clang formatting (again)
kharold23 Jun 18, 2024
7313593
Requested changes
kharold23 Jul 12, 2024
6ca5d97
Add results of the time dependent test cases
kharold23 Jul 12, 2024
ac20185
Merge branch 'SimVascular-master' into time-dependent
kharold23 Jul 13, 2024
62d8fd5
Update exprtk time variable handling
kharold23 Jul 22, 2024
37a8021
Update test_solver.py
kharold23 Jul 25, 2024
12ebb96
Add constants pi, e, and inf
kharold23 Jul 30, 2024
267e419
Clang Formatting
kharold23 Jul 24, 2024
4a65796
Update block generation
kharold23 Jul 31, 2024
7aa16de
Enable Sanitizers for Debugging
kharold23 Jul 31, 2024
c1f900b
Add macos-latest test
kharold23 Jul 31, 2024
11f8692
Update test_macos.yml
kharold23 Jul 31, 2024
808bd97
Update test_macos.yml
kharold23 Jul 31, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/codechecks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This workflow checks for compliance with the Google C++ style guide.
name: Codechecks
on: [push, pull_request]
on: [pull_request]
jobs:
clang-format:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This workflow builds and deploys the html documentation for svZeroDSolver.
name: Documentation
on: [push, pull_request]
on: [pull_request]
permissions:
contents: write
jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow builds and tests svZeroDSolver. It is built and tested on
# different versions of ubuntu and macOS.
name: Build and test
on: [push, pull_request]
on: [pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/test_macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow builds and tests svZeroDSolver. It is built and tested on
# different versions of ubuntu and macOS.
name: Test Macos_latest
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
- name: Build using CMake
run: |
mkdir Release
cd Release
cmake -DCMAKE_BUILD_TYPE=DEBUG -DENABLE_DISTRIBUTION=ON ..
make -j2
- name: Test build
run: |
pwd
cd tests/cases
../../Release/svzerodsolver pulsatileFlow_R_RCR_mean.json results.csv
rm results.csv
29 changes: 29 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
cmake_minimum_required(VERSION 3.22)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

project(svZeroDSolver)

Expand All @@ -57,6 +60,32 @@ if(ENABLE_COVERAGE)
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
endif()

# Enable sanitizer build
# -----------------------------------------------------------------------------
set(ENABLE_SANITIZERS OFF CACHE BOOL "Enable sanitizer build")
if ((ENABLE_SANITIZERS) AND (CMAKE_BUILD_TYPE STREQUAL "Debug"))
message("Enabling sanitizers: ASAN, LSAN, USAN")

add_compile_options( -fsanitize=address )
add_compile_options( -fsanitize=leak )
add_compile_options( -fsanitize=undefined )
add_compile_options( -fno-omit-frame-pointer )

add_link_options ( -fsanitize=address )
add_link_options ( -fsanitize=leak )
add_link_options ( -fsanitize=undefined )
add_link_options ( -fno-omit-frame-pointer )

# add_compile_options( -fsanitize=memory )
# add_compile_options( -fsanitize-memory-track-origins )
# add_compile_options( -fsanitize=fuzzer-no-link )
# add_link_options ( -fsanitize=memory )
# add_link_options ( -fsanitize-memory-track-origins )
# add_link_options ( -fsanitize=fuzzer-no-link )

#set(CMAKE_EXE_LINKER_FLAGS -fuse-ld=gold)
endif()

# -----------------------------------------------------------------------------
# Set the location to store the binaries and libraries created by this project.
# -----------------------------------------------------------------------------
Expand Down
Loading
Loading