Skip to content
Gijs Molenaar edited this page Feb 13, 2014 · 4 revisions

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.

# create a MeqCondeq node called 'condeq'. A MeqCondeq will contain# both a vellset values field and a perturbed values record after a# solver has issued the request to the Condeq. In out example# the Condeq node would have two child nodes called 'add' and 'coeff'  ns['condeq'] <<Meq.Condeq(ns['add'],ns['coeff'])# create a MeqStripper node simply to show that it does something  ns['stripper'] << Meq.Stripper(ns['condeq'])# create a solver  ns['solver'] << Meq.Solver(      num_iter=3,debug_level=10,solvable="coeff", children = ns['condeq'])# create a ReqSeq  ns['reqseq'] << Meq.ReqSeq(ns['solver'],ns['stripper'], result_index=1)# The ReqSeq issues requests to both of its children in sequence. So the# solver will receive a request first. The solver will then request data# from the condeq. This causes the condeq to generate perturbed_value# records in its vellset. Then the Stripper will issue its request to the# condeq. The Stripper will get the condeq's vellset minus the perturbed_value# record.```
Clone this wiki locally