40 |
Finley_resetError(); |
Finley_resetError(); |
41 |
if (nodes==NULL || elements==NULL) return; |
if (nodes==NULL || elements==NULL) return; |
42 |
/* set some parameter */ |
/* set some parameter */ |
43 |
|
jac=Finley_ElementFile_borrowJacobeans(elements,nodes,FALSE,Finley_Assemble_reducedIntegrationOrder(data)); |
|
if (data_type==FINLEY_ELEMENTS) { |
|
|
reducedIntegrationOrder=FALSE; |
|
|
} else if (data_type==FINLEY_FACE_ELEMENTS) { |
|
|
reducedIntegrationOrder=FALSE; |
|
|
} else if (data_type==FINLEY_CONTACT_ELEMENTS_1) { |
|
|
reducedIntegrationOrder=FALSE; |
|
|
} else if (data_type==FINLEY_CONTACT_ELEMENTS_2) { |
|
|
reducedIntegrationOrder=FALSE; |
|
|
} else { |
|
|
Finley_setError(TYPE_ERROR,"Finley_Assemble_integrate: integration of data is not possible."); |
|
|
} |
|
|
|
|
|
/* get access to jacobean */ |
|
|
jac=Finley_ElementFile_borrowJacobeans(elements,nodes,FALSE,reducedIntegrationOrder); |
|
|
|
|
44 |
if (Finley_noError()) { |
if (Finley_noError()) { |
45 |
|
|
46 |
/* check the shape of the data */ |
/* check the shape of the data */ |
47 |
if (! numSamplesEqual(data,jac->ReferenceElement->numQuadNodes,elements->numElements)) { |
if (! numSamplesEqual(data,jac->ReferenceElement->numQuadNodes,elements->numElements)) { |
48 |
Finley_setError(TYPE_ERROR,"Finley_Assemble_integrate: illegal number of samples of integrant kernel Data object"); |
Finley_setError(TYPE_ERROR,"Finley_Assemble_integrate: illegal number of samples of integrant kernel Data object"); |
49 |
} |
} |
|
|
|
|
|
|
50 |
/* now we can start */ |
/* now we can start */ |
51 |
|
|
52 |
if (Finley_noError()) { |
if (Finley_noError()) { |