itaps-parallel inconsistencies in getAllVtxCoords

Carl Ollivier-Gooch cfog at mech.ubc.ca
Sun Sep 14 16:56:17 CDT 2008


Tim Tautges wrote:
> I'd rather we returned 3*num_vtx, that way apps don't need to call 
> num_dimensions and branch on that.  But, I do 3d for everything.  Come 
> to think of it, why is it we need to prescribe what is returned? There's 
> a size returned for that coordinate array, isn't there?  Then the number 
> of dims is coords_size/num_vtx.

But the app knows whether it's dealing with a 2D mesh or a 3D mesh, 
surely, and isn't too likely to need to do that branch in inner loops.

Carl

-- 
------------------------------------------------------------------------
Dr. Carl Ollivier-Gooch, P.Eng.                   Voice: +1-604-822-1854
Associate Professor                                 Fax: +1-604-822-2403
Department of Mechanical Engineering             email: cfog at mech.ubc.ca
University of British Columbia              http://www.mech.ubc.ca/~cfog
Vancouver, BC  V6T 1Z4                  http://tetra.mech.ubc.ca/ANSLab/
------------------------------------------------------------------------




More information about the itaps-parallel mailing list