[cig-commits] commit 1856 by bangerth to /var/svn/dealii/aspect
dealii.demon at gmail.com
dealii.demon at gmail.com
Sun Aug 25 20:36:43 PDT 2013
Revision 1856
Add a test for the plugin system.
A trunk/aspect/tests/plugin/
A trunk/aspect/tests/plugin/screen-output
A trunk/aspect/tests/plugin.cc
A trunk/aspect/tests/plugin.prm
http://www.dealii.org/websvn/revision.php?repname=Aspect+Repository&path=%2F&rev=1856&peg=1856
Diff:
Added: trunk/aspect/tests/plugin/screen-output
===================================================================
--- trunk/aspect/tests/plugin/screen-output (rev 0)
+++ trunk/aspect/tests/plugin/screen-output 2013-08-26 03:35:32 UTC (rev 1856)
@@ -0,0 +1,20 @@
+Loading shared library <./libplugin.so>
+N6dealii13TriangulationILi2ELi2EEE N6aspect9SimulatorILi2EEE
+
+Number of active cells: 16 (on 3 levels)
+Number of degrees of freedom: 268 (162+25+81)
+
+*** Timestep 0: t=0 seconds
+ Solving temperature system... 0 iterations.
+ Rebuilding Stokes preconditioner...
+ Solving Stokes system... 17 iterations.
+
+ Postprocessing:
+
+Termination requested by criterion: end time
+
+
++---------------------------------------------+------------+------------+
++---------------------------------+-----------+------------+------------+
++---------------------------------+-----------+------------+------------+
+
Added: trunk/aspect/tests/plugin.cc
===================================================================
--- trunk/aspect/tests/plugin.cc (rev 0)
+++ trunk/aspect/tests/plugin.cc 2013-08-26 03:35:32 UTC (rev 1856)
@@ -0,0 +1,18 @@
+// make sure we can include deal.II and aspect files
+#include <aspect/simulator.h>
+#include <deal.II/grid/tria.h>
+
+#include <iostream>
+#include <typeinfo>
+
+// create a function that is run upon loading the plugin
+// and that produces some output
+int f()
+{
+ std::cout << typeid(dealii::Triangulation<2>).name() << " "
+ << typeid(aspect::Simulator<2>).name() << std::endl;
+ return 42;
+}
+
+// run this function by initializing a global variable by it
+int i = f();
Copied: trunk/aspect/tests/plugin.prm (from rev 1821, trunk/aspect/tests/sol_cx_2.prm)
===================================================================
--- trunk/aspect/tests/plugin.prm (rev 0)
+++ trunk/aspect/tests/plugin.prm 2013-08-26 03:35:32 UTC (rev 1856)
@@ -0,0 +1,118 @@
+# a test that simply verifies that the plugin described in
+# plugin.cc is indeed run
+
+
+set Additional shared libraries = ./libplugin.so
+
+
+
+set Dimension = 2
+
+set CFL number = 1.0
+set End time = 0
+set Output directory = output-plugin
+set Resume computation = false
+
+set Start time = 0
+
+set Adiabatic surface temperature = 0
+
+set Surface pressure = 0
+
+set Use years in output instead of seconds = false # default: true
+
+set Nonlinear solver scheme = IMPES
+
+subsection Boundary temperature model
+ set Model name = box
+end
+
+
+subsection Discretization
+ set Stokes velocity polynomial degree = 2
+
+ set Temperature polynomial degree = 2
+
+ set Use locally conservative discretization = false
+
+ subsection Stabilization parameters
+ set alpha = 2
+
+ set beta = 0.078
+
+ set cR = 0.5 # default: 0.11
+ end
+
+end
+
+
+subsection Geometry model
+ set Model name = box
+
+ subsection Box
+ set X extent = 1
+
+ set Y extent = 1
+
+ set Z extent = 1
+ end
+end
+
+
+subsection Gravity model
+ set Model name = vertical
+
+end
+
+
+subsection Initial conditions
+ set Model name = perturbed box
+
+end
+
+
+subsection Material model
+ set Model name = SolCx
+end
+
+
+subsection Mesh refinement
+ set Initial adaptive refinement = 0 # default: 2
+ set Initial global refinement = 2 # default: 2
+
+ set Strategy = density, temperature
+end
+
+
+subsection Model settings
+ set Include adiabatic heating = false
+ set Include shear heating = false # default: true
+
+ set Radiogenic heating rate = 0
+
+ set Fixed temperature boundary indicators = 0, 1
+
+ set Prescribed velocity boundary indicators =
+
+ set Tangential velocity boundary indicators = 0,1,2,3
+
+ set Zero velocity boundary indicators =
+end
+
+
+subsection Postprocess
+ set List of postprocessors =
+
+ subsection Depth average
+ set Time between graphical output = 1e8
+ end
+
+ subsection Visualization
+ set Number of grouped files = 0
+
+ set Output format = gnuplot
+
+ set Time between graphical output = 0 # default: 1e8
+ end
+end
+
More information about the CIG-COMMITS
mailing list