NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ distributed_timestep_array() [2/3]

Definition at line 29 of file cntr_distributed_timestep_array_impl.hpp.

References cntr::distributed_timestep_array< T >::data(), cntr::distributed_timestep_array< T >::G(), cntr::distributed_timestep_array< T >::n(), cntr::distributed_timestep_array< T >::nt(), cntr::distributed_timestep_array< T >::ntasks(), cntr::distributed_timestep_array< T >::ntau(), cntr::distributed_timestep_array< T >::sig(), cntr::distributed_timestep_array< T >::size(), cntr::distributed_timestep_array< T >::tid(), and cntr::distributed_timestep_array< T >::tstp().

29  {
30  // default
31  n_=a.n();
32  tid_=a.tid();
33  ntasks_=a.ntasks();
34  data_=a.data(); // note: this copies the data of a
35  tstp_=a.tstp();
36  nt_=a.nt();
37  ntau_=a.ntau();
38  size_=a.size();
39  sig_=a.sig();
40  G_=a.G(); // this copies only the pointers of G_[j], they still point to the data of a
41  // reset G_[j] to point to the new data
42  for(int j=0;j<n_;j++) G_[j].set_to_data(data_.block(j),tstp_,ntau_,size_,sig_);
43 }
T * block(int j)
Returns the pointer to block j.
+ Here is the call graph for this function: