[MOAB-dev] Detecting file types
Steve Jackson
sjackson at cae.wisc.edu
Mon Nov 30 15:52:48 CST 2009
On Nov 30, 2009, at 15:36 , Jason Kraftcheck wrote:
> So you don't need to know the file type. You need to know whether or not
> the file contained geometry that was read into CGM. Why not just query CGM
> to see if it has any geometry?
Fair enough. That seemed to me like a roundabout way of coming at the problem, but it sounds like the simplest fix.
>> Cosmetic reason: DagMC passes some file loading options to
>> MBInterface::load_file. These
>> options go unhandled by MOAB's native file reader, causing load_file to
>> return the MB_UNHANDLED_OPTION error code. This isn't really an error
>> condition, though; we wouldn't pass the options in the first place if we
>> knew the file was going to be handled by MOAB's native loader.
>
> Returning the loaded file type after the fact is unlikely to be helpful in
> this case,
It might be helpful, even in this case. We expect the options to go unhandled for MOAB native file types. But if the options go unhandled for a different file type, that's unexpected, and it would be polite to issue a warning to the user. It's still a cosmetic issue, though, and probably does not merit an interface change.
Thanks for your help.
~S
More information about the moab-dev
mailing list