[Dune] [#361] Lifetime YaspGrid element corner coordinates too short

Dune dune at dune-project.org
Wed Mar 5 12:25:11 CET 2008


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Oliver Sander (sander) 

Attached to Project - Dune
Summary - Lifetime YaspGrid element corner coordinates too short
Task Type - Bug Report
Category - Dune Modules
Status - New
Assigned To - 
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - SVN
Due in Version - Undecided
Due Date - Undecided
Details - The following program prints

1 0 0   1 0 0

and not

0 0 0   1 0 0

as it should.


#include <config.h>
#include <dune/grid/yaspgrid.hh>

using namespace Dune;

int main(int argc, char** argv)
{
    FieldVector<int,3> n(1);
    FieldVector<double,3> h(1);
    FieldVector<bool,3> periodic(false);

    YaspGrid<3> grid(h, n, periodic, 0);

    YaspGrid<3>::Codim<0>::EntityPointer entity = grid.leafbegin<0>();

    const FieldVector<double,3>& a = entity->geometry()[0];
    const FieldVector<double,3>& b = entity->geometry()[1];

    std::cout << a << "   " << b << std::endl;
} 


Maybe there should be a test for this.

More information can be found at the following URL:
http://conan.informatik.uni-stuttgart.de/flyspray/index.php?do=details&task_id=361

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list