SCIRun User Mailing List

Text archives Help


Re: [SCIRUN-USERS] zeroing out a field


Chronological Thread 
  • From: David Weinstein <dmw@sci.utah.edu>
  • To: Elisha Hughes <erh0509@westminstercollege.edu>
  • Cc: <scirun-users@sci.utah.edu>
  • Subject: Re: [SCIRUN-USERS] zeroing out a field
  • Date: Tue, 5 Jul 2005 00:56:18 -0600

Hi Elisha,

If your module is templated, you can look at the VectorMagnitude code for an example; if it's not, you can use something simpler like this:

    LatVolField<double> *myfield;
    ...
    myfield->fdata().initialize(0);

Cheers,
Dave


On Jul 3, 2005, at 10:12 PM, Elisha Hughes wrote:

Dear SCIRun,

I am working with a homemade module that needs to set all the data in a field to zero.

Do you have any advice regarding the best way to accomplish this?

Thanks for your help,
Elisha

====================================================================== =====
== The SCIRun Users mailing list: send email to majordomo@sci.utah.edu ==
== for more details. ==
== Please acknowledge use of SCIRun in your papers and reports: ==
== see http://software.sci.utah.edu/scirun- biopse_citation.bib ==
====================================================================== =====


===========================================================================
== The SCIRun Users mailing list: send email to majordomo@sci.utah.edu   ==
== for more details.                                                     ==
== Please acknowledge use of SCIRun in your papers and reports:          ==
==   see http://software.sci.utah.edu/scirun-biopse_citation.bib         ==
===========================================================================





Archive powered by MHonArc 2.6.16.

Top of page