defineDynamics in multiscalarField2D

hi everyone
i want to apply multiScalarField2D to cavity2D but I have a problem when running my code.

error: no matching function for call to ‘defineDynamics(plb::MultiBlockLattice2D<double, plb::descriptors::D2Q9Descriptor>&, plb::MultiScalarField2D&, plb::NoDynamics<int, plb::descriptors::D2Q9Descriptor>*, int)’
79 | defineDynamics(lattice, field1, new NoDynamics<int,DESCRIPTOR>, 2);

any help will be appreciated.

Hi…
It seems like you have not specified the datatype while creating MultiScalarField2D object.
Please go through the definition of defineDynamics function you are calling.
General form of plb::MultiScalarField2D& object is : plb::MultiScalarField2D<int> &Mask

So while defining the objects, specify the datatypes accordingly. In this case it will be ‘int’ i guess.
MultiScalarField2D Mask(parameters.getNx(), parameters.getNy());