Paths unchanged when simulation data is moved from FLUIDDYN_PATH_SCRATCH to FLUIDSIM_PATH
Created originally on Bitbucket by avmo (Ashwin Vishnu)
This prevents me from plotting the spectra etc... when I am running a simulation directly from the python console. I added this to OutputBasePseudoSpectral class to cure this issue:
#!python
def end_of_simul(self, total_time):
super(OutputBasePseudoSpectral, self).end_of_simul(total_time)
path = self.path_run
if mpi.rank == 0:
try:
self.spatial_means.path_file = path + '/spatial_means.txt'
self.spectra.path_file1D = path + '/spectra1D.h5'
self.spectra.path_file2D = path + '/spectra2D.h5'
self.spect_energy_budg.path_file = path + '/spectral_energy_budget.h5'
self.pdf.path_file = path + '/pdf.h5'
self.increments.path_file = path + '/increments.h5' # FIXME:increments.path??
self.time_signals_fft.path_file = path + '/time_sigK.h5'
except AttributeError:
pass