Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Plotting is broken with --enable-complex #47
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Yikes. I wish I'd just done this when I was thinking about it. Sorry.
The path I'd had in mind was to mimic what I did for vector-valued variables: in both EquationSystems::build_variable_names and EquationSystems::build_solution_vector (search for TYPE_VECTOR), check if variable is complex. If so, add variable names for each component (I'd had in mind mimicking what was done in GMV output) and plopping the corresponding solution values in the correct index locations for each component. This should Just Work (TM) for Exodus (and I think all the others too except VTK), but GMVIO would have to be updated to use build_solutions_names/vector.
I may have 1. forgotten something and/or 2. Not thought it through all the way, but I think it should be simple and only a few extra lines. Don't have time to contribute code on this ATM, but let me know if the code looks nebulous in there and I'll do my best to shine some light.