| Description | Some readers implement CanReadFile and others do not. Currently if a reader that does not have CanReadFile comes before a reader with CanReadFile it will always be used. Try opening VTKData/Data/teapot.g with the Exodus reader enabled.
Selecting a reader should follow steps like this:
1.) Select a set of candidates based on extension.
2.) Call CanReadFile on those that provide it. If any returns non-zero use the first highest return value.
3.) Otherwise use the first reader that does not have CanReadFile.
We should also have a better review process for which readers can implement CanReadFile. Since the method has several return values it is sometimes possible to do some preliminary quick checks even if a full CanReadFile cannot be implemented. |