New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding parsing for double indexed/separated fields #6459
Conversation
dynamicCastAndExtractDoubleIndex(PostprocessorName , it->second, full_name, it->first, in_global, global_params_block); | ||
dynamicCastAndExtractDoubleIndex(VectorPostprocessorName, it->second, full_name, it->first, in_global, global_params_block); | ||
dynamicCastAndExtractDoubleIndex(OutputName , it->second, full_name, it->first, in_global, global_params_block); | ||
dynamicCastAndExtractDoubleIndex(MaterialPropertyName , it->second, full_name, it->first, in_global, global_params_block); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I want to support every type in the double syntax. It's unlikely that we'll use very many of them. I'd suggest we add the types you want and leave the rest out until there's a use case and better yet, a test case to support them.
This is looking pretty good so far. |
7d33ce2
to
46d0c21
Compare
@permcody testing in regular tests or unit tests? |
Either is fine. You might find it painful to build a Parser object in the Unit Tests... I'm not sure though maybe it's easy. |
46d0c21
to
1b307df
Compare
I have added a single test for reading double indexed Reals.I realized that there will be an issue |
Well that would be nice, but I still think we should pare down the list of permissible types. Do we really think we are going to need a double indexed list of function_names for instance? Let's just add the types we need now. If more needs arise later, we'll add PRs with tests later. |
FunctionName and primitive types are actually the ones that we want in Rattlesnake. I'd definitely remove the following: FileName, FileNameNoExtension, MeshFileName, MultiAppName, but I could live with the unmentioned ones going as well. Once we trimmed this, I'll add tests |
I actually vote for adding all the ones we can think of / all the ones This is going to be a new "first class", supported input syntax: so let's
|
25d6d79
to
6c9248b
Compare
This needs libmesh libMesh/libmesh#846 |
Yes, it'll be in the next one. On Thu, Mar 3, 2016 at 3:49 PM Sebastian Schunert notifications@github.com
|
e726c4c
to
8edd2bd
Compare
8edd2bd
to
655ee1c
Compare
We should probably do this as a unit test at some point so we can test the succeeds and fails equally well. I won't make you do that for this test though. This will get us pretty far down the path towards doing that. |
I am done with this for now and ready to take the heat. |
👍 |
Adding parsing for double indexed/separated fields
I will suggest to create another PR for using this new capability in
for the That can clean the code up quite a bit. |
Yes, why not deploy it. 2016-03-09 14:00 GMT-07:00 Yaqi notifications@github.com:
|
What uses |
It is used in a bunch of phase field examples and tests. |
Concept of parsing double index objects. Half of it is missing still but I wanted to get feedback
before proceeding too far.
libMesh::print_helper(std::ostream & os, const std::vector<vector<P> >* param)
Point
orRealVectorValue
?dynamicCastAndExtractDoubleIndex
forMooseEnum