{"action":"created","issue":{"url":"https://api.github.com/repos/agnwinds/python/issues/511","repository_url":"https://api.github.com/repos/agnwinds/python","labels_url":"https://api.github.com/repos/agnwinds/python/issues/511/labels{/name}","comments_url":"https://api.github.com/repos/agnwinds/python/issues/511/comments","events_url":"https://api.github.com/repos/agnwinds/python/issues/511/events","html_url":"https://github.com/agnwinds/python/issues/511","id":440481992,"node_id":"MDU6SXNzdWU0NDA0ODE5OTI=","number":511,"title":"macro atoms - one free free errors (2)","user":{"login":"kslong","id":2530901,"node_id":"MDQ6VXNlcjI1MzA5MDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2530901?v=4","gravatar_id":"","url":"https://api.github.com/users/kslong","html_url":"https://github.com/kslong","followers_url":"https://api.github.com/users/kslong/followers","following_url":"https://api.github.com/users/kslong/following{/other_user}","gists_url":"https://api.github.com/users/kslong/gists{/gist_id}","starred_url":"https://api.github.com/users/kslong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kslong/subscriptions","organizations_url":"https://api.github.com/users/kslong/orgs","repos_url":"https://api.github.com/users/kslong/repos","events_url":"https://api.github.com/users/kslong/events{/privacy}","received_events_url":"https://api.github.com/users/kslong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-05-05T19:43:40Z","updated_at":"2019-05-06T17:13:53Z","closed_at":null,"author_association":"COLLABORATOR","body":"The following macro atom run crashes (on dev) at the beginning of creating a detailed spectrum.  This may be related to #492, but the specific error is different and so I am starting a new issue for this problem.\r\n\r\n[hot.pf.txt](https://github.com/agnwinds/python/files/3145958/hot.pf.txt)\r\n\r\nAlthough the error is a problem with cdf generation, the problem comes from one_free_free as indicated by this traceback:\r\n\r\n```\\(gdb) where\r\n#0  cdf_gen_from_array (cdf=0x120214a18 <cdf_ff>, x=0x1027beb50 <ff_x>, y=0x1027c0a90 <ff_y>, n_xy=1000, xmin=0, xmax=0) at cdf.c:438\r\n#1  0x000000010003dc53 in one_ff (one=0x13dd94490, f1=0, f2=0) at emission.c:742\r\n#2  0x000000010004d024 in kpkt (p=0x7ffeefbfe7f8, nres=0x7ffeefbfe7e4, escape=0x7ffeefbfe754, mode=1) at matom.c:1183\r\n#3  0x000000010006da80 in macro_gov (p=0x7ffeefbfe7f8, nres=0x7ffeefbfe7e4, matom_or_kpkt=2, which_out=0x7ffeefbfe7e0) at macro_gov.c:164\r\n#4  0x000000010006c2fc in get_matom_f (mode=0) at photo_gen_matom.c:341\r\n#5  0x00000001000106ad in xdefine_phot (f1=599585000000000, f2=3526970588235294, ioniz_or_final=1, iwind=-1, print_mode=1) at photon_gen.c:398\r\n#6  0x000000010000ff8f in define_phot (p=0x14a800000, f1=599585000000000, f2=3526970588235294, nphot_tot=10000000, ioniz_or_final=1, iwind=-1, \r\n    freq_sampling=0) at photon_gen.c:113\r\n#7  0x000000010007e037 in make_spectra (restart_stat=1) at run.c:565\r\n#8  0x0000000100001c71 in main (argc=3, argv=0x7ffeefbff210) at python.c:915\r\n```\r\n\r\nThe problem is related to the fact taht both f1 and f2 are 0 here.  The problem occurs when hot.pf is run from scratch and when it is restarted from the end of the ionization cycles (so it is not that something is being overwritten on restart)."},"comment":{"url":"https://api.github.com/repos/agnwinds/python/issues/comments/489699023","html_url":"https://github.com/agnwinds/python/issues/511#issuecomment-489699023","issue_url":"https://api.github.com/repos/agnwinds/python/issues/511","id":489699023,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4OTY5OTAyMw==","user":{"login":"kslong","id":2530901,"node_id":"MDQ6VXNlcjI1MzA5MDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2530901?v=4","gravatar_id":"","url":"https://api.github.com/users/kslong","html_url":"https://github.com/kslong","followers_url":"https://api.github.com/users/kslong/followers","following_url":"https://api.github.com/users/kslong/following{/other_user}","gists_url":"https://api.github.com/users/kslong/gists{/gist_id}","starred_url":"https://api.github.com/users/kslong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kslong/subscriptions","organizations_url":"https://api.github.com/users/kslong/orgs","repos_url":"https://api.github.com/users/kslong/repos","events_url":"https://api.github.com/users/kslong/events{/privacy}","received_events_url":"https://api.github.com/users/kslong/received_events","type":"User","site_admin":false},"created_at":"2019-05-06T17:13:53Z","updated_at":"2019-05-06T17:13:53Z","author_association":"COLLABORATOR","body":"The set of models I have been using is tlusty_d14.ls.  This has 681 models, and each model has 27801 bins, but this is less than the maxium 1000 models and 28000 bins.  We also check that a model does not have more than NWAVES bins, so it is not obvious why there are errors with this grid, but not the Kurucz model grid.\r\n\r\nThe problem is that when the program gets to cdf_gen_from array the last two bins in the spectrum have wavelength 5000.0 A.   This is the upper limit to the wavelength range.  It's as if somehow an additional bin got added.   This problem, at this point, is not a macro atom problem, as I have run the same model with standard79 and simple thermal trapping. "}}
{"actor":{"display_login":"kslong"}}