<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<meta name="Generator" content="Zarafa WebApp v7.1.14-51822">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Memory-saving method for data passing</title>
</head>
<body>
<p style="padding: 0; margin: 0;"><span id="_mce_caret" data-mce-bogus="true"><span style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;" data-mce-style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;">Good day,<br><br>I am currently developping a bunch of plugins (filters) for Paraview in the following setup:</span></span></p><p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;" data-mce-style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;"><br data-mce-bogus="1"></span></p><p style="padding: 0; margin: 0;"><span id="_mce_caret" data-mce-bogus="true"><span style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;" data-mce-style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;">I have input data as a rectilinear grid, including an array of scalar values per cell (volume-of-fluid data (vof)). On this data I now want to perform some calculations. First, a plugin calculates the gradient. Then, another plugin takes the grid with the vof-data and the gradients to calculate other vectors. This goes on for a few plugins.<br><br>The problem I get is that every time another filter is applied onto the last one, I copy all the data and add another array with the filter's own results. Thus, the second filter stores its own calculation and the source data, the third filter stores its own calculation, the calculation of the previous plugin and the source data.<br><br>You can see, that this results in a huge increase of memory usage.<br><br>Now to my question: Is there a possibility or method which passes along a pointer, or a copy pointing to the input of the plugin to which I then only need to add another array? Additionally I might add that the grid itself always stays the same, only each filter appends another array.<br><br>I hope you can help me, or at least quickly tell me if it is not possible at all.<br><br>Kind regards,<br>Alexander Straub<br></span></span></p>
</body>
</html>