Skip to content
Snippets Groups Projects
Commit d11df38b authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

random access operator () --> random access operator [] of FieldVector.

[[Imported from SVN: r905]]
parent d6121e00
No related branches found
No related tags found
No related merge requests found
......@@ -181,7 +181,7 @@ namespace Dune {
for(int j=0; j<dim; j++)
{
if( l(j) != refelem()[i](j) )
if( l[j] != refelem()[i][j] )
{
std::cerr << l; std::cerr << refelem()[i];
std::cerr << "\nMapping to local coord went wrong! \n";
......@@ -191,7 +191,7 @@ namespace Dune {
g = global ( l );
for(int j=0; j<dimworld; j++)
{
if( g(j) != coord(j) )
if( ABS(g[j] - coord[j]) > 1e-15 )
{
std::cerr << "\nglobal--local of coord " << i << " failed! \n";
std::cerr << "started with "; std::cerr << coord;
......
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