iMeshP_loadAll options issues

Issue #5 resolved
Russell Whitesides created an issue

Function append_option in iMeshP_loadAll prepends separator character before searching for existing option. This incorrectly misses an option if it is the first in the string.

e.g. with the call

const char * options = "moab:PARALLEL=READ_PART" iMeshP_loadAll(mesh,partition,root_set,file_name,options,&err,strlen(file_name",strlen(options)

append_option will add a second "moab:PARALLEL" to the option string and then the read will fail because of an unseen option. The work-around is to not put moab:PARALLEL as the first option or to prepend a space to the option string.

Secondly, If an option contains a separator character the routine returns iBase_INVALID_ARGUMENT which gets converted to boolean true. This is not the expected behavior. The function should be modified to separate the append status from the error code.

Thirdly, Why is the separator in the ITAPS interface a space and in the MOAB tools a semi-colon?

Comments (2)

  1. Log in to comment