Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit def2eafc authored by vinciguerra_a's avatar vinciguerra_a
Browse files

Use const reference for norm parameter

parent ae80f34f
No related branches found
No related tags found
1 merge request!81Resolve "Use `const` reference for norms"
...@@ -52,7 +52,7 @@ namespace ippl { ...@@ -52,7 +52,7 @@ namespace ippl {
* @return The desired norm of the field * @return The desired norm of the field
*/ */
template<typename T, unsigned Dim, class M, class C> template<typename T, unsigned Dim, class M, class C>
T norm(Field<T, Dim, M, C> field, int p = 2) { T norm(const Field<T, Dim, M, C>& field, int p = 2) {
T local = 0; T local = 0;
const int shift = field.getNghost(); const int shift = field.getNghost();
auto view = field.getView(); auto view = field.getView();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment