Skip to content

error compile in olb1.4 (ok in olb 1.2)

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB Bug Reports error compile in olb1.4 (ok in olb 1.2)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6119
    LaurentDelaon
    Participant

    hi everybody,

    this code compiling in olb1.2 not in olb1.4 :

    // Set up the geometry of the simulation
    void prepareLattice( SuperLattice2D<T,DESCRIPTOR>& sLattice,
                         UnitConverter<T, DESCRIPTOR> const& converter,
                         Dynamics<T, DESCRIPTOR>& bulkDynamics,
                         sOnLatticeBoundaryCondition2D<T,DESCRIPTOR>& sBoundaryCondition,
                         sOffLatticeBoundaryCondition2D<T,DESCRIPTOR>& offBc,
                         SuperGeometry2D<T>& superGeometry )
    {

    I obtain this error :

    cylinder2d-maquette.cpp: At global scope:
    cylinder2d-maquette.cpp:159:22: error: ‘sOnLatticeBoundaryCondition2D’ has not been declared
                          sOnLatticeBoundaryCondition2D<T,DESCRIPTOR>& sBoundaryCondition,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cylinder2d-maquette.cpp:159:51: error: expected ‘,’ or ‘...’ before ‘<’ token
                          sOnLatticeBoundaryCondition2D<T,DESCRIPTOR>& sBoundaryCondition,
                                                       ^
    cylinder2d-maquette.cpp: In function ‘void prepareLattice(olb::SuperLattice2D<double, olb::descriptors::D2Q9<> >&, const olb::UnitConverter<double, olb::descriptors::D2Q9<> >&, olb::Dynamics<double, olb::descriptors::D2Q9<> >&, int)’:
    cylinder2d-maquette.cpp:170:28: error: ‘superGeometry’ was not declared in this scope
       sLattice.defineDynamics( superGeometry, 0, &instances::getNoDynamics<T, DESCRIPTOR>() );

    regards
    Laurent.

    #6135
    Adrian
    Keymaster

    Release 1.4 introduced new boundary setters for applying boundary conditions to the lattice. You can see this in the examples included by the release as well as the user guide.

    #6138
    LaurentDelaon
    Participant

    Hi Adrian

    I will read and try to do it.

    thank’s for your prompt reply.

    regards.
    Laurent.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.