{"action":"created","issue":{"url":"https://api.github.com/repos/coldfix/madx-dummy/issues/19","repository_url":"https://api.github.com/repos/coldfix/madx-dummy","labels_url":"https://api.github.com/repos/coldfix/madx-dummy/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/coldfix/madx-dummy/issues/19/comments","events_url":"https://api.github.com/repos/coldfix/madx-dummy/issues/19/events","html_url":"https://github.com/coldfix/madx-dummy/issues/19","id":228985327,"number":19,"title":"Intel compiler split standard output lines after 80 characters","user":{"login":"coldfix","id":1816880,"avatar_url":"https://avatars2.githubusercontent.com/u/1816880?v=3","gravatar_id":"","url":"https://api.github.com/users/coldfix","html_url":"https://github.com/coldfix","followers_url":"https://api.github.com/users/coldfix/followers","following_url":"https://api.github.com/users/coldfix/following{/other_user}","gists_url":"https://api.github.com/users/coldfix/gists{/gist_id}","starred_url":"https://api.github.com/users/coldfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coldfix/subscriptions","organizations_url":"https://api.github.com/users/coldfix/orgs","repos_url":"https://api.github.com/users/coldfix/repos","events_url":"https://api.github.com/users/coldfix/events{/privacy}","received_events_url":"https://api.github.com/users/coldfix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"coldfix","id":1816880,"avatar_url":"https://avatars2.githubusercontent.com/u/1816880?v=3","gravatar_id":"","url":"https://api.github.com/users/coldfix","html_url":"https://github.com/coldfix","followers_url":"https://api.github.com/users/coldfix/followers","following_url":"https://api.github.com/users/coldfix/following{/other_user}","gists_url":"https://api.github.com/users/coldfix/gists{/gist_id}","starred_url":"https://api.github.com/users/coldfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coldfix/subscriptions","organizations_url":"https://api.github.com/users/coldfix/orgs","repos_url":"https://api.github.com/users/coldfix/repos","events_url":"https://api.github.com/users/coldfix/events{/privacy}","received_events_url":"https://api.github.com/users/coldfix/received_events","type":"User","site_admin":false},"assignees":[{"login":"coldfix","id":1816880,"avatar_url":"https://avatars2.githubusercontent.com/u/1816880?v=3","gravatar_id":"","url":"https://api.github.com/users/coldfix","html_url":"https://github.com/coldfix","followers_url":"https://api.github.com/users/coldfix/followers","following_url":"https://api.github.com/users/coldfix/following{/other_user}","gists_url":"https://api.github.com/users/coldfix/gists{/gist_id}","starred_url":"https://api.github.com/users/coldfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coldfix/subscriptions","organizations_url":"https://api.github.com/users/coldfix/orgs","repos_url":"https://api.github.com/users/coldfix/repos","events_url":"https://api.github.com/users/coldfix/events{/privacy}","received_events_url":"https://api.github.com/users/coldfix/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-05-16T10:30:29Z","updated_at":"2017-05-16T10:30:32Z","closed_at":null,"body":"**Originally by _jl nougaret_ on 2012-01-19 17:46:55 +0100**\n\n___\ndate: 2009.05.28\nUnless the ouput is explicitly formatted, such as in a write(6,'(a)') statement, write(6,*) and print * statements will generate output that splits after 80 characters. So far, this happens with the Intel compiler."},"comment":{"url":"https://api.github.com/repos/coldfix/madx-dummy/issues/comments/301741498","html_url":"https://github.com/coldfix/madx-dummy/issues/19#issuecomment-301741498","issue_url":"https://api.github.com/repos/coldfix/madx-dummy/issues/19","id":301741498,"user":{"login":"coldfix","id":1816880,"avatar_url":"https://avatars2.githubusercontent.com/u/1816880?v=3","gravatar_id":"","url":"https://api.github.com/users/coldfix","html_url":"https://github.com/coldfix","followers_url":"https://api.github.com/users/coldfix/followers","following_url":"https://api.github.com/users/coldfix/following{/other_user}","gists_url":"https://api.github.com/users/coldfix/gists{/gist_id}","starred_url":"https://api.github.com/users/coldfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coldfix/subscriptions","organizations_url":"https://api.github.com/users/coldfix/orgs","repos_url":"https://api.github.com/users/coldfix/repos","events_url":"https://api.github.com/users/coldfix/events{/privacy}","received_events_url":"https://api.github.com/users/coldfix/received_events","type":"User","site_admin":false},"created_at":"2017-05-16T10:30:32Z","updated_at":"2017-05-16T10:30:32Z","body":"**Originally by _ldeniau_ on 2012-01-19 17:49:52 +0100**\n\n___\n2009.05.28\nBy setting the environment variable FORT_FMT_RECL to a large number, e.g. 256, before executing the MAD-X executable, the lines are allowed to run up to the given number of characters.\nUnless we can solve this with a compiler option (/ccdefault?), it would be better to set such environment variable from within MAD-X rather than externally.\n\n2009.06.08\nInstead of relying on the above mentioned environment variable, Eric McIntosh found out the way to force the record length from within the Fortran program.\n\n(1) First the Fortran program needs to be compiled with specific /assume/noold_unit_star option, as in:\n\nifort /c /names:lowercase /assume:underscore /assume:noold_unit_star -D_INTEL_IFORT_SET_RECL /fpp /O2 -D_INTEL_IFORT_FLUSH madx_main.F90\n\n(2) the Fortran code madx_main contains:\n\nprogram madx_main\nuse run_madx\nimplicit none\n\n#ifdef _INTEL_IFORT_SET_RECL\ninclude 'mad_recl.fi'\nopen(unit=6,RECL=mad_record_length)\n#endif\n\ncall madxm\nstop\nend program madx_main\n\n2009.06.30\napparently works if os.putenv('FORT_FMT_RECL'.'256') for the automatic test, but open(unit=6,RECL=...) does not seem to work when invoking the madx executable compiled with ifort.\n\n2010.04.15\nwhen invoking the makefile:\nmake FORT_FMT_RECL=256\nThis solves the problem. Used in MadBuidl.py.\n\n2010.05.04\ndoes not longer work since SVN replaced CVS.\n\n2010.05.04\nWorks again after modifying MadBuild.py:\n(1) removed os.environ['FORT_FMT_RECL']='256'\n(2) make file invocation set to: make f95=ifort DEBUG=NO FORT_FMT_RECL=256 madx\n"}}
{"actor":{"display_login":"coldfix"}}