{"action":"opened","issue":{"url":"https://api.github.com/repos/feelpp/feelpp/issues/672","labels_url":"https://api.github.com/repos/feelpp/feelpp/issues/672/labels{/name}","comments_url":"https://api.github.com/repos/feelpp/feelpp/issues/672/comments","events_url":"https://api.github.com/repos/feelpp/feelpp/issues/672/events","html_url":"https://github.com/feelpp/feelpp/issues/672","id":114843898,"number":672,"title":"Exporter prefix","user":{"login":"aancel","id":5362942,"avatar_url":"https://avatars.githubusercontent.com/u/5362942?v=3","gravatar_id":"","url":"https://api.github.com/users/aancel","html_url":"https://github.com/aancel","followers_url":"https://api.github.com/users/aancel/followers","following_url":"https://api.github.com/users/aancel/following{/other_user}","gists_url":"https://api.github.com/users/aancel/gists{/gist_id}","starred_url":"https://api.github.com/users/aancel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aancel/subscriptions","organizations_url":"https://api.github.com/users/aancel/orgs","repos_url":"https://api.github.com/users/aancel/repos","events_url":"https://api.github.com/users/aancel/events{/privacy}","received_events_url":"https://api.github.com/users/aancel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/feelpp/feelpp/labels/type:bug","name":"type:bug","color":"fc2929"},{"url":"https://api.github.com/repos/feelpp/feelpp/labels/type:question","name":"type:question","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-03T15:40:22Z","updated_at":"2015-11-03T15:40:22Z","closed_at":null,"body":"Following the test written by @gdolle ([testsuite/feelts/test_bdf3.cpp](https://github.com/feelpp/feelpp/blob/develop/testsuite/feelts/test_bdf3.cpp)), we noticed some issues regarding the prefix used by the exporter:\r\nAn example would be (from @gdolle's code):\r\n```\r\n# First create an exporter with the test_bdf prefix\r\n# This will create the initial timeset with the corresponding prefix\r\nauto e = exporter( _mesh=mesh, _name=\"test_bdf\" );\r\n...\r\n# Further calls to setPrefix won't modify the prefix of the timeset \r\n# after this initial call, because the setPrefix function does not update \r\n# the prefix of the latest timeset.\r\ne->setPrefix( prefix )\r\n```\r\n\r\nActually and currently, this is working with the Ensight Gold exporter because I made modifications to actually use the prefix set to the exporter and not the name of the timeset, but I think it would be a better idea to totally switch to using the name of the timeset. \r\n\r\nThe function `setPrefix( name )` currently only store the value for the prefix. Wouldn't it be a better idea to directly set the value of the most recent timeset rather than storing the prefix ? Maybe we can also add a new `setPrefix( ts_id, name )` that would allow to modify the prefix for other timesets (in case we would be using several of them)"}}