Skip to content

Commit efdb6f5

Browse files
committed
udf: clean minimal model
1 parent 653e9f0 commit efdb6f5

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

apps/libs/mc/public/mc/particles_container.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#ifndef __PARTICLES_CONTAINER_HPP__
22
#define __PARTICLES_CONTAINER_HPP__
33

4-
#include "biocma_cst_config.hpp"
54
#include <Kokkos_Core.hpp>
5+
#include <biocma_cst_config.hpp>
66
#include <common/common.hpp>
77
#include <common/env_var.hpp>
88
#include <common/has_serialize.hpp>

apps/udf_model/minimal.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515
namespace
1616
{
17-
using namespace Models;
18-
using FloatType = Models::UdfModel::FloatType;
19-
2017
void __attribute__((constructor)) on_load()
2118
{
19+
2220
std::printf("[UDF]: Minimal model loaded\r\n"); // NOLINT
2321
}
22+
using namespace Models;
23+
using FloatType = Models::UdfModel::FloatType;
2424

2525
constexpr FloatType glucose_to_biomass_yield = 0.5;
2626

@@ -34,9 +34,6 @@ namespace
3434

3535
constexpr FloatType phi_s_max =
3636
(l_dot_max * lin_density) / glucose_to_biomass_yield; // kg/s
37-
// Distributions
38-
const auto l_initial_dist = MC::Distributions::TruncatedNormal<float>(
39-
l_max_m * 0.75, l_max_m / 10., l_min_m, l_max_m);
4037

4138
enum class particle_var : uint8_t
4239
{

tools/cases.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
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>10</final_time>
68-
<number_particle>1000000</number_particle>
67+
<final_time>3600</final_time>
68+
<number_particle>1000</number_particle>
6969
<delta_time>0.1</delta_time>
7070
<results_file_name>debug</results_file_name>
7171
<number_exported_result>10</number_exported_result>

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/host_test/apps/cli/{appname}"
44+
return f"{ROOT}/builddir/gpu/apps/cli/{appname}"
4545

4646

4747
def mk_parser():

0 commit comments

Comments
 (0)