Skip to content
Snippets Groups Projects
Commit 6fb12d50 authored by Kyle Klenk's avatar Kyle Klenk
Browse files

making commit from container

parent 0c4c2eb5
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
extern "C" { extern "C" {
void getVarSize(); void getVarSizes(int* num_bpar_vars, int* num_bvar_vars);
} }
\ No newline at end of file
...@@ -19,6 +19,13 @@ behavior gru_actor(stateful_actor<gru_state>* self, int refGRU, int indxGRU, ...@@ -19,6 +19,13 @@ behavior gru_actor(stateful_actor<gru_state>* self, int refGRU, int indxGRU,
[=](init_gru) { [=](init_gru) {
// Get the variable data length, we also need the type information // Get the variable data length, we also need the type information
aout(self) << "init GRU"; aout(self) << "init GRU";
getVarSizes(&self->state.num_bpar_vars,
&self->state.num_bvar_vars);
aout(self) << "NUM BPAR = " << self->state.num_bpar_vars << "\n";
aout(self) << "NUM BVAR = " << self->state.num_bvar_vars << "\n";
} }
......
!!! Lets try and build this for only the lateral flows case. !!! Lets try and build this for only the lateral flows case.
!!! If lateral flows exits use the code !!! If lateral flows exits use the code
module gru_actor module gru_actor
USE,intrinsic :: iso_c_binding
implicit none implicit none
! public::run_gru ! public::run_gru
...@@ -9,10 +11,18 @@ public::getVarSizes ...@@ -9,10 +11,18 @@ public::getVarSizes
contains contains
subroutine getVarSizes() bind(C,name="getVarSizes") subroutine getVarSizes(num_bpar_vars, &
USE globalData,only:bpar_meta,bvar_meta num_bvar_vars) bind(C,name="getVarSizes")
USE var_lookup,only:maxvarBpar, maxvarBvar
implicit none implicit none
integer(c_int), intent(out) :: num_bpar_vars
integer(c_int), intent(out) :: num_bvar_vars
num_bpar_vars = maxvarBpar
num_bvar_vars = maxvarBvar
end subroutine getVarSizes end subroutine getVarSizes
......
Run start time on system: ccyy=2022 - mm=08 - dd=17 - hh=22 - mi=42 - ss=53.312 Run start time on system: ccyy=2022 - mm=08 - dd=17 - hh=22 - mi=54 - ss=02.427
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment