算法计算段不连续可计算
This commit is contained in:
parent
3818e80601
commit
0b91d6c5aa
|
|
@ -583,23 +583,23 @@ int CMemRdWt::Const()
|
||||||
strncpy(buf,pp,k-i);
|
strncpy(buf,pp,k-i);
|
||||||
buf[k-i]='\0';
|
buf[k-i]='\0';
|
||||||
if(j==0) {
|
if(j==0) {
|
||||||
if(Sdep&&(float)atof(buf)!=Edep) {
|
// if(Sdep&&(float)atof(buf)!=Edep) {
|
||||||
char temm[200],temm1[200];
|
// char temm[200],temm1[200];
|
||||||
temm1[0]=0;
|
// temm1[0]=0;
|
||||||
int t=strchr(pp,0x0d)-pp;
|
// int t=strchr(pp,0x0d)-pp;
|
||||||
if(t>0) {
|
// if(t>0) {
|
||||||
strncpy(temm1,pp,t);
|
// strncpy(temm1,pp,t);
|
||||||
temm1[t]=0;
|
// temm1[t]=0;
|
||||||
}
|
// }
|
||||||
sprintf(temm,"深度段%s与前一段%g-%g不连续!",temm1,Sdep,Edep);
|
// sprintf(temm,"深度段%s与前一段%g-%g不连续!",temm1,Sdep,Edep);
|
||||||
if(SlfError){
|
// if(SlfError){
|
||||||
strcpy(SlfError->ErrorStr,temm);
|
// strcpy(SlfError->ErrorStr,temm);
|
||||||
SlfError->ErrorNo=-1;
|
// SlfError->ErrorNo=-1;
|
||||||
}
|
// }
|
||||||
if(!isfirstrun){
|
// if(!isfirstrun){
|
||||||
mes.append(temm);
|
// mes.append(temm);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
Sdep=(float)atof(buf);
|
Sdep=(float)atof(buf);
|
||||||
if(Sdep<HD->Stdep)HD->Stdep=Sdep;
|
if(Sdep<HD->Stdep)HD->Stdep=Sdep;
|
||||||
j++;
|
j++;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user