| 58 | static int numShellMITC4 = 0; |
| 59 | |
| 60 | void * |
| 61 | OPS_ShellMITC4(void) |
| 62 | { |
| 63 | if (numShellMITC4 == 0) { |
| 64 | // opserr << "Using ShellMITC4 - Developed by: Leopoldo Tesser, Diego A. Talledo, V�ronique Le Corvec\n"; |
| 65 | numShellMITC4++; |
| 66 | } |
| 67 | |
| 68 | Element *theElement = 0; |
| 69 | |
| 70 | int numArgs = OPS_GetNumRemainingInputArgs(); |
| 71 | |
| 72 | if (numArgs < 6) { |
| 73 | opserr << "Want: element ShellMITC4 $tag $iNode $jNoe $kNode $lNode $secTag<-updateBasis>"; |
| 74 | return 0; |
| 75 | } |
| 76 | |
| 77 | int iData[6]; |
| 78 | int numData = 6; |
| 79 | if (OPS_GetInt(&numData, iData) != 0) { |
| 80 | opserr << "WARNING invalid integer tag: element ShellMITC4 \n"; |
| 81 | return 0; |
| 82 | } |
| 83 | bool updateBasis = false; |
| 84 | |
| 85 | int dampingTag = 0; |
| 86 | Damping *theDamping = 0; |
| 87 | |
| 88 | while(OPS_GetNumRemainingInputArgs() > 0) { |
| 89 | const char* type = OPS_GetString(); |
| 90 | if(strcmp(type,"-updateBasis") == 0) |
| 91 | updateBasis = true; |
| 92 | else if(strcmp(type,"-damp") == 0) { |
| 93 | if(OPS_GetNumRemainingInputArgs() > 0) { |
| 94 | numData = 1; |
| 95 | if(OPS_GetIntInput(&numData,&dampingTag) < 0) return 0; |
| 96 | theDamping = OPS_getDamping(dampingTag); |
| 97 | if(theDamping == 0) { |
| 98 | opserr<<"damping not found\n"; |
| 99 | return 0; |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | SectionForceDeformation *theSection = OPS_getSectionForceDeformation(iData[5]); |
| 106 | |
| 107 | if (theSection == 0) { |
| 108 | opserr << "ERROR: element ShellMITC4 " << iData[0] << "section " << iData[5] << " not found\n"; |
| 109 | return 0; |
| 110 | } |
| 111 | |
| 112 | theElement = new ShellMITC4(iData[0], iData[1], iData[2], iData[3], |
| 113 | iData[4], *theSection, updateBasis, theDamping); |
| 114 | |
| 115 | return theElement; |
| 116 | } |
| 117 |
no test coverage detected