From: Alan W. I. <ir...@be...> - 2005-06-29 22:21:32
|
On 2005-06-30 00:07+0200 Rafael Laboissiere wrote: > * Alan W. Irwin <ir...@be...> [2005-06-29 09:45]: >> Is this perl bug really that intricate? The "unrecognized type" message >> comes from the canonicalize_type function in the matwrap perl script which >> appears to be well documented and rather short. Can you not isolate the cpp >> output string that is currently causing the failure and make a test case >> that feeds that string to to canonicalize_type with lots of extra output >> messages to quickly solve the problem of what is going wrong with the >> canonicalize_type parsing logic for this corner case? Such old-fashioned >> debugging methods (isolate the problem, dump all variables, and follow the >> logic) are amazingly effective so if I had any perl knowledge, that would be >> the first step I would try to solve this issue. > > I already investigated the problem more or less along the lines that you > propose. As usual, I should have known you would be way ahead of me. :-) > I think that the problem is beyond the canonicalize_type > subroutine, more specifically in the way the cpp output is parsed and the > information stored into the matwrap internal structures. I will need lots > of time to understand better how matwrap works. For now, it is quite a > black box for me. Too bad it is so complicated, and I wish you the best in figuring out what the problem is. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |