int cfio_put_att( int ncid, int varid, char *name, cfio_type xtype, size_t len, void *op) { cfio_msg_t *msg; //if(cfio_map_get_client_index_of_server(rank) == 0) //{ cfio_send_put_att(ncid, varid, name, xtype, len, op); //} debug(DEBUG_CFIO, "ncid = %d, var_id = %d, name = %s, len = %lu", ncid, varid, name, len); debug(DEBUG_CFIO, "success return."); return CFIO_ERROR_NONE; }
int cfio_put_att( int ncid, int varid, char *name, cfio_type xtype, size_t len, void *op) { cfio_msg_t *msg; int ret; //if(cfio_map_get_client_index_of_server(rank) == 0) //{ ret = cfio_id_assign_att(ncid, varid, name, xtype, len, op); //if(ret < 0) { // printf("[CFIO wwj], put_att error\n"); //} cfio_send_put_att(ncid, varid, name, xtype, len, op); //} //debug(DEBUG_CFIO, "ncid = %d, var_id = %d, name = %s, len = %lu", // ncid, varid, name, len); debug(DEBUG_CFIO, "success return."); return CFIO_ERROR_NONE; }