Changeset 91


Ignore:
Timestamp:
03/22/13 15:08:32 (7 years ago)
Author:
mmamonski
Message:

Fixed handling of the PBSDRMAA_JOIN_FILES attribute

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_drmaa/submit.c

    r88 r91  
    407407        fsd_template_t *pbs_attr = self->pbs_job_attributes; 
    408408        const char *join_files; 
    409         bool b_join_files; 
    410409        int i; 
    411410 
     
    437436 
    438437        join_files = jt->get_attr( jt, DRMAA_JOIN_FILES ); 
    439         b_join_files = join_files != NULL  &&  !strcmp(join_files,"1"); 
    440         pbs_attr->set_attr( pbs_attr, PBSDRMAA_JOIN_FILES, (b_join_files ? "y" : "n") );  
     438        if (join_files != NULL && strcmp(join_files, "y") == 0) 
     439          { 
     440                pbs_attr->set_attr( pbs_attr, PBSDRMAA_JOIN_FILES, "oe" );  
     441          } 
     442        else if (join_files != NULL && strcmp(join_files, "n") != 0) 
     443          { 
     444                fsd_exc_raise_fmt( FSD_ERRNO_INVALID_VALUE, "invalid value of %s attribute. Should be 'y' or 'n'.", 
     445                                        DRMAA_JOIN_FILES ); 
     446          } 
    441447} 
    442448 
Note: See TracChangeset for help on using the changeset viewer.