Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement FE_Poly::memory_consumption so that memory_consumption work…
…s for FE_Q and FE_DGQ
- Loading branch information
Showing
22 changed files
with
187 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
New: The method memory_consumption has been implemented in and added | ||
to a variety of classes, e.g. FE_DGQ. | ||
<br> | ||
(Peter Munch, 2019/12/22) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// --------------------------------------------------------------------- | ||
// | ||
// Copyright (C) 2019 by the deal.II authors | ||
// | ||
// This file is part of the deal.II library. | ||
// | ||
// The deal.II library is free software; you can use it, redistribute | ||
// it, and/or modify it under the terms of the GNU Lesser General | ||
// Public License as published by the Free Software Foundation; either | ||
// version 2.1 of the License, or (at your option) any later version. | ||
// The full text of the license can be found in the file LICENSE.md at | ||
// the top level directory of deal.II. | ||
// | ||
// --------------------------------------------------------------------- | ||
|
||
|
||
// Test memory_consumption of FE_Q and FE_DGQ. | ||
|
||
|
||
#include <deal.II/fe/fe_dgq.h> | ||
#include <deal.II/fe/fe_q.h> | ||
|
||
#include "../tests.h" | ||
|
||
using namespace dealii; | ||
|
||
template <int dim> | ||
void | ||
test(const FiniteElement<dim> &fe) | ||
{ | ||
deallog << fe.get_name() << " " << fe.memory_consumption() << std::endl; | ||
} | ||
|
||
template <int dim> | ||
void | ||
tests() | ||
{ | ||
// FE_Q | ||
for (unsigned int i = 1; i < 4; i++) | ||
test(FE_Q<dim>(i)); | ||
|
||
// FE_DGQ | ||
for (unsigned int i = 0; i < 4; i++) | ||
test(FE_DGQ<dim>(i)); | ||
} | ||
|
||
int | ||
main() | ||
{ | ||
initlog(); | ||
|
||
{ | ||
deallog.push("1d"); | ||
tests<1>(); | ||
deallog.pop(); | ||
} | ||
{ | ||
deallog.push("2d"); | ||
tests<2>(); | ||
deallog.pop(); | ||
} | ||
{ | ||
deallog.push("3d"); | ||
tests<3>(); | ||
deallog.pop(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
DEAL:1d::FE_Q<1>(1) 1770 | ||
DEAL:1d::FE_Q<1>(2) 1979 | ||
DEAL:1d::FE_Q<1>(3) 2204 | ||
DEAL:1d::FE_DGQ<1>(0) 1557 | ||
DEAL:1d::FE_DGQ<1>(1) 1750 | ||
DEAL:1d::FE_DGQ<1>(2) 1959 | ||
DEAL:1d::FE_DGQ<1>(3) 2184 | ||
DEAL:2d::FE_Q<2>(1) 4062 | ||
DEAL:2d::FE_Q<2>(2) 4827 | ||
DEAL:2d::FE_Q<2>(3) 5880 | ||
DEAL:2d::FE_DGQ<2>(0) 3573 | ||
DEAL:2d::FE_DGQ<2>(1) 4006 | ||
DEAL:2d::FE_DGQ<2>(2) 4695 | ||
DEAL:2d::FE_DGQ<2>(3) 5640 | ||
DEAL:3d::FE_Q<3>(1) 10678 | ||
DEAL:3d::FE_Q<3>(2) 14499 | ||
DEAL:3d::FE_Q<3>(3) 23432 | ||
DEAL:3d::FE_DGQ<3>(0) 9525 | ||
DEAL:3d::FE_DGQ<3>(1) 10438 | ||
DEAL:3d::FE_DGQ<3>(2) 12807 | ||
DEAL:3d::FE_DGQ<3>(3) 17352 |