Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
fd05860
Python docstrings tests: don't test for CellmlElementType.
agarny Aug 5, 2024
0207ff9
Code generator: use different arrays for constants, computed constant…
agarny Jul 12, 2024
329b01f
Generator: use different arrays for constants, computed constants, an…
agarny Aug 7, 2024
56a8658
Generator: use different arrays for constants, computed constants, an…
agarny Aug 7, 2024
94515cc
Generator: use different arrays for constants, computed constants, an…
agarny Aug 7, 2024
8488c49
Generator: use different arrays for constants, computed constants, an…
agarny Aug 7, 2024
5287d5b
Generator: use computed_constants and not computedConstants in Python.
agarny Aug 7, 2024
82c104e
Generator profile: bumped the C and Python versions.
agarny Aug 7, 2024
0f8fbf3
Tests: automatically generate the expected file contents.
agarny Aug 8, 2024
c2504d7
Generator profile: added setters/getters for constants, computed cons…
agarny Aug 7, 2024
01bfdec
Analyser: track the constant, computed constant, and algebraic indexes.
agarny Aug 8, 2024
09fcc1f
Some minor cleaning up.
agarny Aug 8, 2024
a7c7774
Generator: added an external array.
agarny Aug 8, 2024
ef86447
Updated JavaScript tests.
agarny Aug 8, 2024
9d7174d
Analyser: keep track of computed constants and external variables for…
agarny Aug 8, 2024
60b26bc
Analyser: some minor cleaning up.
agarny Aug 8, 2024
05aa338
AnalyserModel: keep track of the constants, computed constants, and e…
agarny Aug 8, 2024
7c0d8a1
AnalyserEquation: keep track of states and constants.
agarny Aug 9, 2024
9f8bf25
Generator: generate the CONSTANT_INFO, COMPUTED_CONSTANT_INFO, ALGEBR…
agarny Aug 12, 2024
4bc05e8
Generator: don't need to mention the type of a variable in a XXX_INFO…
agarny Aug 14, 2024
330f6d6
GeneratorProfile: extracted generator profile_p.h.
agarny Aug 14, 2024
aaaeed3
Generator: updated the createXxxArray() methods.
agarny Aug 14, 2024
46e4e93
Generator: updated the signature of our initialiseVariables() method.
agarny Aug 15, 2024
fa807fb
GeneratorProfile: fixed a small issue with our Python profile.
agarny Aug 15, 2024
71ae73b
Generator: initialise things in initialiseVariables() in the order of…
agarny Aug 15, 2024
b1b7536
Generator: initialise all computed constants in computeComputedConsta…
agarny Aug 15, 2024
a46dbca
GeneratorProfile: added the external array string.
agarny Aug 16, 2024
0a05ef9
Generator: don't initialise our external variables in initialiseVaria…
agarny Aug 16, 2024
b514746
Analyser: a variable using an NLA should always be an algebraic varia…
agarny Aug 16, 2024
153b4b5
Analyser: some minor cleaning up.
agarny Aug 16, 2024
19126a8
Analyser: properly set the index of external variables.
agarny Aug 16, 2024
841c676
Analyser: put some struct/class definitions in a corresponding privat…
agarny Aug 16, 2024
8afeb5c
Analyser: simplified things.
agarny Aug 16, 2024
40d3fb4
Generator: make sure that constants are initialised when they are nee…
agarny Aug 17, 2024
b32d169
Generator: renamed the "external" array to "externals".
agarny Aug 19, 2024
8cba9cd
Generator: "initialise" computed constants in initialiseVariables().
agarny Aug 19, 2024
65e1d18
Generator: initialise things in initialiseVariables() in the order of…
agarny Aug 19, 2024
327225a
GeneratorProfile: pass the computedConstants array to initialiseVaria…
agarny Aug 19, 2024
d1020eb
GeneratorProfile: don't need to pass the VOI to initialiseVariables().
agarny Aug 19, 2024
f3bbce3
Tests: removed unneeded generated C/Python files.
agarny Aug 19, 2024
1f09630
Generator: make sure that constants are initialised when they are nee…
agarny Aug 19, 2024
b54f688
GeneratorProfile: use the constants, computed constants, and algebrai…
agarny Aug 19, 2024
d165208
GeneratorProfile: use the constants, computed constants, and algebrai…
agarny Aug 19, 2024
183d531
Tests: some minor cleaning up.
agarny Aug 20, 2024
54e6673
Some minor cleaning up.
agarny Aug 21, 2024
62dc092
GeneratorProfile: use the externals array to retrieve the value of ex…
agarny Aug 20, 2024
4bf1afc
Addressed various coverage issues as a result of our work on issue #1…
agarny Aug 20, 2024
68ad0fc
Some minor cleaning up.
agarny Aug 28, 2024
ff5a1a2
Analyser: improved unit scaling.
agarny Aug 27, 2024
c83f5c7
Some minor cleaning up.
agarny Sep 2, 2024
26ba852
Generator: make sure that NLA systems have access to external variables.
agarny Sep 3, 2024
68c9895
Generator: fixed a small issue with our Python profile.
agarny Sep 5, 2024
f0957e0
Tests: added a test to generate some code for the DAE version of the …
agarny Sep 5, 2024
49b3a4f
Tests: changed the external variable in algebraicEqnWithOneNonIsolate…
agarny Sep 6, 2024
6b74014
Python: improved the API documentation.
agarny Sep 10, 2024
dcbd038
Some minor cleaning up.
agarny Sep 10, 2024
e3ce0d1
Merge branch 'main' into issue1243.
agarny Oct 7, 2024
a7addbf
Generator: removed the `model()` and `setModel()` APIs.
agarny Oct 16, 2024
9acc693
Merge branch 'issue1243' into issue1244
agarny Oct 17, 2024
9ebd686
Generator: specify tracked/untracked variables.
agarny Oct 17, 2024
cb7cb1f
API documentation: some minor cleaning up.
agarny Oct 17, 2024
5a69d69
AnalyserModel: added a way to retrieve an AnalyserVariable object fro…
agarny Oct 17, 2024
efd13dc
CMake: don't use hints to find llvm-cov and llvm-profdata.
agarny Oct 17, 2024
cfbf664
CMake: let the user know where the coverage report can be found.
agarny Oct 17, 2024
f8491c7
Generator: specify tracked/untracked variables.
agarny Oct 18, 2024
327e00e
Generator: specify tracked/untracked variables.
agarny Oct 18, 2024
5d83e85
Generator: specify tracked/untracked variables.
agarny Oct 18, 2024
d5ffe1a
Generator: specify tracked/untracked variables.
agarny Oct 18, 2024
7d6c8e2
Updated our Python and JavaScript bindings.
agarny Oct 21, 2024
3ac893b
Generator: test the code generation when tracking no variables at all.
agarny Oct 21, 2024
b9492a5
Merge branch 'python' into issue1260.
agarny Oct 21, 2024
e917ba4
Merge branch 'issue1257' into issue1260.
agarny Oct 21, 2024
f1fa3ed
Merge branch 'issue1251' into issue1260.
agarny Oct 21, 2024
8175278
Merge branch 'issue1243' into issue1260
agarny Oct 21, 2024
c0eef39
Some minor cleaning up.
agarny Oct 21, 2024
e739d34
Merge branch 'issue1251' into issue1243
agarny Oct 21, 2024
8563e4b
Some minor cleaning up.
agarny Oct 21, 2024
dba1002
Merge branch 'issue1243' into issue1260.
agarny Oct 21, 2024
ddbb845
Merge branch 'main' into issue1243
agarny Oct 21, 2024
9c70e41
Merge branch 'issue1243' into issue1260.
agarny Oct 21, 2024
aeea86c
Some minor cleaning up.
agarny Oct 21, 2024
e2d73da
Merge branch 'issue1251' into issue1243
agarny Oct 21, 2024
c7a98fa
Merge branch 'issue1243' into issue1260.
agarny Oct 21, 2024
61f9b08
Merge branch 'issue1251' into issue1243.
agarny Oct 21, 2024
fe0fb28
Merge branch 'issue1243' into issue1260.
agarny Oct 21, 2024
4c4842f
Some minor cleaning up.
agarny Oct 22, 2024
228e25a
Merge branch 'issue1243' into issue1260.
agarny Oct 22, 2024
76ec2b9
Merge branch 'issue1260' into issue1244
agarny Oct 22, 2024
cabb263
Some minor cleaning up.
agarny Oct 23, 2024
32a5d53
Generator: doIsTrackedVariable() should always return true if a varia…
agarny Oct 23, 2024
804c2c4
Generator: take into account tracked/untracked variables when generat…
agarny Oct 23, 2024
8fda60d
Merge branch 'main' into issue1243
agarny Oct 23, 2024
7b20da1
Merge branch 'main' into issue1244
agarny Oct 23, 2024
712f8fb
Merge branch 'issue1244' of https://github.com/agarny/libcellml into …
agarny Oct 23, 2024
9a65414
GeneratorProfile: removed unneeded methods.
agarny Oct 26, 2024
ee3a7f1
AnalyserEquation: renamed a coupe of equation types.
agarny Oct 23, 2024
55b9664
Generator: a VOI and a state are always considered to be tracked.
agarny Oct 25, 2024
9c34561
GeneratorProfile: added a way to declare an untracked variable.
agarny Oct 26, 2024
ba471ff
Generator: take into account tracked/untracked variables when generat…
agarny Oct 23, 2024
723d025
Merge branch 'main' into issue1244
agarny Oct 26, 2024
315a007
Merge branch 'main' into issue1243
agarny Oct 26, 2024
b2748c5
Generator: take into account tracked/untracked variables when generat…
agarny Oct 27, 2024
4eb0eec
Merge branch 'main' into issue1244
agarny Oct 27, 2024
4c093e1
Merge branch 'main' into issue1243
agarny Oct 27, 2024
d259602
Generator: take into account tracked/untracked variables when generat…
agarny Oct 27, 2024
858f45f
Merge branch 'issue1251' into issue1243
agarny Oct 28, 2024
c29007f
Merge branch 'issue1243' into issue1244.
agarny Oct 28, 2024
b4b0e7a
Generator: take into account tracked/untracked variables when generat…
agarny Oct 28, 2024
dbe8852
Merge branch 'issue1251' into issue1243.
agarny Oct 28, 2024
006f0f0
Merge branch 'issue1243' into issue1244.
agarny Oct 28, 2024
3ae3636
Generator: external variables shouldn't be included when tracking/unt…
agarny Oct 29, 2024
dd35081
Generator: take into account tracked/untracked variables when generat…
agarny Oct 29, 2024
86a6280
Merge branch 'issue1251' into issue1243.
agarny Oct 29, 2024
68ef9da
Merge branch 'issue1243' into issue1244.
agarny Oct 29, 2024
59df199
Some minor cleaning up.
agarny Oct 30, 2024
e2ea198
Tests: fixed tracking/untracking tests for our bindings.
agarny Oct 29, 2024
c94e122
Generator: let the user know if there were some issues when trying to…
agarny Oct 29, 2024
7f16c3a
Generator: removed some tracking/untracking features related to exter…
agarny Oct 29, 2024
4f1d106
Tests: tests the generated code for tracked/untracked variables using…
agarny Oct 29, 2024
2365d5e
AnalyserVariable: don't make a "true" constant's dummy equation acces…
agarny Oct 30, 2024
1fff51d
Generator: report an issue, if needed, when tracking/untracking a var…
agarny Oct 30, 2024
d4fdf65
Generator: various minor improvements.
agarny Oct 31, 2024
33bab8f
Generator: don't untrack a variable that is needed to compute an exte…
agarny Oct 31, 2024
b9eda39
Tests: some minor cleaning up.
agarny Oct 31, 2024
7be6561
Tests: improved some tests.
agarny Oct 31, 2024
5892bb9
Tests: renamed some files.
agarny Oct 31, 2024
46681b7
Generator: generate needed algebraic equations (for untracked variabl…
agarny Oct 31, 2024
206a683
Generator: added a control test for our DAE tracking tests.
agarny Oct 31, 2024
b4936d8
Tests: cleaned the expected tracking-related output.
agarny Oct 31, 2024
66ef714
Generator: generated some wrong indices when untracking some variables.
agarny Nov 4, 2024
856046f
Generator: various speed improvements.
agarny Nov 5, 2024
fc80910
Merge branch 'issue1251' into issue1243.
agarny Nov 5, 2024
2c8538e
Merge branch 'issue1243' into issue1244.
agarny Nov 5, 2024
b7d50f1
Merge branch 'issue1251' into issue1243.
agarny Nov 5, 2024
d723987
Merge branch 'issue1243' into issue1244.
agarny Nov 5, 2024
15c648a
Merge branch 'main' into issue1243
agarny Nov 9, 2024
fea8420
Merge branch 'main' into issue1244
agarny Nov 9, 2024
8aca12d
Merge branch 'main' into issue1243
agarny Nov 10, 2024
dcc8024
Merge branch 'main' into issue1244
agarny Nov 10, 2024
dfc6ea7
Merge branch 'main' into issue1243
agarny Nov 10, 2024
c469f81
Merge branch 'main' into issue1244
agarny Nov 10, 2024
5c0d33f
Merge branch 'issue1251' into issue1243
agarny Nov 14, 2024
d1c8fb5
Some minor cleaning up following the last merge.
agarny Nov 14, 2024
54dcca7
Merge branch 'issue1243' into issue1244.
agarny Nov 14, 2024
9ff4043
Tests: updated our generated code following the last merge.
agarny Nov 14, 2024
113d562
Merge branch 'issue1251' into issue1243.
agarny Nov 15, 2024
b26676b
Fixed macro issue on some Linux systems.
agarny Nov 15, 2024
189b561
Merge branch 'issue1251' into issue1243.
agarny Nov 24, 2024
b9c8ca3
Merge branch 'issue1243' into issue1244.
agarny Nov 24, 2024
e832e17
Merge branch 'issue1251' into issue1243.
agarny Dec 5, 2024
71a3ab4
Merge branch 'issue1243' into issue1244.
agarny Dec 5, 2024
8b590e7
Reverted commit 6a48c0fa8.
agarny May 14, 2025
7473d64
Reverted commit 6a48c0f.
agarny May 14, 2025
04d8d15
Some minor cleaning up.
agarny Jul 17, 2025
b1eb437
Merge branch 'main' into issue1243.
agarny Jul 22, 2025
46135be
Merge branch 'main' into issue1244.
agarny Jul 22, 2025
3caf60f
Merge branch 'main' into issue1243.
agarny Jul 22, 2025
982da79
Merge branch 'main' into issue1244.
agarny Jul 22, 2025
71fb08a
Merge branch 'main' into issue1243.
agarny Jul 22, 2025
4b68173
Merge branch 'main' into issue1244.
agarny Jul 22, 2025
db4dfdd
Merge branch 'main' into issue1243
agarny Sep 25, 2025
db4865c
Merge branch 'issue1243' into issue1244
agarny Sep 25, 2025
d44ecbd
Merge branch 'main' into issue1243.
agarny Oct 5, 2025
1515299
Merge branch 'issue1243' into issue1244.
agarny Oct 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# OS X hidden system files
# macOS hidden system files
.DS_Store

# Ignore the build directory
build/

# Debugging files
*.profraw

# Eclipse project files
.project
.pydevproject
Expand Down
10 changes: 10 additions & 0 deletions cmake/common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -313,3 +313,13 @@ function(redhat_based _RESULT)
endif()
set(${_RESULT} ${_REDHAT_BASED} PARENT_SCOPE)
endfunction()

function(apply_libxml2_settings _TARGET)
if(HAVE_LIBXML2_CONFIG)
target_link_libraries(${_TARGET} PUBLIC ${LIBXML2_TARGET_NAME})
else()
target_include_directories(${_TARGET} PUBLIC ${LIBXML2_INCLUDE_DIR} ${ZLIB_INCLUDE_DIRS})
target_link_libraries(${_TARGET} PUBLIC ${LIBXML2_LIBRARIES} ${ZLIB_LIBRARIES})
target_compile_definitions(${_TARGET} PUBLIC ${LIBXML2_DEFINITIONS})
endif()
endfunction()
11 changes: 4 additions & 7 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ set(GIT_HEADER_FILES
${CMAKE_CURRENT_SOURCE_DIR}/debug.h
${CMAKE_CURRENT_SOURCE_DIR}/entity_p.h
${CMAKE_CURRENT_SOURCE_DIR}/generator_p.h
${CMAKE_CURRENT_SOURCE_DIR}/generatorprofile_p.h
${CMAKE_CURRENT_SOURCE_DIR}/generatorprofilesha1values.h
${CMAKE_CURRENT_SOURCE_DIR}/generatorprofiletools.h
${CMAKE_CURRENT_SOURCE_DIR}/internaltypes.h
Expand Down Expand Up @@ -196,13 +197,7 @@ else()
target_include_directories(cellml PUBLIC ${ZLIB_INCLUDE_DIRS})
endif()

if(HAVE_LIBXML2_CONFIG)
target_link_libraries(cellml PUBLIC ${LIBXML2_TARGET_NAME})
else()
target_include_directories(cellml PUBLIC ${LIBXML2_INCLUDE_DIR} ${ZLIB_INCLUDE_DIRS})
target_link_libraries(cellml PUBLIC ${LIBXML2_LIBRARIES} ${ZLIB_LIBRARIES})
target_compile_definitions(cellml PUBLIC ${LIBXML2_DEFINITIONS})
endif()
apply_libxml2_settings(cellml)

# Use target compile features to propagate features to consuming projects.
target_compile_features(cellml PUBLIC cxx_std_17)
Expand Down Expand Up @@ -238,6 +233,8 @@ target_include_directories(cellml_debug_utilities
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/api>
)

apply_libxml2_settings(cellml_debug_utilities)

set_target_properties(cellml_debug_utilities PROPERTIES
CXX_VISIBILITY_PRESET hidden
DEBUG_POSTFIX d
Expand Down
Loading
Loading