void Foam::fieldValues::fieldValueDelta::writeFileHeader(const label i) { const wordList& fields1 = source1Ptr_->fields(); const wordList& fields2 = source2Ptr_->fields(); DynamicList<word> commonFields(fields1.size()); forAll(fields1, i) { label index = findIndex(fields2, fields1[i]); if (index != -1) { commonFields.append(fields1[i]); } }
int main(int argc,char **argv) { int npv; int i; if(argc!=2) { printf("usage: createIocClient <nrecords>\n"); exit(1); } sscanf(argv[1],"%d",&npv); for(i=0; i<npv; i++) { printf("record(ai,\"mrkClient%04d\") {\n",i); commonFields(); printf("}\n"); } return(0); }
void Foam::functionObjects::fieldValues::fieldValueDelta::writeFileHeader ( const label i ) { const wordList& fields1 = region1Ptr_->fields(); const wordList& fields2 = region2Ptr_->fields(); DynamicList<word> commonFields(fields1.size()); forAll(fields1, fieldi) { label index = findIndex(fields2, fields1[fieldi]); if (index != -1) { commonFields.append(fields1[fieldi]); } }