Skip to content

Commit

Permalink
- export exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Apr 5, 2024
1 parent 4414974 commit e61b1df
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ add_executable(copasijs src/copasijs.cpp src/copasijs.h src/)
target_link_libraries(copasijs PUBLIC embind)
set(CMAKE_EXECUTABLE_SUFFIX ".js")

set(COPASIJS_OPT_FLAGS "-Os")
# set(COPASIJS_OPT_FLAGS "-O3")
set(COPASIJS_OPT_FLAGS "-Os -sNO_DISABLE_EXCEPTION_CATCHING -fexceptions")
# set(COPASIJS_OPT_FLAGS "-O3 -g -sASSERTIONS=2 -sNO_DISABLE_EXCEPTION_CATCHING -fexceptions")


set (WASM_FILE)
if (COPASIJS_SINGLE_FILE)
Expand Down
21 changes: 21 additions & 0 deletions dev/em-web.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

INSTALL_PREFIX=dist-web
export export ENVIRONMENT="web"
rm -rf $INSTALL_PREFIX


# execute the build script
./dev/em-build.sh


# copy the example files
cp examples/node/*.js $INSTALL_PREFIX

# copy test files
cp test/*.js $INSTALL_PREFIX

# run tests
cd $INSTALL_PREFIX
node test_node.js ../example_files/oscli.xml

ls -l .
6 changes: 6 additions & 0 deletions examples/vue-copasi-ts/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,17 @@ onMounted(async () => {

<template>
<main>
<div v-if="data == null">
<p>loading...</p>
</div>

<div v-else>
<VuePlotly :data="data" :layout="layout" :display-mode-bar="false"></VuePlotly>
<div>
<p>Model: {{ info?.model.name }}</p>
<p >COPASI Version: {{copasi?.version}}</p>
</div>
</div>
</main>
</template>

Expand Down

0 comments on commit e61b1df

Please sign in to comment.