{"action":"closed","issue":{"url":"https://api.github.com/repos/geodynamics/specfem3d_globe/issues/503","repository_url":"https://api.github.com/repos/geodynamics/specfem3d_globe","labels_url":"https://api.github.com/repos/geodynamics/specfem3d_globe/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/geodynamics/specfem3d_globe/issues/503/comments","events_url":"https://api.github.com/repos/geodynamics/specfem3d_globe/issues/503/events","html_url":"https://github.com/geodynamics/specfem3d_globe/issues/503","id":165343008,"number":503,"title":"read_file() in asdf writing should be optimized","user":{"login":"wjlei1990","id":5777547,"avatar_url":"https://avatars.githubusercontent.com/u/5777547?v=3","gravatar_id":"","url":"https://api.github.com/users/wjlei1990","html_url":"https://github.com/wjlei1990","followers_url":"https://api.github.com/users/wjlei1990/followers","following_url":"https://api.github.com/users/wjlei1990/following{/other_user}","gists_url":"https://api.github.com/users/wjlei1990/gists{/gist_id}","starred_url":"https://api.github.com/users/wjlei1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjlei1990/subscriptions","organizations_url":"https://api.github.com/users/wjlei1990/orgs","repos_url":"https://api.github.com/users/wjlei1990/repos","events_url":"https://api.github.com/users/wjlei1990/events{/privacy}","received_events_url":"https://api.github.com/users/wjlei1990/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-13T14:59:04Z","updated_at":"2016-07-17T17:35:26Z","closed_at":"2016-07-17T17:35:26Z","body":"In the write_output_ASDF.f90 file, https://github.com/geodynamics/specfem3d_globe/blob/devel/src/specfem3D/write_output_ASDF.f90#L405, there is a function call:\r\n```\r\n    call read_file(\"setup/constants.h\", sf_constants, len_constants)\r\n    call read_file(\"DATA/Par_file\", sf_parfile, len_Parfile)\r\n    call ASDF_write_auxiliary_data_f(current_asdf_handle, trim(sf_constants) // C_NULL_CHAR,&\r\n                                   trim(sf_parfile(1:len_Parfile)) // C_NULL_CHAR, ier)\r\n```\r\nHowever, this reading operation is running on all processors. So when using large number of processors, I think this may cause performance issues.  The reading should only be on master node and broadcast to all processors.\r\n\r\n@jas11 @mpbl "}}
{"actor":{"display_login":"komatits"}}