GithubHelp home page GithubHelp logo

kronbichler / advection_miniapp Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 5.0 292 KB

Advection solver with matrix-free evaluators with deal.II

License: GNU Lesser General Public License v2.1

CMake 0.43% C++ 99.57%

advection_miniapp's People

Contributors

kronbichler avatar peterrum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

advection_miniapp's Issues

Fix for AdvectionOperation<dim, fe_degree>::reinit and g++ 10.3 ?

When building advection_solver with g+ 10.3 and deal.ii 9.2.0 (on Ubuntu 21.04), the compiler complains at advection_solver.cc:459, can't find a matching MatrixFree::reinit interface.

But if I applied the following change, advection_solver builds and runs fine.

diff --git a/advection_solver.cc b/advection_solver.cc
index e9fead6..a79da53 100644
--- a/advection_solver.cc
+++ b/advection_solver.cc
@@ -457,7 +457,7 @@ namespace DGAdvection
     AffineConstraints<double> dummy;
     dummy.close();
     data.reinit(mapping,
-                {{&dof_handler}},
+                std::vector<const DoFHandler<dim> *>{{&dof_handler}},
                 std::vector<const AffineConstraints<double> *>{{&dummy}},
                 std::vector<Quadrature<1>>{{quadrature, quadrature_mass}},
                 additional_data);
-- 
2.30.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.