PRISMS-PF
v2.1
utilities.cc
Go to the documentation of this file.
1
//utility functions for the MatrixFreePDE class
2
3
#include "../../include/matrixFreePDE.h"
4
5
//return index of given field name if exists, else throw error
6
template
<
int
dim,
int
degree>
7
unsigned
int
MatrixFreePDE<dim,degree>::getFieldIndex
(std::string _name) {
8
for
(
typename
std::vector<
Field<dim>
>::iterator it = fields.begin(); it != fields.end(); ++it){
9
if
(it->name.compare(_name)==0)
return
it->index;
10
}
11
pcout <<
"\nutilities.h: field '"
<< _name.c_str() <<
"' not initialized\n"
;
12
exit(-1);
13
}
14
15
#include "../../include/matrixFreePDE_template_instantiations.h"
16
Field
Definition:
fields.h:9
MatrixFreePDE::getFieldIndex
unsigned int getFieldIndex(std::string _name)
Definition:
utilities.cc:7
src
matrixfree
utilities.cc
Generated by
1.8.14