Error in Example 1. quickmain

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
carlos
Posts: 23
Joined: Fri May 05, 2006 8:30 am
Location: Universidad Pais Vasco

Error in Example 1. quickmain

Post by carlos »

Hello,

I think that there is an error in the main function of the quickmain project.

In version 2.2.1 there is reported one change in code:

2. redo of how tags were cimplemented for MP and SP constraints

I think that since that version, the SP constrains definition in the main function should be:

// create the single-point constraint objects using constructor:
// and then add them to the domain

// SP_Constraint::SP_Constraint(int node, int ndof, int clasTag)

SP_Constraint *sp1 = new SP_Constraint(1, 0, 0.0);
SP_Constraint *sp2 = new SP_Constraint(1, 1, 0.0);
SP_Constraint *sp3 = new SP_Constraint(2, 0, 0.0);
SP_Constraint *sp4 = new SP_Constraint(2, 1, 0.0);
SP_Constraint *sp5 = new SP_Constraint(3, 0, 0.0);
SP_Constraint *sp6 = new SP_Constraint(3, 1, 0.0);

/*

// SP_Constraint(tag, nodeTag, dofID, value)

SP_Constraint *sp1 = new SP_Constraint(1, 1, 0, 0.0);
SP_Constraint *sp2 = new SP_Constraint(2, 1, 1, 0.0);
SP_Constraint *sp3 = new SP_Constraint(3, 2, 0, 0.0);
SP_Constraint *sp4 = new SP_Constraint(4, 2, 1, 0.0);
SP_Constraint *sp5 = new SP_Constraint(5, 3, 0, 0.0);
SP_Constraint *sp6 = new SP_Constraint(6, 3, 1, 0.0);

*/

Regards,
Post Reply