Last change
on this file since 4037 was 4037, checked in by Eric.Larour, 15 years ago |
New results framework. Now, elements have results datasets,
which they fill up as they wish with results found in the inputs.
Then, the results dataset will be processed in OutputResults, to output
something to disk. We ended up putting the results inside the elements,
because they depend on the interpolation, this avoids partitioning of vectors,
and inputs cannot hold different time steps for the same enum!
|
File size:
837 bytes
|
Line | |
---|
1 | /*!\file: InputsToPatches.cpp
|
---|
2 | * \brief fill patches from inputs
|
---|
3 | */
|
---|
4 |
|
---|
5 | #ifdef HAVE_CONFIG_H
|
---|
6 | #include "config.h"
|
---|
7 | #else
|
---|
8 | #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
|
---|
9 | #endif
|
---|
10 |
|
---|
11 | #undef __FUNCT__
|
---|
12 | #define __FUNCT__ "InputsToPatches"
|
---|
13 |
|
---|
14 | #include "./InputToResultx.h"
|
---|
15 | #include "../../DataSet/DataSet.h"
|
---|
16 |
|
---|
17 | void InputToPatches(DataSet* elements,double* patches,int patch_numcols,int max_vertices,int enum_type){
|
---|
18 |
|
---|
19 | int i;
|
---|
20 |
|
---|
21 | /*intermediary:*/
|
---|
22 | Element* element=NULL;
|
---|
23 | int count=0;
|
---|
24 |
|
---|
25 | /*Go through elemnets, and each time an element holds an input with the correct enum_type, increase count by 1, and fill the
|
---|
26 | * patches matrix with the input data: */
|
---|
27 |
|
---|
28 | for(i=0;i<elements->Size();i++){
|
---|
29 |
|
---|
30 | element=(Element*)elements->GetObjectByOffset(i);
|
---|
31 | element->PatchFill(&count,patches,patch_numcols,max_vertices,enum_type);
|
---|
32 |
|
---|
33 | }
|
---|
34 |
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.