[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] r5492 - in /trunk/getfem: doc/sphinx/source/userdoc/gas
From: |
Yves . Renard |
Subject: |
[Getfem-commits] r5492 - in /trunk/getfem: doc/sphinx/source/userdoc/gasm_high.rst src/getfem_generic_assembly.cc |
Date: |
Wed, 30 Nov 2016 07:37:26 -0000 |
Author: renard
Date: Wed Nov 30 08:37:24 2016
New Revision: 5492
URL: http://svn.gna.org/viewcvs/getfem?rev=5492&view=rev
Log:
minor fixes
Modified:
trunk/getfem/doc/sphinx/source/userdoc/gasm_high.rst
trunk/getfem/src/getfem_generic_assembly.cc
Modified: trunk/getfem/doc/sphinx/source/userdoc/gasm_high.rst
URL:
http://svn.gna.org/viewcvs/getfem/trunk/getfem/doc/sphinx/source/userdoc/gasm_high.rst?rev=5492&r1=5491&r2=5492&view=diff
==============================================================================
--- trunk/getfem/doc/sphinx/source/userdoc/gasm_high.rst (original)
+++ trunk/getfem/doc/sphinx/source/userdoc/gasm_high.rst Wed Nov 30
08:37:24 2016
@@ -684,7 +684,7 @@
Element extrapolation transformation
------------------------------------
-A specific transformation (see previous section) is defined in order to allows
the evaluation of certain quantities by extrapolation with respect to another
element (in general a neighbour element). This is not strictly speaking a
transformation since the point remain unchanged, but the evaluation is just
made in another element extrapolating the shape functions outside this element.
This transformation is used for stabilization term in fictitious domain
applications (with cut elements) where it is more robust to extrapolate some
quantities on a neighbour element having a sufficiently large intersection with
the real domain than evaluating them on the current element if it has a small
intersection with the real domain. The functions allowing to add such a
transformation to a workspace or a model are::
+A specific transformation (see previous section) is defined in order to allows
the evaluation of certain quantities by extrapolation with respect to another
element (in general a neighbour element). This is not strictly speaking a
transformation since the point location remain unchanged, but the evaluation is
made on another element extrapolating the shape functions outside it. This
transformation is used for stabilization term in fictitious domain applications
(with cut elements) where it is more robust to extrapolate some quantities on a
neighbour element having a sufficiently large intersection with the real domain
than evaluating them on the current element if it has a small intersection with
the real domain. The functions allowing to add such a transformation to a model
or a workspace are::
add_element_extrapolation_transformation
(md, transname, my_mesh, std::map<size_type, size_type> &elt_corr);
@@ -692,9 +692,9 @@
add_element_extrapolation_transformation
(workspace, transname, my_mesh, std::map<size_type, size_type> &elt_corr);
-The map elt_corr should contains the correspondances between the elements
where the transformation is to be applied and the respective elements where the
extrapolation has to be made. On the element not listed in the map, no
transformation is applied and the evaluation is made normally on the current
element.
-
-The following functions allows to change the element correspondance of an
already added element extrapolation transformation::
+The map elt_corr should contain the correspondances between the elements where
the transformation is to be applied and the respective elements where the
extrapolation has to be made. On the element not listed in the map, no
transformation is applied and the evaluation is performed normally on the
current element.
+
+The following functions allow to change the element correspondance of a
previously added element extrapolation transformation::
set_element_extrapolation_correspondance
(md, transname, std::map<size_type, size_type> &elt_corr);
Modified: trunk/getfem/src/getfem_generic_assembly.cc
URL:
http://svn.gna.org/viewcvs/getfem/trunk/getfem/src/getfem_generic_assembly.cc?rev=5492&r1=5491&r2=5492&view=diff
==============================================================================
--- trunk/getfem/src/getfem_generic_assembly.cc (original)
+++ trunk/getfem/src/getfem_generic_assembly.cc Wed Nov 30 08:37:24 2016
@@ -14272,6 +14272,8 @@
auto cpext
= dynamic_cast<const interpolate_transformation_element_extrapolation *>
(pit);
+ GMM_ASSERT1(cpext,
+ "The transformation is not of element extrapolation type");
const_cast<interpolate_transformation_element_extrapolation *>(cpext)
->set_correspondance(elt_corr);
}
@@ -14285,6 +14287,8 @@
auto cpext
= dynamic_cast<const interpolate_transformation_element_extrapolation *>
(pit);
+ GMM_ASSERT1(cpext,
+ "The transformation is not of element extrapolation type");
const_cast<interpolate_transformation_element_extrapolation *>(cpext)
->set_correspondance(elt_corr);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Getfem-commits] r5492 - in /trunk/getfem: doc/sphinx/source/userdoc/gasm_high.rst src/getfem_generic_assembly.cc,
Yves . Renard <=