A MeqStripper node deletes the perturbed_value records from a vellset. This node is used if you want to forward the actual vellset value fields to a parent, but not the perturbed values. The following snippet of code illustrates its use.
1 # create a MeqCondeq node called 'condeq'. A MeqCondeq will contain
2 # both a vellset values field and a perturbed values record after a
3 # solver has issued the request to the Condeq. In out example
4 # the Condeq node would have two child nodes called 'add' and 'coeff'
5
6 ns['condeq'] <<Meq.Condeq(ns['add'],ns['coeff'])
7
8 # create a MeqStripper node simply to show that it does something
9 ns['stripper'] << Meq.Stripper(ns['condeq'])
10
11 # create a solver
12 ns['solver'] << Meq.Solver(
13 num_iter=3,debug_level=10,solvable="coeff", children = ns['condeq'])
14
15 # create a ReqSeq
16 ns['reqseq'] << Meq.ReqSeq(ns['solver'],ns['stripper'], result_index=1)
17
18 # The ReqSeq issues requests to both of its children in sequence. So the
19 # solver will receive a request first. The solver will then request data
20 # from the condeq. This causes the condeq to generate perturbed_value
21 # records in its vellset. Then the Stripper will issue its request to the
22 # condeq. The Stripper will get the condeq's vellset minus the perturbed_value
23 # record.
