Skip to content
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

Resolves: #2083 colon separated integers for preconditioning #2084

Conversation

lberti
Copy link
Collaborator

@lberti lberti commented Apr 25, 2023

Presently, via the function parseFieldsDef in feel/feelalg/datamap.cpp, one can only read lines of comma-separated integers, as in

0->(1,2,3,4,5,6,7,8,9,10,11),1->(1,4,7,10).

In order to simplify data insertion, one can now read colon-separated integers as in

0->(1:11),1->(1:10:3),

and obtain an equivalent result as in 0->(1,2,3,4,5,6,7,8,9,10,11),1->(1,4,7,10).

@lberti lberti self-assigned this Apr 25, 2023
@lberti lberti added this to the v111 milestone Apr 25, 2023
@prudhomm prudhomm merged commit a14f9ec into develop May 20, 2023
@vincentchabannes
Copy link
Member

@lberti @prudhomm I think the notation is not correct (or not standard). The last integer is the stop criteria, not the last. For example, I use this feature in toolbox. I think it same in python/matlab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Fieldsplit Preconditioning: use colon-separated list to specify the blocs
3 participants