\hypertarget{_core_2_algorithms_2_legacy_2_fields_2_mapping_2_map_field_data_from_node_to_elem_8cc}{\section{Core/\-Algorithms/\-Legacy/\-Fields/\-Mapping/\-Map\-Field\-Data\-From\-Node\-To\-Elem.cc File Reference}
\label{_core_2_algorithms_2_legacy_2_fields_2_mapping_2_map_field_data_from_node_to_elem_8cc}\index{Core/\-Algorithms/\-Legacy/\-Fields/\-Mapping/\-Map\-Field\-Data\-From\-Node\-To\-Elem.\-cc@{Core/\-Algorithms/\-Legacy/\-Fields/\-Mapping/\-Map\-Field\-Data\-From\-Node\-To\-Elem.\-cc}}
}
{\ttfamily \#include $<$Core/\-Algorithms/\-Legacy/\-Fields/\-Mapping/\-Map\-Field\-Data\-From\-Node\-To\-Elem.\-h$>$}\\*
{\ttfamily \#include $<$Core/\-Datatypes/\-Dense\-Matrix.\-h$>$}\\*
{\ttfamily \#include $<$Core/\-Datatypes/\-Legacy/\-Field/\-Field\-Information.\-h$>$}\\*
{\ttfamily \#include $<$Core/\-Algorithms/\-Base/\-Algorithm\-Preconditions.\-h$>$}\\*
{\ttfamily \#include $<$Core/\-Algorithms/\-Base/\-Algorithm\-Variable\-Names.\-h$>$}\\*
{\ttfamily \#include $<$Core/\-Geometry\-Primitives/\-Vector.\-h$>$}\\*
{\ttfamily \#include $<$Core/\-Datatypes/\-Legacy/\-Field/\-Field.\-h$>$}\\*
{\ttfamily \#include $<$Core/\-Datatypes/\-Legacy/\-Field/\-V\-Field.\-h$>$}\\*
{\ttfamily \#include $<$Core/\-Datatypes/\-Legacy/\-Field/\-V\-Mesh.\-h$>$}\\*
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$class D\-A\-T\-A $>$ }\\bool \hyperlink{_core_2_algorithms_2_legacy_2_fields_2_mapping_2_map_field_data_from_node_to_elem_8cc_a24a723e0063d556eb6baed703303ffd1}{Map\-Field\-Data\-From\-Node\-To\-Elem\-T} (const \hyperlink{class_s_c_i_run_1_1_core_1_1_algorithms_1_1_fields_1_1_map_field_data_from_node_to_elem_algo}{Map\-Field\-Data\-From\-Node\-To\-Elem\-Algo} $\ast$algo, \hyperlink{namespace_s_c_i_run_ae62efffc02ce1c5a899048c76e4411bd}{Field\-Handle} \&input, \hyperlink{namespace_s_c_i_run_ae62efffc02ce1c5a899048c76e4411bd}{Field\-Handle} \&output)
\begin{DoxyCompactList}\small\item\em This is the basic algorithm behind the mapping algorithm. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{_core_2_algorithms_2_legacy_2_fields_2_mapping_2_map_field_data_from_node_to_elem_8cc_a24a723e0063d556eb6baed703303ffd1}{\index{Core/\-Algorithms/\-Legacy/\-Fields/\-Mapping/\-Map\-Field\-Data\-From\-Node\-To\-Elem.\-cc@{Core/\-Algorithms/\-Legacy/\-Fields/\-Mapping/\-Map\-Field\-Data\-From\-Node\-To\-Elem.\-cc}!Map\-Field\-Data\-From\-Node\-To\-Elem\-T@{Map\-Field\-Data\-From\-Node\-To\-Elem\-T}}
\index{Map\-Field\-Data\-From\-Node\-To\-Elem\-T@{Map\-Field\-Data\-From\-Node\-To\-Elem\-T}!Core/Algorithms/Legacy/Fields/Mapping/MapFieldDataFromNodeToElem.cc@{Core/\-Algorithms/\-Legacy/\-Fields/\-Mapping/\-Map\-Field\-Data\-From\-Node\-To\-Elem.\-cc}}
\subsubsection[{Map\-Field\-Data\-From\-Node\-To\-Elem\-T}]{\setlength{\rightskip}{0pt plus 5cm}bool Map\-Field\-Data\-From\-Node\-To\-Elem\-T (
\begin{DoxyParamCaption}
\item[{const {\bf Map\-Field\-Data\-From\-Node\-To\-Elem\-Algo} $\ast$}]{algo, }
\item[{{\bf Field\-Handle} \&}]{input, }
\item[{{\bf Field\-Handle} \&}]{output}
\end{DoxyParamCaption}
)}}\label{_core_2_algorithms_2_legacy_2_fields_2_mapping_2_map_field_data_from_node_to_elem_8cc_a24a723e0063d556eb6baed703303ffd1}


This is the basic algorithm behind the mapping algorithm. 

Internal function to this algorithm\-: no need for this function to be public. It is called from the algorithm class only. Get the method the user selected. Since we do a check of valid entries when then user sets the algorithm, we can assume it is one of the specified ones

Get pointers to the virtual interfaces of the fields We need these to obtain the data values

Make sure that the data vector has the proper length 