{"action":"created","issue":{"url":"https://api.github.com/repos/ornladios/ADIOS2/issues/550","repository_url":"https://api.github.com/repos/ornladios/ADIOS2","labels_url":"https://api.github.com/repos/ornladios/ADIOS2/issues/550/labels{/name}","comments_url":"https://api.github.com/repos/ornladios/ADIOS2/issues/550/comments","events_url":"https://api.github.com/repos/ornladios/ADIOS2/issues/550/events","html_url":"https://github.com/ornladios/ADIOS2/issues/550","id":314427642,"number":550,"title":"Re-opening the same engine","user":{"login":"kshitij-v-mehta","id":2341478,"avatar_url":"https://avatars1.githubusercontent.com/u/2341478?v=4","gravatar_id":"","url":"https://api.github.com/users/kshitij-v-mehta","html_url":"https://github.com/kshitij-v-mehta","followers_url":"https://api.github.com/users/kshitij-v-mehta/followers","following_url":"https://api.github.com/users/kshitij-v-mehta/following{/other_user}","gists_url":"https://api.github.com/users/kshitij-v-mehta/gists{/gist_id}","starred_url":"https://api.github.com/users/kshitij-v-mehta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshitij-v-mehta/subscriptions","organizations_url":"https://api.github.com/users/kshitij-v-mehta/orgs","repos_url":"https://api.github.com/users/kshitij-v-mehta/repos","events_url":"https://api.github.com/users/kshitij-v-mehta/events{/privacy}","received_events_url":"https://api.github.com/users/kshitij-v-mehta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-04-15T15:58:25Z","updated_at":"2018-04-15T18:16:04Z","closed_at":null,"author_association":"NONE","body":"Can I re-open the same engine to write data? For example, is the following allowed?\r\n\r\n```\r\ncall adios2_init(...)\r\ncall adios2_declare_io(io_obj,...)\r\n\r\ndo i=1,4\r\n    call adios2_open(engine, io_obj, \"restart\", adios2_mode_write,...)\r\n    !! declare variable and write data\r\n    call adios2_close(engine,...)\r\nend do\r\n```\r\n\r\nFor the second iteration of the 'do' loop above, 'adios2_open' results in `ADIOS2 open with new MPI_Comm: ERROR: IO Engine with name restart already created, in call to Open.`\r\n\r\nDoes this mean a file can only be opened once?\r\nI am trying to write a checkpoint-restart file. At every iteration, the file must be overwritten with new data.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ornladios/ADIOS2/issues/comments/381426449","html_url":"https://github.com/ornladios/ADIOS2/issues/550#issuecomment-381426449","issue_url":"https://api.github.com/repos/ornladios/ADIOS2/issues/550","id":381426449,"user":{"login":"kshitij-v-mehta","id":2341478,"avatar_url":"https://avatars1.githubusercontent.com/u/2341478?v=4","gravatar_id":"","url":"https://api.github.com/users/kshitij-v-mehta","html_url":"https://github.com/kshitij-v-mehta","followers_url":"https://api.github.com/users/kshitij-v-mehta/followers","following_url":"https://api.github.com/users/kshitij-v-mehta/following{/other_user}","gists_url":"https://api.github.com/users/kshitij-v-mehta/gists{/gist_id}","starred_url":"https://api.github.com/users/kshitij-v-mehta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshitij-v-mehta/subscriptions","organizations_url":"https://api.github.com/users/kshitij-v-mehta/orgs","repos_url":"https://api.github.com/users/kshitij-v-mehta/repos","events_url":"https://api.github.com/users/kshitij-v-mehta/events{/privacy}","received_events_url":"https://api.github.com/users/kshitij-v-mehta/received_events","type":"User","site_admin":false},"created_at":"2018-04-15T18:16:04Z","updated_at":"2018-04-15T18:16:04Z","author_association":"NONE","body":"I understand that adios timesteps are abstractions :-)\r\nI am trying to understand when data is available for an external process to read. If you have an analysis application that is waiting for data from a simulation, is data guaranteed to be available when 'endstep' is called, or is it available when 'close' is called? How should a simulation 'publish' data for someone else to read?"}}
{"actor":{"display_login":"kshitij-v-mehta"}}