Dear Georg,

if you use Dune 2.4 you can read to Dune::FieldVectors as follows:

typedef Dune::FieldVector<double, 3> Vector;
Vector vec = GET_RUNTIME_PARAM(TypeTag, Vector, Problem.MyVector);

The corresponding INI file would look like this:

[Problem]
MyVector = 1.0 2.0 4.5

Before Dune 2.4 you would have to write each value separately as far as I know.

Best wishes,
Timo


On 06/16/2015 12:00 PM, dumux-requ...@listserv.uni-stuttgart.de wrote:
Send Dumux mailing list submissions to
        dumux@listserv.uni-stuttgart.de

To subscribe or unsubscribe via the World Wide Web, visit
        https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
or, via email, send a message with subject or body 'help' to
        dumux-requ...@listserv.uni-stuttgart.de

You can reach the person managing the list at
        dumux-ow...@listserv.uni-stuttgart.de

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Dumux digest..."


Today's Topics:

    1. Flyspray Activity for Task 268 (gstat development) (DuMuX)
    2. Flyspray Activity for Task 269 (Take care of todos) (DuMuX)
    3. GET_RUNTIME_PARAM macro (georg.fut...@dlr.de)


----------------------------------------------------------------------

Message: 1
Date: Mon, 15 Jun 2015 11:32:03 +0000
From: DuMuX<flysp...@iws.uni-stuttgart.de>
To:dumux@listserv.uni-stuttgart.de
Subject: [DuMuX] Flyspray Activity for Task 268 (gstat development)
Message-ID:<1434367923.557eb7b305...@www.dumux.org>
Content-Type: text/plain; charset=utf-8

THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

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

User who did this - Thomas Fetzer (Thomas Fetzer)

Attached to Project - DuMuX
Summary - gstat development
Task Type - Feature Request
Category - General
Status - New
Assigned To -
Operating System - Unspecified
Severity - Low
Priority - Normal
Reported Version - SVN
Due in Version - Undecided
Due Date - Undecided
Details - In dumux-devel there are files for using gstat together dumux. They 
have been used for several publications and student theses. I wanted to move 
the code to the stable part, but unfortunately the development of standalone 
gstat binaries has stopped (www.gstat.org). Since 2003 it is integrated in the 
r-project. It still works with the binaries, but we should consider to build 
upon the r-project development.

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

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.


------------------------------

Message: 2
Date: Mon, 15 Jun 2015 13:13:44 +0000
From: DuMuX<flysp...@iws.uni-stuttgart.de>
To:dumux@listserv.uni-stuttgart.de
Subject: [DuMuX] Flyspray Activity for Task 269 (Take care of todos)
Message-ID:<1434374024.557ecf886a...@www.dumux.org>
Content-Type: text/plain; charset=utf-8

THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

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

User who did this - Christoph Gr?ninger (gruenich)

Attached to Project - DuMuX
Summary - Take care of todos
Task Type - Bug Report
Category - General
Status - New
Assigned To -
Operating System - Unspecified
Severity - Low
Priority - Low
Reported Version - SVN
Due in Version - Undecided
Due Date - Undecided
Details - "grep -ri todo *|wc -l" lists 150 occurrences of the word todo in our 
code. We should revise whether we actually should do something about it or rather drop 
the comment.


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

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.


------------------------------

Message: 3
Date: Tue, 16 Jun 2015 07:16:11 +0000
From:<georg.fut...@dlr.de>
To:<dumux@listserv.uni-stuttgart.de>
Subject: [DuMuX] GET_RUNTIME_PARAM macro
Message-ID:
        <133f4ad106bd1347a4a74b30f6331ec40347b...@dlrexmbx01.intra.dlr.de>
Content-Type: text/plain; charset="us-ascii"

Hello Dumux,

I was wondering whether it is possible to read arrays from the input file using 
the GET_RUNTIME_PARAM macro. Or is it possible to read values in a loop? I mean 
something like:

For (int i=0; i<numOfStuff; i++)
                 Value[i]=GET_RUNTIME_PARAM(TypeTag, Scalar, Problem.ValueI);

Here I want to pass Problem.ValueI to the macro so it reads the desired value. 
How can it be done?

Best regards

Georg Futter

--------------------------
German Aerospace Center (DLR)
Institute of Engineering Thermodynamics | Computational Electrochemistry | 
Pfaffenwaldring 38-40 | 70569 Stuttgart

Dipl.-Ing. Georg Futter | Ph.D. student
Telefon 0711/6862-8135 |georg.fut...@dlr.de<mailto:georg.fut...@dlr.de>
www.DLR.de<http://www.dlr.de/>


-------------- next part --------------
An HTML attachment was scrubbed...
URL:<http://listserv.uni-stuttgart.de/pipermail/dumux/attachments/20150616/c10db0df/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux


------------------------------

End of Dumux Digest, Vol 53, Issue 1
************************************

_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to