Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FromJM] Added the coordinates of the nodes on polyline in Tecplot output under USE_PETSC #90

Merged
merged 1 commit into from
Feb 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions FEM/Output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1648,6 +1648,9 @@ double COutput::NODWritePLYDataTEC(int number)
if (is_CSV)
tec_file << "\"TIME\" ";
tec_file << "\"DIST\" ";
#if defined(USE_PETSC)
tec_file << "\"X\", \"Y\", \"Z\" "; //JM
#endif
for (size_t k = 0; k < no_variables; k++)
{
tec_file << "\"" << _nod_value_vector[k] << "\" ";
Expand Down Expand Up @@ -1734,6 +1737,15 @@ double COutput::NODWritePLYDataTEC(int number)
// WW
// long old_gnode = nodes_vector[m_ply->getOrderedPoints()[j]];
gnode = nodes_vector[j];

#if defined(USE_PETSC)
//JM start
// XYZ
const double *x = m_msh->nod_vector[gnode]->getData();
for (size_t i = 0; i < 3; i++)
tec_file << x[i] << " ";
//JM end
#endif
for (size_t k = 0; k < no_variables; k++)
{
// if(!(_nod_value_vector[k].compare("FLUX")==0)) // removed JOD, does not work for multiple flow processes
Expand Down