[Dune] [#652] fassign complains about nonmatching number of arguments

Dune dune at dune-project.org
Mon Nov 9 05:06:58 CET 2009


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 - fassign complains about nonmatching number of arguments
Task Type - Bug Report
Category - Common
Status - New
Assigned To - 
Operating System - Unspecified / All
Severity - Medium
Priority - Normal
Reported Version - SVN
Due in Version - Undecided
Due Date - Undecided
Details - I try the following little use of fassign:

#include <config.h>

#include <iostream>
#include <dune/common/fvector.hh>
#include <dune/common/fassign.hh>

using namespace Dune;

int main(int argc, char** argv) try
{
    Dune::FieldVector<double,3> pos;

    pos <<=  1,  0,  0;

} catch (Exception e) {

    std::cout << e << std::endl;

}


Running the code throws an exception with the message

MathError [~fvector_assigner:/home/haile/sander/dune/dune-common/dune/common/fassign.hh:94]: Trying to assign 5 entries to a FieldVector of size 3


Is this a bug or I am using fassign incorrectly?

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=652

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