Re: passing a variable number of args/vectors to a routine
- From: dpb <none@xxxxxxx>
- Date: Thu, 31 Jan 2008 08:43:53 -0600
Mirko.Vukovic@xxxxxxxxx wrote:
On Jan 30, 6:07 pm, dpb <n...@xxxxxxx> wrote:Mirko.Vuko...@xxxxxxxxx wrote:
...
I pass the data to the TecPlot dump routine by calling:That's not the question -- where do vDataN come from and why can't they
call dump_data( vData1,vData2, ...)
be an ALLOCATED array of the proper dimension, instead?
--
Hmm, I am not sure what you're getting at. But here's my story:
I am doing a 1-D time-dependent electromagnetic simulation and
calculate E and B fields. These are stored in their own vectors.
After each time step, I want to pass the two vectors to the tecplot
dump routine. So, I do allocate the two vectors at the beginning of
the run.
But I want to write the tecplot dump routine because eventually, I
will be following more variables than that, and I will be passing it
more vectors.
I'm saying for the output routine instead of creating more vectors, create an array and populate it at each time step instead...
--
.
- References:
- passing a variable number of args/vectors to a routine
- From: Mirko . Vukovic
- Re: passing a variable number of args/vectors to a routine
- From: dpb
- Re: passing a variable number of args/vectors to a routine
- From: Mirko . Vukovic
- Re: passing a variable number of args/vectors to a routine
- From: dpb
- Re: passing a variable number of args/vectors to a routine
- From: Mirko . Vukovic
- passing a variable number of args/vectors to a routine
- Prev by Date: Re: computing Bernoulli numbers
- Next by Date: Re: Fortran 2003: abstract interfaces
- Previous by thread: Re: passing a variable number of args/vectors to a routine
- Next by thread: How to quote the " character in a format statement?
- Index(es):