mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
coding style adherence
- markup codingStyleGuide.org examples so they actually indent correctly - use 'Info<<' as per codingStyleGuide instead of 'Info <<'
This commit is contained in:
@ -7,7 +7,7 @@ int USERD_bkup
|
||||
int backup_type)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_bkup" << endl
|
||||
Info<< "Entering: USERD_bkup" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
return Z_ERR;
|
||||
|
||||
@ -5,7 +5,7 @@ void USERD_exit_routine
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_exit_routine" << endl
|
||||
Info<< "Entering: USERD_exit_routine" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -8,8 +8,8 @@ int USERD_get_border_availability
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_border_availability for part_number "
|
||||
<< part_number << endl
|
||||
Info<< "Entering: USERD_get_border_availability for part_number "
|
||||
<< part_number << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ int USERD_get_border_elements_by_type
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_border_elements_by_type" << endl
|
||||
Info<< "Entering: USERD_get_border_elements_by_type" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
int USERD_get_changing_geometry_status(void)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_changing_geometry_status" << endl << flush;
|
||||
Info<< "Entering: USERD_get_changing_geometry_status" << endl << flush;
|
||||
#endif
|
||||
|
||||
// Choose the most general option
|
||||
|
||||
@ -9,7 +9,7 @@ float USERD_get_constant_val
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_constant_val" << endl << flush;
|
||||
Info<< "Entering: USERD_get_constant_val" << endl << flush;
|
||||
#endif
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
@ -9,7 +9,7 @@ int USERD_get_descrip_lines
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_descrip_lines" << endl
|
||||
Info<< "Entering: USERD_get_descrip_lines" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
@ -24,7 +24,7 @@ int USERD_get_descrip_lines
|
||||
}
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Leaving: USERD_get_descrip_lines" << endl
|
||||
Info<< "Leaving: USERD_get_descrip_lines" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
return Z_OK;
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
int USERD_get_element_label_status(void)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_element_label_status" << endl << flush;
|
||||
Info<< "Entering: USERD_get_element_label_status" << endl << flush;
|
||||
#endif
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@ int USERD_get_geom_timeset_number
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_geom_timeset_number" << endl
|
||||
Info<< "Entering: USERD_get_geom_timeset_number" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ int USERD_get_gold_part_build_info
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_gold_part_build_info" << endl << flush;
|
||||
Info<< "Entering: USERD_get_gold_part_build_info" << endl << flush;
|
||||
#endif
|
||||
|
||||
//# include "checkForNewMesh.H"
|
||||
@ -93,11 +93,11 @@ int USERD_get_gold_part_build_info
|
||||
number_of_elements[0][Z_NFACED] = nFaced;
|
||||
|
||||
/*
|
||||
Info << "nTet04 = " << nTet04 << endl;
|
||||
Info << "nPyr05 = " << nPyr05 << endl;
|
||||
Info << "nHex08 = " << nHex08 << endl;
|
||||
Info << "nPen06 = " << nPen06 << endl;
|
||||
Info << "nFaced = " << nFaced << endl;
|
||||
Info<< "nTet04 = " << nTet04 << endl;
|
||||
Info<< "nPyr05 = " << nPyr05 << endl;
|
||||
Info<< "nHex08 = " << nHex08 << endl;
|
||||
Info<< "nPen06 = " << nPen06 << endl;
|
||||
Info<< "nFaced = " << nFaced << endl;
|
||||
*/
|
||||
|
||||
number_of_nodes[0] = meshPtr->nPoints();
|
||||
@ -148,7 +148,7 @@ int USERD_get_gold_part_build_info
|
||||
}
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Leaving: USERD_get_gold_part_build_info" << endl << flush;
|
||||
Info<< "Leaving: USERD_get_gold_part_build_info" << endl << flush;
|
||||
#endif
|
||||
|
||||
return Z_OK;
|
||||
|
||||
@ -15,7 +15,7 @@ int USERD_get_gold_variable_info
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_gold_variable_info" << endl
|
||||
Info<< "Entering: USERD_get_gold_variable_info" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
@ -112,7 +112,7 @@ int USERD_get_gold_variable_info
|
||||
}
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Leaving: USERD_get_gold_variable_info" << endl
|
||||
Info<< "Leaving: USERD_get_gold_variable_info" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ int USERD_get_matf_set_info
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_matf_set_info" << endl
|
||||
Info<< "Entering: USERD_get_matf_set_info" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ int USERD_get_matf_var_info
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_matf_var_info" << endl
|
||||
Info<< "Entering: USERD_get_matf_var_info" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -5,10 +5,10 @@ int USERD_get_maxsize_info
|
||||
int *max_ijk_dimensions[3]
|
||||
)
|
||||
{
|
||||
return Z_ERR;
|
||||
return Z_ERR;
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_maxsize_info" << endl;
|
||||
Info<< "Entering: USERD_get_maxsize_info" << endl;
|
||||
#endif
|
||||
|
||||
label maxNPoints = 0;
|
||||
@ -34,10 +34,10 @@ int USERD_get_maxsize_info
|
||||
Info<< "Checking time = " << runTimePtr->timeName() << endl;
|
||||
|
||||
const cellShapeList& cells = meshPtr->cellShapes();
|
||||
|
||||
|
||||
const label nPoints = meshPtr->nPoints();
|
||||
const label nCells = cells.size();
|
||||
|
||||
|
||||
maxNPoints = max(maxNPoints, nPoints);
|
||||
|
||||
for (label n=0; n<nCells;n++)
|
||||
|
||||
@ -7,7 +7,7 @@ int USERD_get_model_extents
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_model_extents" << endl
|
||||
Info<< "Entering: USERD_get_model_extents" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@ int USERD_get_name_of_reader
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_name_of_reader" << endl << flush;
|
||||
Info<< "Entering: USERD_get_name_of_reader" << endl << flush;
|
||||
#endif
|
||||
|
||||
strncpy(reader_name, readerName, Z_MAX_USERD_NAME);
|
||||
|
||||
@ -6,9 +6,9 @@ int USERD_get_nfaced_conn
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_nfaced_conn"
|
||||
Info<< "Entering: USERD_get_nfaced_conn"
|
||||
<< ", part_number = " << part_number
|
||||
<< endl
|
||||
<< endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
@ -60,11 +60,11 @@ int USERD_get_nfaced_conn
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else if (part_number < nPatches+2)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -72,7 +72,7 @@ int USERD_get_nfaced_conn
|
||||
}
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Exiting: USERD_get_nfaced_conn" << endl
|
||||
Info<< "Exiting: USERD_get_nfaced_conn" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
return Z_OK;
|
||||
|
||||
@ -6,9 +6,9 @@ int USERD_get_nfaced_nodes_per_face
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_nfaced_nodes_per_face"
|
||||
Info<< "Entering: USERD_get_nfaced_nodes_per_face"
|
||||
<< ", part_number = " << part_number
|
||||
<< endl
|
||||
<< endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
@ -56,7 +56,7 @@ int USERD_get_nfaced_nodes_per_face
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else if (part_number < nPatches+2)
|
||||
{
|
||||
@ -67,7 +67,7 @@ int USERD_get_nfaced_nodes_per_face
|
||||
return Z_ERR;
|
||||
}
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Exiting: USERD_get_nfaced_nodes_per_face" << endl
|
||||
Info<< "Exiting: USERD_get_nfaced_nodes_per_face" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
return Z_OK;
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
int USERD_get_node_label_status(void)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_node_label_status" << endl << flush;
|
||||
Info<< "Entering: USERD_node_label_status" << endl << flush;
|
||||
#endif
|
||||
|
||||
return TRUE;
|
||||
|
||||
@ -2,18 +2,18 @@
|
||||
int USERD_get_nsided_conn
|
||||
(
|
||||
int part_number,
|
||||
int *nsided_conn_array
|
||||
int *nsided_conn_array
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_nsided_conn"
|
||||
Info<< "Entering: USERD_get_nsided_conn"
|
||||
<< ", part_number = " << part_number
|
||||
<< endl
|
||||
<< endl
|
||||
<< flush;
|
||||
#endif
|
||||
if (part_number == 1)
|
||||
{
|
||||
Info << "************* EEEEEEEEERRRRRRRRRRRRRRRRRR *************** " << endl << flush;
|
||||
Info<< "************* EEEEEEEEERRRRRRRRRRRRRRRRRR *************** " << endl << flush;
|
||||
|
||||
}
|
||||
else if (part_number < nPatches+2)
|
||||
@ -42,7 +42,7 @@ int USERD_get_nsided_conn
|
||||
return Z_ERR;
|
||||
}
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Exiting: USERD_get_nsided_conn" << endl
|
||||
Info<< "Exiting: USERD_get_nsided_conn" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
return Z_OK;
|
||||
|
||||
@ -7,7 +7,7 @@ int USERD_get_num_of_time_steps
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_num_of_time_steps" << endl
|
||||
Info<< "Entering: USERD_get_num_of_time_steps" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
//======================================================================
|
||||
//
|
||||
//
|
||||
//======================================================================
|
||||
int USERD_get_number_of_files_in_dataset(void)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_number_of_files_in_dataset" << endl << flush;
|
||||
Info<< "Entering: USERD_get_number_of_files_in_dataset" << endl << flush;
|
||||
#endif
|
||||
|
||||
// use 1 insted of 0 which gives an un-necessary warning.
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
|
||||
int USERD_get_number_of_material_sets
|
||||
(
|
||||
void
|
||||
(
|
||||
void
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_number_of_material_sets" << endl
|
||||
Info<< "Entering: USERD_get_number_of_material_sets" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
// No materials
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@ int USERD_get_number_of_materials
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_number_of_materials" << endl
|
||||
Info<< "Entering: USERD_get_number_of_materials" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
int USERD_get_number_of_model_parts(void)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_number_of_model_parts" << endl << flush;
|
||||
Info<< "Entering: USERD_get_number_of_model_parts" << endl << flush;
|
||||
#endif
|
||||
|
||||
return Numparts_available;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
int USERD_get_number_of_variables(void)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_number_of_variables" << endl << flush;
|
||||
Info<< "Entering: USERD_get_number_of_variables" << endl << flush;
|
||||
#endif
|
||||
|
||||
return Num_variables;
|
||||
|
||||
@ -4,7 +4,7 @@ int USERD_get_number_of_timesets
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_number_of_timesets" << endl
|
||||
Info<< "Entering: USERD_get_number_of_timesets" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@ int USERD_get_part_coords
|
||||
{
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_part_coords" << endl <<
|
||||
Info<< "Entering: USERD_get_part_coords" << endl <<
|
||||
"part_number = " << part_number << endl << flush;
|
||||
#endif
|
||||
|
||||
@ -19,7 +19,7 @@ int USERD_get_part_coords
|
||||
|
||||
const vectorField& points = meshPtr->points();
|
||||
label nPoints = points.size();
|
||||
|
||||
|
||||
for (label indx=0; indx<nPoints; indx++)
|
||||
{
|
||||
coord_array[0][indx+1] = (float)points[indx].x();
|
||||
@ -36,7 +36,7 @@ int USERD_get_part_coords
|
||||
const polyBoundaryMesh& bMesh = meshPtr->boundaryMesh();
|
||||
const vectorField& points = bMesh[patchi].points();
|
||||
label nPoints = points.size();
|
||||
|
||||
|
||||
for (label indx=0; indx<nPoints; indx++)
|
||||
{
|
||||
coord_array[0][indx+1] = (float)points[indx].x();
|
||||
@ -70,7 +70,7 @@ int USERD_get_part_coords
|
||||
}
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Leaving: USERD_get_part_coords" << endl << flush;
|
||||
Info<< "Leaving: USERD_get_part_coords" << endl << flush;
|
||||
#endif
|
||||
|
||||
return Z_OK;
|
||||
|
||||
@ -7,8 +7,8 @@ int USERD_get_part_element_ids_by_type
|
||||
{
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_part_element_ids_by_type" << endl
|
||||
<< "part_number = " << part_number << endl
|
||||
Info<< "Entering: USERD_get_part_element_ids_by_type" << endl
|
||||
<< "part_number = " << part_number << endl
|
||||
<< "element_type = " << element_type << endl << flush;
|
||||
#endif
|
||||
|
||||
@ -31,7 +31,7 @@ int USERD_get_part_element_ids_by_type
|
||||
{
|
||||
label nFaces = cells[n].size();
|
||||
labelList points = cellShapes[n];
|
||||
|
||||
|
||||
if ((nFaces == 6) && (points.size() == 8))
|
||||
{
|
||||
elemid_array[nHex08++] = n + 1;
|
||||
@ -44,7 +44,7 @@ int USERD_get_part_element_ids_by_type
|
||||
{
|
||||
label nFaces = cells[n].size();
|
||||
labelList points = cellShapes[n];
|
||||
|
||||
|
||||
if ((nFaces == 5) && (points.size() == 6))
|
||||
{
|
||||
elemid_array[nPen06++] = n + 1;
|
||||
@ -57,7 +57,7 @@ int USERD_get_part_element_ids_by_type
|
||||
{
|
||||
label nFaces = cells[n].size();
|
||||
labelList points = cellShapes[n];
|
||||
|
||||
|
||||
if ((nFaces == 5) && (points.size() == 5))
|
||||
{
|
||||
elemid_array[nPyr05++] = n + 1;
|
||||
@ -70,7 +70,7 @@ int USERD_get_part_element_ids_by_type
|
||||
{
|
||||
label nFaces = cells[n].size();
|
||||
labelList points = cellShapes[n];
|
||||
|
||||
|
||||
if ((nFaces == 4) && (points.size() == 4))
|
||||
{
|
||||
elemid_array[nTet04++] = n + 1;
|
||||
@ -101,7 +101,7 @@ int USERD_get_part_element_ids_by_type
|
||||
}
|
||||
else if (part_number < nPatches+2)
|
||||
{
|
||||
|
||||
|
||||
const polyBoundaryMesh& bMesh = meshPtr->boundaryMesh();
|
||||
label patchi = part_number - 2;
|
||||
|
||||
@ -127,7 +127,7 @@ int USERD_get_part_element_ids_by_type
|
||||
{
|
||||
elemid_array[nQuad04++] = facei + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (element_type == Z_NSIDED)
|
||||
{
|
||||
@ -155,7 +155,7 @@ int USERD_get_part_element_ids_by_type
|
||||
}
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Leaving: USERD_get_part_element_ids_by_type" << endl << flush;
|
||||
Info<< "Leaving: USERD_get_part_element_ids_by_type" << endl << flush;
|
||||
#endif
|
||||
|
||||
return Z_OK;
|
||||
|
||||
@ -11,47 +11,47 @@ int USERD_get_part_elements_by_type
|
||||
<< "element_type = " << element_type;
|
||||
if (element_type == Z_HEX08)
|
||||
{
|
||||
Info << " Z_HEX08";
|
||||
Info<< " Z_HEX08";
|
||||
}
|
||||
else if (element_type == Z_PEN06)
|
||||
{
|
||||
Info << " Z_PEN06";
|
||||
Info<< " Z_PEN06";
|
||||
}
|
||||
else if (element_type == Z_PYR05)
|
||||
{
|
||||
Info << " Z_PYR05";
|
||||
Info<< " Z_PYR05";
|
||||
}
|
||||
else if (element_type == Z_TET04)
|
||||
{
|
||||
Info << " Z_TET04";
|
||||
Info<< " Z_TET04";
|
||||
}
|
||||
else if (element_type == Z_TRI03)
|
||||
{
|
||||
Info << " Z_TRI03";
|
||||
Info<< " Z_TRI03";
|
||||
}
|
||||
else if (element_type == Z_QUA04)
|
||||
{
|
||||
Info << " Z_QUA04";
|
||||
Info<< " Z_QUA04";
|
||||
}
|
||||
else if (element_type == Z_NFACED)
|
||||
{
|
||||
Info << " Z_NFACED";
|
||||
Info<< " Z_NFACED";
|
||||
}
|
||||
else if (element_type == Z_NSIDED)
|
||||
{
|
||||
Info << " Z_NSIDED";
|
||||
Info<< " Z_NSIDED";
|
||||
}
|
||||
else
|
||||
{
|
||||
Info << " unknown";
|
||||
Info<< " unknown";
|
||||
}
|
||||
Info << endl << flush;
|
||||
Info<< endl << flush;
|
||||
# endif
|
||||
|
||||
if (part_number == 1)
|
||||
{
|
||||
const cellShapeList& cellShapes = meshPtr->cellShapes();
|
||||
|
||||
|
||||
//================================
|
||||
// hexahedron
|
||||
//================================
|
||||
@ -64,7 +64,7 @@ int USERD_get_part_elements_by_type
|
||||
{
|
||||
const cellShape& cellShape = cellShapes[celli];
|
||||
const cellModel& cellModel = cellShape.model();
|
||||
|
||||
|
||||
if (cellModel == hex)
|
||||
{
|
||||
forAll(cellShape, ip)
|
||||
@ -87,7 +87,7 @@ int USERD_get_part_elements_by_type
|
||||
{
|
||||
const cellShape& cellShape = cellShapes[celli];
|
||||
const cellModel& cellModel = cellShape.model();
|
||||
|
||||
|
||||
if (cellModel == prism)
|
||||
{
|
||||
forAll(cellShape, ip)
|
||||
@ -110,7 +110,7 @@ int USERD_get_part_elements_by_type
|
||||
{
|
||||
const cellShape& cellShape = cellShapes[celli];
|
||||
const cellModel& cellModel = cellShape.model();
|
||||
|
||||
|
||||
if (cellModel == pyr)
|
||||
{
|
||||
forAll(cellShape, ip)
|
||||
@ -133,7 +133,7 @@ int USERD_get_part_elements_by_type
|
||||
{
|
||||
const cellShape& cellShape = cellShapes[celli];
|
||||
const cellModel& cellModel = cellShape.model();
|
||||
|
||||
|
||||
if (cellModel == tet)
|
||||
{
|
||||
forAll(cellShape, ip)
|
||||
|
||||
@ -5,8 +5,8 @@ int USERD_get_part_node_ids
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_part_node_ids" << endl
|
||||
<< "part_number = " << part_number << endl
|
||||
Info<< "Entering: USERD_get_part_node_ids" << endl
|
||||
<< "part_number = " << part_number << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
@ -25,7 +25,7 @@ int USERD_get_part_node_ids
|
||||
const vectorField& points = bMesh[patchi].points();
|
||||
|
||||
label nPoints = points.size();
|
||||
|
||||
|
||||
for (label indx=0; indx<nPoints; indx++)
|
||||
{
|
||||
nodeid_array[indx] = indx + 1;
|
||||
@ -52,7 +52,7 @@ int USERD_get_part_node_ids
|
||||
}
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Leaving: USERD_get_part_node_ids" << endl
|
||||
Info<< "Leaving: USERD_get_part_node_ids" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -5,13 +5,13 @@ int USERD_get_reader_release
|
||||
{
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_reader_release" << endl;
|
||||
Info<< "Entering: USERD_get_reader_release" << endl;
|
||||
#endif
|
||||
|
||||
strncpy(release_number, Foam::FOAMbuild, Z_MAX_USERD_NAME);
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Leaving: USERD_get_reader_release" << endl;
|
||||
Info<< "Leaving: USERD_get_reader_release" << endl;
|
||||
#endif
|
||||
|
||||
return Z_OK;
|
||||
|
||||
@ -5,13 +5,13 @@ int USERD_get_reader_version
|
||||
{
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_reader_version" << endl;
|
||||
Info<< "Entering: USERD_get_reader_version" << endl;
|
||||
#endif
|
||||
|
||||
strncpy(version_number, readerVersion, Z_MAX_USERD_NAME);
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Leaving: USERD_get_reader_version" << endl;
|
||||
Info<< "Leaving: USERD_get_reader_version" << endl;
|
||||
#endif
|
||||
|
||||
return Z_OK;
|
||||
|
||||
@ -29,7 +29,7 @@ int USERD_get_sol_times
|
||||
{
|
||||
solution_times[n] += addCAD;
|
||||
|
||||
Info << "Time[" << n << "] = " << timeDirs[n+1].value()
|
||||
Info<< "Time[" << n << "] = " << timeDirs[n+1].value()
|
||||
<< " was corrected to " << solution_times[n] << endl;
|
||||
}
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ int USERD_get_var_by_component
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_var_by_component" << endl
|
||||
Info<< "Entering: USERD_get_var_by_component" << endl
|
||||
<< "which_variable = " << which_variable << endl
|
||||
<< "which_part = " << which_part << endl
|
||||
<< "var_type = " << var_type << endl
|
||||
@ -32,7 +32,7 @@ int USERD_get_var_by_component
|
||||
{
|
||||
if (which_part == 1)
|
||||
{
|
||||
# include "getFieldScalar.H"
|
||||
# include "getFieldScalar.H"
|
||||
}
|
||||
else if (which_part < nPatches+2)
|
||||
{
|
||||
@ -51,7 +51,7 @@ int USERD_get_var_by_component
|
||||
{
|
||||
if (which_part == 1)
|
||||
{
|
||||
# include "getFieldVector.H"
|
||||
# include "getFieldVector.H"
|
||||
}
|
||||
else if (which_part < nPatches+2)
|
||||
{
|
||||
@ -70,10 +70,10 @@ int USERD_get_var_by_component
|
||||
else if (var_type == Z_TENSOR9)
|
||||
{
|
||||
// all tensor are treated as asymmetric tensors here
|
||||
|
||||
|
||||
if (which_part == 1)
|
||||
{
|
||||
# include "getFieldTensor.H"
|
||||
# include "getFieldTensor.H"
|
||||
}
|
||||
else if (which_part < nPatches+2)
|
||||
{
|
||||
@ -89,13 +89,13 @@ int USERD_get_var_by_component
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
return Z_UNDEF;
|
||||
}
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Leaving: USERD_get_var_by_component" << endl
|
||||
Info<< "Leaving: USERD_get_var_by_component" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ int USERD_get_var_value_at_specific
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_get_var_value_at_specific" << endl
|
||||
Info<< "Entering: USERD_get_var_value_at_specific" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
// Not sure if it is 0 or 1 based
|
||||
@ -63,7 +63,7 @@ int USERD_get_var_value_at_specific
|
||||
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Leaving: USERD_get_var_value_at_specific" << endl
|
||||
Info<< "Leaving: USERD_get_var_value_at_specific" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
return Z_OK;
|
||||
|
||||
@ -6,11 +6,11 @@ int USERD_load_matf_data
|
||||
int wtyp,
|
||||
int mat_type,
|
||||
int *ids_list,
|
||||
float *val_list
|
||||
float *val_list
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_load_matf_data" << endl
|
||||
Info<< "Entering: USERD_load_matf_data" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ int USERD_set_filenames
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_set_filenames" << endl << flush;
|
||||
Info<< "Entering: USERD_set_filenames" << endl << flush;
|
||||
#endif
|
||||
|
||||
char tmp[100];
|
||||
@ -173,7 +173,7 @@ int USERD_set_filenames
|
||||
|
||||
if (sprayHeader.headerOk())
|
||||
{
|
||||
Info << "[Found lagrangian]" << endl;
|
||||
Info<< "[Found lagrangian]" << endl;
|
||||
|
||||
delete sprayPtr;
|
||||
|
||||
@ -201,7 +201,7 @@ int USERD_set_filenames
|
||||
Numparts_available = Num_unstructured_parts + Num_structured_parts + nPatches;
|
||||
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Leaving: USERD_set_filenames" << endl << flush;
|
||||
Info<< "Leaving: USERD_set_filenames" << endl << flush;
|
||||
#endif
|
||||
|
||||
return Z_OK;
|
||||
|
||||
@ -5,7 +5,7 @@ void USERD_set_server_number
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_set_server_number" << endl
|
||||
Info<< "Entering: USERD_set_server_number" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ void USERD_set_time_set_and_step
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_set_time_set_and_step" << endl << flush;
|
||||
Info<< "Entering: USERD_set_time_set_and_step" << endl << flush;
|
||||
#endif
|
||||
// update the global pointers and variables
|
||||
// to the current time-step
|
||||
|
||||
@ -5,11 +5,11 @@ int USERD_size_matf_data
|
||||
int part_id,
|
||||
int wtyp,
|
||||
int mat_type,
|
||||
int *matf_size
|
||||
int *matf_size
|
||||
)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_size_matf_data" << endl
|
||||
Info<< "Entering: USERD_size_matf_data" << endl
|
||||
<< flush;
|
||||
#endif
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
void USERD_stop_part_building(void)
|
||||
{
|
||||
#ifdef ENSIGHTDEBUG
|
||||
Info << "Entering: USERD_stop_part_building" << endl << flush;
|
||||
Info<< "Entering: USERD_stop_part_building" << endl << flush;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ if (nVar >= 0)
|
||||
}
|
||||
else
|
||||
{
|
||||
// Info << "getLagrangianScalar: nVar = " << nVar << endl;
|
||||
// Info<< "getLagrangianScalar: nVar = " << nVar << endl;
|
||||
return Z_UNDEF;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user