Logo Search packages:      
Sourcecode: dsdp version File versions  Download package

int SDPConeCheckStorageFormat ( SDPCone  sdpcone,
int  blockj,
char  format 
)

Check validity of parameters.

Parameters:
sdpcone SDP cone
blockj block number
format such as packed symmetric or upper full symmetric

Definition at line 101 of file dsdpadddata.c.

Referenced by SDPConeAddDataMatrix(), and SDPConeSetRMatrix().

                                                                      {
  int info;
  DSDPFunctionBegin;
  info=SDPConeCheckJ(sdpcone,blockj);DSDPCHKERR(info);
  info=SDPConeValidStorageFormat(sdpcone,format);DSDPCHKERR(info);
  if (sdpcone->blk[blockj].format=='N'){
    sdpcone->blk[blockj].format = format;
  }
  if (sdpcone->blk[blockj].format != format){
    DSDPSETERR3(4,"Check format of Data Matrix: Block: %d, %c -- expecting %c\n",
            blockj,format,sdpcone->blk[blockj].format);
  }
  DSDPFunctionReturn(0);
}


Generated by  Doxygen 1.6.0   Back to index