Skip to content

Reply To: An issue when running parallel simulations

#8409
avrachan1
Participant

Dear Adrian,

Thanks!

When I replace

B.definePopulations(bulkIndicator,analyticalFpopA);
with
B.definePopulations(bulkIndicator,populationPF);
I am getting errors, what is the correct way to define populations directly from SuperF ?

####################

1 olb-1.6r0/src/core/blockLattice.hh:142:9: error: no matching function for call to object of type ‘BlockF<double, D2Q5<>::d>’ (aka ‘olb::BlockF2D<double>’)
2 popF(pop, loc);
3 ^~~~
4 olb-1.6r0/src/core/superLattice.hh:321:17: note: in instantiation of member function ‘olb::BlockLattice<double, olb::descriptors::D2Q5<>>::definePopulations’ requested here
5 _block[iC]->definePopulations(indicator->getBlockIndicatorF(iC), Pop.getBlockF(iC));
6 ^
7 error.cpp:175:4: note: in instantiation of member function ‘olb::SuperLattice<double, olb::descriptors::D2Q5<>>::definePopulations’ requested here
8 B.definePopulations(bulkIndicator,populationPF);
9 ^
10 olb-1.6r0/src/functors/genericF.h:81:16: note: candidate function not viable: no known conversion from ‘LatticeR<D2Q5<>::d>’ (aka ‘Vector<int, 2U>’) to ‘const int *’ for 2nd argument
11 virtual bool operator() (T output[], const S input[])=0;
12 ^
13 olb-1.6r0/src/functors/genericF.h:87:8: note: candidate function not viable: no known conversion from ‘LatticeR<D2Q5<>::d>’ (aka ‘Vector<int, 2U>’) to ‘int’ for 2nd argument
14 bool operator() (T output[], S input0);
15 ^
16 olb-1.6r0/src/functors/genericF.h:86:8: note: candidate function not viable: requires single argument ‘output’, but 2 arguments were provided
17 bool operator() (T output[]);
18 ^
19 olb-1.6r0/src/functors/genericF.h:88:8: note: candidate function not viable: requires 3 arguments, but 2 were provided
20 bool operator() (T output[], S input0, S input1);
21 ^
22 olb-1.6r0/src/functors/genericF.h:89:8: note: candidate function not viable: requires 4 arguments, but 2 were provided
23 bool operator() (T output[], S input0, S input1, S input2);
24 ^
25 olb-1.6r0/src/functors/genericF.h:90:8: note: candidate function not viable: requires 5 arguments, but 2 were provided
26 bool operator() (T output[], S input0, S input1, S input2, S input3);
27 ^
28 2 warnings and 1 error generated.
29 make: *** [error.o] Error 1
30