Skip to content

Commit 7362096

Browse files
committed
chore: minor changes
1 parent 8b632f8 commit 7362096

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

apps/cli/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ int parse_callback_ok(
150150
return -1;
151151
}
152152
h->set_logger(std::cref(logger));
153-
h->set_feed_constant(7.701635339554948e-06, 2, 0, 0);
153+
// h->set_feed_constant(7.701635339554948e-06, 2, 0, 0);
154154
const auto load_serde = user_params.load_serde;
155155
INTERPRETER_INIT
156156
{

apps/core/src/host_specific.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ namespace
206206
PROFILE_SECTION("host:sync_update")
207207
simulation.update_feed(current_time, d_t);
208208
simulation.step(d_t);
209+
// From here, contributions can be overwritten
209210
current_time += d_t;
210211
}
211212
sync_prepare_next(simulation);

apps/libs/models/public/models/fixed_length.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace Models
4646
MODEL_CONSTANT FloatType l_dot_max = 2e-6 / 3600.; // m
4747
MODEL_CONSTANT FloatType l_max_m = 2e-6; // m
4848
MODEL_CONSTANT FloatType l_min_m = l_max_m / 2.; // m
49-
MODEL_CONSTANT FloatType k = 1e-6; // m
49+
MODEL_CONSTANT FloatType k = 1e-3; // m
5050
MODEL_CONSTANT FloatType d_m = 0.6e-6; // m
5151
MODEL_CONSTANT FloatType lin_density =
5252
c_linear_density(static_cast<FloatType>(1000), d_m);
@@ -124,7 +124,7 @@ namespace Models
124124
const auto s = static_cast<FloatType>(c(0));
125125
const FloatType g = s / (k + s);
126126
const FloatType phi_s = phi_s_max * g;
127-
const FloatType ldot = l_dot_max * static_cast<FloatType>(g > 0.1);
127+
const FloatType ldot = l_dot_max * g;
128128
GET_PROPERTY(Self::particle_var::length) += d_t * ldot;
129129
//
130130
// const FloatType ldot = l_dot_max * g;

tools/cases.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@
6464
<!-- <cma_case_path>/app/cma_data/0d_gas/</cma_case_path> -->
6565
<!-- <cma_case_path >/home_pers/casale/Documents/thesis/cfd/sanofi/</cma_case_path> -->
6666
<!-- <cma_case_path >/home-local/casale/Documents/thesis/cfd-cma/cma_data/sanofi/</cma_case_path> -->
67-
<final_time>5000</final_time>
68-
<number_particle>100000</number_particle>
69-
<delta_time>1</delta_time>
67+
<final_time>6000</final_time>
68+
<number_particle>10000</number_particle>
69+
<delta_time>0.1</delta_time>
7070
<results_file_name>debug</results_file_name>
71-
<number_exported_result>10</number_exported_result>
72-
<model_name>fixed_length</model_name>
71+
<number_exported_result>50</number_exported_result>
72+
<model_name>monod</model_name>
7373
<!-- <initialiser_path /> -->
7474
<initialiser_path>./cma_data/0d_4s_init.h5</initialiser_path>
7575
</control>

tools/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_executable(instal: str, mpi: bool = True):
4141
if instal:
4242
return f"/opt/biomc/{appname}"
4343
else:
44-
return f"{ROOT}/builddir/gpu/apps/cli/{appname}"
44+
return f"{ROOT}/builddir/host/apps/cli/{appname}"
4545

4646

4747
def mk_parser():

0 commit comments

Comments
 (0)