Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
50478fa
expression_string (SEGFAULT)
kharold23 Apr 3, 2024
a97d591
Time dependent flow (fixed)
kharold23 Apr 13, 2024
77c08f4
Time-dependent pressure
kharold23 Apr 21, 2024
6653343
Add test cases and clean/format code
kharold23 May 9, 2024
b95a24d
Documentation
kharold23 May 16, 2024
6f0d120
Clang Format Fix?
kharold23 May 16, 2024
f32c36c
Clang-format fix?
kharold23 May 16, 2024
e89d8f9
Update Parameter.cpp
kharold23 May 17, 2024
806857a
Create "ThirdParty" directory and add expression compiling check
kharold23 Jun 11, 2024
4ad861b
exprtk improvements suggested by A. Partow
kharold23 Jun 17, 2024
3c662f0
Update handling for when function parameter is not given
kharold23 Jun 17, 2024
320275a
Fix symbol_table bug
kharold23 Jun 18, 2024
be8b0be
Expression string length bug
kharold23 Jun 18, 2024
eab1491
clang formatting
kharold23 Jun 18, 2024
e19035a
Clang formatting (again)
kharold23 Jun 18, 2024
8682a87
Requested changes
kharold23 Jul 12, 2024
d4c31f3
Add results of the time dependent test cases
kharold23 Jul 12, 2024
79f4df1
expression_string (SEGFAULT)
kharold23 Apr 3, 2024
498d2cb
Time dependent flow (fixed)
kharold23 Apr 13, 2024
81ed85c
Add test cases and clean/format code
kharold23 May 9, 2024
2d65fbf
Documentation
kharold23 May 16, 2024
91e0fa2
Clang Format Fix?
kharold23 May 16, 2024
16b219d
Clang-format fix?
kharold23 May 16, 2024
0faf850
Update Parameter.cpp
kharold23 May 17, 2024
3649efc
Create "ThirdParty" directory and add expression compiling check
kharold23 Jun 11, 2024
818d641
exprtk improvements suggested by A. Partow
kharold23 Jun 17, 2024
740dbe8
Update handling for when function parameter is not given
kharold23 Jun 17, 2024
5df90e7
Fix symbol_table bug
kharold23 Jun 18, 2024
fe78d36
Expression string length bug
kharold23 Jun 18, 2024
1f98055
clang formatting
kharold23 Jun 18, 2024
cdb6dd5
Clang formatting (again)
kharold23 Jun 18, 2024
5966b63
Requested changes
kharold23 Jul 12, 2024
0847af0
Update exprtk time variable handling
kharold23 Jul 22, 2024
93824b9
Add constants pi, e, and inf
kharold23 Jul 30, 2024
eadc43a
Clang Formatting
kharold23 Jul 24, 2024
b2dbe2b
Update block generation
kharold23 Jul 31, 2024
f1a1db4
Enable Sanitizers for Debugging
kharold23 Jul 31, 2024
f981a12
Add macos-latest test
kharold23 Jul 31, 2024
892e606
Update test_macos.yml
kharold23 Jul 31, 2024
90c372d
Update test_macos.yml
kharold23 Jul 31, 2024
5a666e6
Clang Formatting and Graphs for New Tests
kharold23 Oct 30, 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: macos-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
43 changes: 28 additions & 15 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ set(CMAKE_POLICY_VERSION_MINIMUM 3.5)
cmake_minimum_required(VERSION 3.5)
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 @@ -31,22 +34,32 @@ if(ENABLE_COVERAGE)
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
endif()

if (WIN32 AND MSVC)
# CMake ≥ 3.15 has a proper variable
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15")
set(CMAKE_MSVC_RUNTIME_LIBRARY
"MultiThreaded$<$<CONFIG:Debug>:Debug>")
else()
# CMake < 3.15: manually swap /MD → /MT in all flags for static
# versions of the runtime libraries
foreach(_var
CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS)
string(REPLACE "/MD" "/MT" ${_var} "${${_var}}")
endforeach()
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