{"id":165152,"date":"2023-03-17T08:59:34","date_gmt":"2023-03-17T08:59:34","guid":{"rendered":"\/knowledge\/forums\/topic\/how-to-check-the-task-id-via-user-fortran-subroutine-in-a-parallel-autodyn-run\/"},"modified":"2023-07-31T12:30:42","modified_gmt":"2023-07-31T12:30:42","slug":"how-to-check-the-task-id-via-user-fortran-subroutine-in-a-parallel-autodyn-run","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-check-the-task-id-via-user-fortran-subroutine-in-a-parallel-autodyn-run\/","title":{"rendered":"How to check the task ID via User Fortran Subroutine in a parallel Autodyn run"},"content":{"rendered":"<p>When executing Autodyn with a subroutine in a parallel mode, each task will have and execute its own instance of the subroutine. In order to differentiate which task is executing the subroutine the user can check the variable MYTASK.  In order to access this variable the user has to add the line  USE mdpp, ONLY : MYTASK  in the section with the USE statement of the subroutine of interest.   If the user runs Autodyn with n cores, he will have n+1 processes: 1 master process and n slave processes. MYTASK will then have values between 0 (master process) and n (1-n is the range of the slave tasks).<\/p>\n","protected":false},"template":"","class_list":["post-165152","topic","type-topic","status-publish","hentry","topic-tag-4391","topic-tag-autodyn","topic-tag-explicit-autodyn","topic-tag-structural-mechanics","topic-tag-user-programmable-autodyn"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["3\/15\/2023 20:20"],"_bbp_forum_id":["27789"],"_bbp_author_ip":["23.56.168.180"],"_btv_view_count":["408"],"siebel_km_number":["2053564"],"product_version":["19"],"km_published_date":["2018-03-14T00:00:00.000Z"],"family":["Structural Mechanics"],"application_name":["AUTODYN"]},"test":"articlesansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/165152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/165152\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=165152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}