project-asgard / asgard

MIT License
27 stars 20 forks source link

Output snapshot matrix of data with appended time slices #294

Closed sbdepascuale closed 4 years ago

sbdepascuale commented 4 years ago

Is your feature request related to a problem? Please describe. Ln 400 of asgard.m at "saveOutput." When marked true code hits variable unknown error for "deg, LevX, and LevV" using the call to "project_diff1" in PDES/ folder. For example,

[f_err,f_wav,f_real,coord] = asgard(projecti_diff1,'lev',7,'deg',3,'timestep_method','BE', 'dt',dt,'num_steps',it,'quiet',true); Describe the solution you'd like It would be nice to have an option for asgard.m to output an indexed matrix of values including intermediate steps in the integration over the time loop defined in Ln 68 for variable "L." For example,

for L = 1:num_steps ... fval_real_accumulate(:,L) = fval_realspace; ... end save(fName,'fval_real_accumulate','coord','num_steps','dt'); end

Describe alternatives you've considered I modified the identified hardcoded conditional statement at Ln 400 as shown above, but it would be better to wrap the capability in a keyword argument to pass into the function similar to the plotting call.

Additional context The requirement for saving or creating a "snapshot matrix" is for integration with a DMD procedure that uses data arranged in "dimensions vs time" as "rows vs columns."

bmcdanie commented 4 years ago

hey @sbdepascuale - you probably want this at https://github.com/project-asgard/DG-SparseGrid/issues. That's the MATLAB side repo.

sbdepascuale commented 4 years ago

Copied to the appropriate repo.