Changeset 12365
- Timestamp:
- 06/04/12 16:40:38 (13 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 300 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/Container/Constraints.cpp ¶
r12102 r12365 4 4 */ 5 5 6 /*Headers: {{{ 1*/6 /*Headers: {{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 25 25 26 26 /*Object constructors and destructor*/ 27 /*FUNCTION Constraints::Constraints(){{{ 1*/27 /*FUNCTION Constraints::Constraints(){{{*/ 28 28 Constraints::Constraints(){ 29 29 enum_type=ConstraintsEnum; … … 31 31 } 32 32 /*}}}*/ 33 /*FUNCTION Constraints::~Constraints(){{{ 1*/33 /*FUNCTION Constraints::~Constraints(){{{*/ 34 34 Constraints::~Constraints(){ 35 35 return; … … 38 38 39 39 /*Numerics: */ 40 /*FUNCTION Constraints::NumberOfConstraints{{{ 1*/40 /*FUNCTION Constraints::NumberOfConstraints{{{*/ 41 41 int Constraints::NumberOfConstraints(void){ 42 42 -
TabularUnified issm/trunk-jpl/src/c/Container/Constraints.h ¶
r10522 r12365 21 21 public: 22 22 23 /*constructors, destructors: {{{ 1*/23 /*constructors, destructors: {{{*/ 24 24 Constraints(); 25 25 ~Constraints(); 26 26 /*}}}*/ 27 /*numerics: {{{ 1*/27 /*numerics: {{{*/ 28 28 int NumberOfConstraints(void); 29 29 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/Container/DataSet.cpp ¶
r12315 r12365 4 4 */ 5 5 6 /*Headers: {{{ 1*/6 /*Headers: {{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 28 28 29 29 /*Constructors/Destructors*/ 30 /*FUNCTION DataSet::DataSet(){{{ 1*/30 /*FUNCTION DataSet::DataSet(){{{*/ 31 31 DataSet::DataSet(){ 32 32 … … 37 37 } 38 38 /*}}}*/ 39 /*FUNCTION DataSet::DataSet(int dataset_enum){{{ 1*/39 /*FUNCTION DataSet::DataSet(int dataset_enum){{{*/ 40 40 DataSet::DataSet(int dataset_enum){ 41 41 enum_type=dataset_enum; … … 47 47 } 48 48 /*}}}*/ 49 /*FUNCTION DataSet::Copy{{{ 1*/49 /*FUNCTION DataSet::Copy{{{*/ 50 50 DataSet* DataSet::Copy(void){ 51 51 … … 77 77 } 78 78 /*}}}*/ 79 /*FUNCTION DataSet::~DataSet{{{ 1*/79 /*FUNCTION DataSet::~DataSet{{{*/ 80 80 DataSet::~DataSet(){ 81 81 clear(); … … 86 86 87 87 /*Specific methods*/ 88 /*FUNCTION DataSet::AddObject{{{ 1*/88 /*FUNCTION DataSet::AddObject{{{*/ 89 89 int DataSet::AddObject(Object* object){ 90 90 … … 94 94 } 95 95 /*}}}*/ 96 /*FUNCTION DataSet::clear{{{ 1*/96 /*FUNCTION DataSet::clear{{{*/ 97 97 void DataSet::clear(){ 98 98 … … 112 112 } 113 113 /*}}}*/ 114 /*FUNCTION DataSet::DeleteObject{{{ 1*/114 /*FUNCTION DataSet::DeleteObject{{{*/ 115 115 int DataSet::DeleteObject(Object* object){ 116 116 … … 127 127 } 128 128 /*}}}*/ 129 /*FUNCTION DataSet::DeepEcho{{{ 1*/129 /*FUNCTION DataSet::DeepEcho{{{*/ 130 130 void DataSet::DeepEcho(){ 131 131 … … 145 145 } 146 146 /*}}}*/ 147 /*FUNCTION DataSet::Echo{{{ 1*/147 /*FUNCTION DataSet::Echo{{{*/ 148 148 void DataSet::Echo(){ 149 149 … … 163 163 } 164 164 /*}}}*/ 165 /*FUNCTION DataSet::GetEnum(){{{ 1*/165 /*FUNCTION DataSet::GetEnum(){{{*/ 166 166 int DataSet::GetEnum(){ 167 167 return enum_type; 168 168 } 169 169 /*}}}*/ 170 /*FUNCTION DataSet::GetEnum(int offset){{{ 1*/170 /*FUNCTION DataSet::GetEnum(int offset){{{*/ 171 171 int DataSet::GetEnum(int offset){ 172 172 … … 175 175 } 176 176 /*}}}*/ 177 /*FUNCTION DataSet::GetObjectByOffset{{{ 1*/177 /*FUNCTION DataSet::GetObjectByOffset{{{*/ 178 178 Object* DataSet::GetObjectByOffset(int offset){ 179 179 … … 186 186 } 187 187 /*}}}*/ 188 /*FUNCTION DataSet::GetObjectById{{{ 1*/188 /*FUNCTION DataSet::GetObjectById{{{*/ 189 189 Object* DataSet::GetObjectById(int* poffset,int eid){ 190 190 … … 211 211 } 212 212 /*}}}*/ 213 /*FUNCTION DataSet::Presort{{{ 1*/213 /*FUNCTION DataSet::Presort{{{*/ 214 214 void DataSet::Presort(){ 215 215 … … 239 239 } 240 240 /*}}}*/ 241 /*FUNCTION DataSet::SetSorting{{{ 1*/241 /*FUNCTION DataSet::SetSorting{{{*/ 242 242 void DataSet::SetSorting(int* in_sorted_ids,int* in_id_offsets){ 243 243 … … 247 247 } 248 248 /*}}}*/ 249 /*FUNCTION DataSet::Size{{{ 1*/249 /*FUNCTION DataSet::Size{{{*/ 250 250 int DataSet::Size(void){ 251 251 _assert_(this!=NULL); … … 254 254 } 255 255 /*}}}*/ 256 /*FUNCTION DataSet::Sort{{{ 1*/256 /*FUNCTION DataSet::Sort{{{*/ 257 257 void DataSet::Sort(){ 258 258 -
TabularUnified issm/trunk-jpl/src/c/Container/DataSet.h ¶
r12015 r12365 39 39 int* id_offsets; 40 40 41 /*constructors, destructors: {{{ 1*/41 /*constructors, destructors: {{{*/ 42 42 DataSet(); 43 43 DataSet(int enum_type); 44 44 ~DataSet(); 45 45 /*}}}*/ 46 /*management: {{{ 1*/46 /*management: {{{*/ 47 47 int GetEnum(); 48 48 int GetEnum(int offset); -
TabularUnified issm/trunk-jpl/src/c/Container/Elements.cpp ¶
r12102 r12365 4 4 */ 5 5 6 /*Headers: {{{ 1*/6 /*Headers: {{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 25 25 26 26 /*Object constructors and destructor*/ 27 /*FUNCTION Elements::Elements(){{{ 1*/27 /*FUNCTION Elements::Elements(){{{*/ 28 28 Elements::Elements(){ 29 29 enum_type=MeshElementsEnum; … … 31 31 } 32 32 /*}}}*/ 33 /*FUNCTION Elements::~Elements(){{{ 1*/33 /*FUNCTION Elements::~Elements(){{{*/ 34 34 Elements::~Elements(){ 35 35 return; … … 38 38 39 39 /*Object management*/ 40 /*FUNCTION Elements::Configure{{{ 1*/40 /*FUNCTION Elements::Configure{{{*/ 41 41 void Elements::Configure(Elements* elements,Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters){ 42 42 … … 53 53 } 54 54 /*}}}*/ 55 /*FUNCTION Elements::ProcessResultsUnits{{{ 1*/55 /*FUNCTION Elements::ProcessResultsUnits{{{*/ 56 56 void Elements::ProcessResultsUnits(void){ 57 57 … … 63 63 } 64 64 /*}}}*/ 65 /*FUNCTION Elements::DeleteResults{{{ 1*/65 /*FUNCTION Elements::DeleteResults{{{*/ 66 66 void Elements::DeleteResults(void){ 67 67 … … 72 72 } 73 73 /*}}}*/ 74 /*FUNCTION Elements::ResultsToPatch{{{ 1*/74 /*FUNCTION Elements::ResultsToPatch{{{*/ 75 75 Patch* Elements::ResultsToPatch(void){ 76 76 … … 148 148 } 149 149 /*}}}*/ 150 /*FUNCTION Elements::SetCurrentConfiguration{{{ 1*/150 /*FUNCTION Elements::SetCurrentConfiguration{{{*/ 151 151 void Elements::SetCurrentConfiguration(Elements* elements,Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters){ 152 152 … … 163 163 } 164 164 /*}}}*/ 165 /*FUNCTION Elements::ToResults{{{ 1*/165 /*FUNCTION Elements::ToResults{{{*/ 166 166 void Elements::ToResults(Results* results,Parameters* parameters){ 167 167 … … 276 276 } 277 277 /*}}}*/ 278 /*FUNCTION Elements::NumberOfElements{{{ 1*/278 /*FUNCTION Elements::NumberOfElements{{{*/ 279 279 int Elements::NumberOfElements(void){ 280 280 … … 292 292 } 293 293 /*}}}*/ 294 /*FUNCTION Elements::InputCopy{{{ 1*/294 /*FUNCTION Elements::InputCopy{{{*/ 295 295 void Elements::InputDuplicate(int input_enum,int output_enum){ 296 296 -
TabularUnified issm/trunk-jpl/src/c/Container/Elements.h ¶
r10989 r12365 21 21 public: 22 22 23 /*constructors, destructors: {{{ 1*/23 /*constructors, destructors: {{{*/ 24 24 Elements(); 25 25 ~Elements(); 26 26 /*}}}*/ 27 /*numerics: {{{ 1*/27 /*numerics: {{{*/ 28 28 void Configure(Elements* elements,Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters); 29 29 void DeleteResults(void); -
TabularUnified issm/trunk-jpl/src/c/Container/Inputs.cpp ¶
r10522 r12365 4 4 */ 5 5 6 /*Headers: {{{ 1*/6 /*Headers: {{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 25 25 26 26 /*Object constructors and destructor*/ 27 /*FUNCTION Inputs::Inputs(){{{ 1*/27 /*FUNCTION Inputs::Inputs(){{{*/ 28 28 Inputs::Inputs(){ 29 29 return; 30 30 } 31 31 /*}}}*/ 32 /*FUNCTION Inputs::~Inputs(){{{ 1*/32 /*FUNCTION Inputs::~Inputs(){{{*/ 33 33 Inputs::~Inputs(){ 34 34 return; … … 37 37 38 38 /*Object management*/ 39 /*FUNCTION Inputs::GetInputValue(bool* pvalue,int enum-type){{{ 1*/39 /*FUNCTION Inputs::GetInputValue(bool* pvalue,int enum-type){{{*/ 40 40 void Inputs::GetInputValue(bool* pvalue,int enum_type){ 41 41 … … 65 65 } 66 66 /*}}}*/ 67 /*FUNCTION Inputs::GetInputValue(int* pvalue,int enum-type){{{ 1*/67 /*FUNCTION Inputs::GetInputValue(int* pvalue,int enum-type){{{*/ 68 68 void Inputs::GetInputValue(int* pvalue,int enum_type){ 69 69 … … 93 93 } 94 94 /*}}}*/ 95 /*FUNCTION Inputs::GetInputValue(double* pvalue,int enum-type){{{ 1*/95 /*FUNCTION Inputs::GetInputValue(double* pvalue,int enum-type){{{*/ 96 96 void Inputs::GetInputValue(double* pvalue,int enum_type){ 97 97 … … 121 121 } 122 122 /*}}}*/ 123 /*FUNCTION Inputs::GetInputAverage{{{ 1*/123 /*FUNCTION Inputs::GetInputAverage{{{*/ 124 124 void Inputs::GetInputAverage(double* pvalue,int enum_type){ 125 125 … … 149 149 } 150 150 /*}}}*/ 151 /*FUNCTION Inputs::AddInput{{{ 1*/151 /*FUNCTION Inputs::AddInput{{{*/ 152 152 int Inputs::AddInput(Input* in_input){ 153 153 … … 175 175 } 176 176 /*}}}*/ 177 /*FUNCTION Inputs::ChangeEnum{{{ 1*/177 /*FUNCTION Inputs::ChangeEnum{{{*/ 178 178 void Inputs::ChangeEnum(int oldenumtype,int newenumtype){ 179 179 … … 205 205 } 206 206 /*}}}*/ 207 /*FUNCTION Inputs::ConstrainMin{{{ 1*/207 /*FUNCTION Inputs::ConstrainMin{{{*/ 208 208 void Inputs::ConstrainMin(int constrain_enum, double minimum){ 209 209 … … 219 219 } 220 220 /*}}}*/ 221 /*FUNCTION Inputs::InfinityNorm{{{ 1*/221 /*FUNCTION Inputs::InfinityNorm{{{*/ 222 222 double Inputs::InfinityNorm(int enumtype){ 223 223 … … 240 240 } 241 241 /*}}}*/ 242 /*FUNCTION Inputs::Max{{{ 1*/242 /*FUNCTION Inputs::Max{{{*/ 243 243 double Inputs::Max(int enumtype){ 244 244 … … 261 261 } 262 262 /*}}}*/ 263 /*FUNCTION Inputs::MaxAbs{{{ 1*/263 /*FUNCTION Inputs::MaxAbs{{{*/ 264 264 double Inputs::MaxAbs(int enumtype){ 265 265 … … 282 282 } 283 283 /*}}}*/ 284 /*FUNCTION Inputs::Min{{{ 1*/284 /*FUNCTION Inputs::Min{{{*/ 285 285 double Inputs::Min(int enumtype){ 286 286 … … 303 303 } 304 304 /*}}}*/ 305 /*FUNCTION Inputs::MinAbs{{{ 1*/305 /*FUNCTION Inputs::MinAbs{{{*/ 306 306 double Inputs::MinAbs(int enumtype){ 307 307 … … 324 324 } 325 325 /*}}}*/ 326 /*FUNCTION Inputs::GetInput{{{ 1*/326 /*FUNCTION Inputs::GetInput{{{*/ 327 327 Input* Inputs::GetInput(int enum_name){ 328 328 … … 341 341 } 342 342 /*}}}*/ 343 /*FUNCTION Inputs::DeleteInput{{{ 1*/343 /*FUNCTION Inputs::DeleteInput{{{*/ 344 344 int Inputs::DeleteInput(int enum_type){ 345 345 … … 361 361 } 362 362 /*}}}*/ 363 /*FUNCTION Inputs::DuplicateInput{{{ 1*/363 /*FUNCTION Inputs::DuplicateInput{{{*/ 364 364 void Inputs::DuplicateInput(int original_enum,int new_enum){ 365 365 … … 379 379 } 380 380 /*}}}*/ 381 /*FUNCTION Inputs::SpawnTriaInputs{{{ 1*/381 /*FUNCTION Inputs::SpawnTriaInputs{{{*/ 382 382 Inputs* Inputs::SpawnTriaInputs(int* indices){ 383 383 … … 405 405 } 406 406 /*}}}*/ 407 /*FUNCTION Inputs::AXPY{{{ 1*/407 /*FUNCTION Inputs::AXPY{{{*/ 408 408 void Inputs::AXPY(int MeshYEnum, double scalar, int MeshXEnum){ 409 409 … … 423 423 } 424 424 /*}}}*/ 425 /*FUNCTION Inputs::Configure{{{ 1*/425 /*FUNCTION Inputs::Configure{{{*/ 426 426 void Inputs::Configure(Parameters* parameters){ 427 427 -
TabularUnified issm/trunk-jpl/src/c/Container/Inputs.h ¶
r10522 r12365 23 23 public: 24 24 25 /*constructors, destructors: {{{ 1*/25 /*constructors, destructors: {{{*/ 26 26 Inputs(); 27 27 ~Inputs(); 28 28 29 29 /*}}}*/ 30 /*numerics: {{{ 1*/30 /*numerics: {{{*/ 31 31 int AddInput(Input* in_input); 32 32 void ChangeEnum(int enumtype,int new_enumtype); -
TabularUnified issm/trunk-jpl/src/c/Container/Loads.cpp ¶
r12102 r12365 4 4 */ 5 5 6 /*Headers: {{{ 1*/6 /*Headers: {{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 25 25 26 26 /*Object constructors and destructor*/ 27 /*FUNCTION Loads::Loads(){{{ 1*/27 /*FUNCTION Loads::Loads(){{{*/ 28 28 Loads::Loads(){ 29 29 enum_type=LoadsEnum; … … 31 31 } 32 32 /*}}}*/ 33 /*FUNCTION Loads::~Loads(){{{ 1*/33 /*FUNCTION Loads::~Loads(){{{*/ 34 34 Loads::~Loads(){ 35 35 return; … … 38 38 39 39 /*Numerics:*/ 40 /*FUNCTION Loads::Configure{{{ 1*/40 /*FUNCTION Loads::Configure{{{*/ 41 41 void Loads::Configure(Elements* elements,Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters){ 42 42 … … 53 53 } 54 54 /*}}}*/ 55 /*FUNCTION Loads::NumberOfLoads{{{ 1*/55 /*FUNCTION Loads::NumberOfLoads{{{*/ 56 56 int Loads::NumberOfLoads(void){ 57 57 … … 74 74 } 75 75 /*}}}*/ 76 /*FUNCTION Loads::SetCurrentConfiguration{{{ 1*/76 /*FUNCTION Loads::SetCurrentConfiguration{{{*/ 77 77 void Loads::SetCurrentConfiguration(Elements* elements,Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters){ 78 78 -
TabularUnified issm/trunk-jpl/src/c/Container/Loads.h ¶
r10522 r12365 20 20 public: 21 21 22 /*constructors, destructors: {{{ 1*/22 /*constructors, destructors: {{{*/ 23 23 Loads(); 24 24 ~Loads(); 25 25 /*}}}*/ 26 /*numerics: {{{ 1*/26 /*numerics: {{{*/ 27 27 void Configure(Elements* elements,Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters); 28 28 int NumberOfLoads(void); -
TabularUnified issm/trunk-jpl/src/c/Container/Materials.cpp ¶
r10522 r12365 4 4 */ 5 5 6 /*Headers: {{{ 1*/6 /*Headers: {{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 25 25 26 26 /*Object constructors and destructor*/ 27 /*FUNCTION Materials::Materials(){{{ 1*/27 /*FUNCTION Materials::Materials(){{{*/ 28 28 Materials::Materials(){ 29 29 enum_type=MaterialsEnum; … … 31 31 } 32 32 /*}}}*/ 33 /*FUNCTION Materials::~Materials(){{{ 1*/33 /*FUNCTION Materials::~Materials(){{{*/ 34 34 Materials::~Materials(){ 35 35 return; … … 38 38 39 39 /*Object management*/ 40 /*FUNCTION Materials::Configure{{{ 1*/40 /*FUNCTION Materials::Configure{{{*/ 41 41 void Materials::Configure(Elements* elements,Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters){ 42 42 -
TabularUnified issm/trunk-jpl/src/c/Container/Materials.h ¶
r10522 r12365 19 19 public: 20 20 21 /*constructors, destructors: {{{ 1*/21 /*constructors, destructors: {{{*/ 22 22 Materials(); 23 23 ~Materials(); 24 24 /*}}}*/ 25 /*numerics: {{{ 1*/25 /*numerics: {{{*/ 26 26 void Configure(Elements* elements,Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters); 27 27 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/Container/Nodes.cpp ¶
r12109 r12365 4 4 */ 5 5 6 /*Headers: {{{ 1*/6 /*Headers: {{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 25 25 26 26 /*Object constructors and destructor*/ 27 /*FUNCTION Nodes::Nodes(){{{ 1*/27 /*FUNCTION Nodes::Nodes(){{{*/ 28 28 Nodes::Nodes(){ 29 29 enum_type=NodesEnum; … … 31 31 } 32 32 /*}}}*/ 33 /*FUNCTION Nodes::~Nodes(){{{ 1*/33 /*FUNCTION Nodes::~Nodes(){{{*/ 34 34 Nodes::~Nodes(){ 35 35 return; … … 38 38 39 39 /*Numerics*/ 40 /*FUNCTION Nodes::Configure{{{ 1*/40 /*FUNCTION Nodes::Configure{{{*/ 41 41 void Nodes::Configure(Elements* elements,Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters){ 42 42 … … 53 53 } 54 54 /*}}}*/ 55 /*FUNCTION Nodes::DistributeDofs{{{ 1*/55 /*FUNCTION Nodes::DistributeDofs{{{*/ 56 56 void Nodes::DistributeDofs(int analysis_type,int setenum){ 57 57 … … 144 144 } 145 145 /*}}}*/ 146 /*FUNCTION Nodes::FlagClones{{{ 1*/146 /*FUNCTION Nodes::FlagClones{{{*/ 147 147 void Nodes::FlagClones(int analysis_type){ 148 148 … … 195 195 } 196 196 /*}}}*/ 197 /*FUNCTION Nodes::MaxNumDofs{{{ 1*/197 /*FUNCTION Nodes::MaxNumDofs{{{*/ 198 198 int Nodes::MaxNumDofs(int analysis_type,int setenum){ 199 199 … … 225 225 } 226 226 /*}}}*/ 227 /*FUNCTION Nodes::NumberOfDofs{{{ 1*/227 /*FUNCTION Nodes::NumberOfDofs{{{*/ 228 228 int Nodes::NumberOfDofs(int analysis_type,int setenum){ 229 229 … … 259 259 } 260 260 /*}}}*/ 261 /*FUNCTION Nodes::NumberOfNodes(){{{ 1*/261 /*FUNCTION Nodes::NumberOfNodes(){{{*/ 262 262 int Nodes::NumberOfNodes(void){ 263 263 … … 287 287 } 288 288 /*}}}*/ 289 /*FUNCTION Nodes::NumberOfNodes(analysis){{{ 1*/289 /*FUNCTION Nodes::NumberOfNodes(analysis){{{*/ 290 290 int Nodes::NumberOfNodes(int analysis_type){ 291 291 … … 326 326 } 327 327 /*}}}*/ 328 /*FUNCTION Nodes::Ranks{{{ 1*/328 /*FUNCTION Nodes::Ranks{{{*/ 329 329 void Nodes::Ranks(int* ranks,int analysis_type){ 330 330 … … 352 352 } 353 353 /*}}}*/ 354 /*FUNCTION Nodes::SetCurrentConfiguration{{{ 1*/354 /*FUNCTION Nodes::SetCurrentConfiguration{{{*/ 355 355 void Nodes::SetCurrentConfiguration(Elements* elements,Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters){ 356 356 -
TabularUnified issm/trunk-jpl/src/c/Container/Nodes.h ¶
r10522 r12365 13 13 public: 14 14 15 /*constructors, destructors: {{{ 1*/15 /*constructors, destructors: {{{*/ 16 16 Nodes(); 17 17 ~Nodes(); 18 18 /*}}}*/ 19 /*numerics: {{{ 1*/19 /*numerics: {{{*/ 20 20 void Configure(Elements* elements,Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters); 21 21 void DistributeDofs(int analysis_type,int SETENUM); -
TabularUnified issm/trunk-jpl/src/c/Container/Options.cpp ¶
r12319 r12365 4 4 */ 5 5 6 /*Headers: {{{ 1*/6 /*Headers: {{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 25 25 26 26 /*Object constructors and destructor*/ 27 /*FUNCTION Options::Options(){{{ 1*/27 /*FUNCTION Options::Options(){{{*/ 28 28 Options::Options(){ 29 29 return; 30 30 } 31 31 /*}}}*/ 32 /*FUNCTION Options::~Options(){{{ 1*/32 /*FUNCTION Options::~Options(){{{*/ 33 33 Options::~Options(){ 34 34 return; … … 37 37 38 38 /*Object management*/ 39 /*FUNCTION Options::AddOption{{{ 1*/39 /*FUNCTION Options::AddOption{{{*/ 40 40 int Options::AddOption(Option* in_option){ 41 41 … … 68 68 } 69 69 /*}}}*/ 70 /*FUNCTION Options::Get(int* pvalue, char* name){{{ 1*/70 /*FUNCTION Options::Get(int* pvalue, char* name){{{*/ 71 71 void Options::Get(int* pvalue,const char* name){ 72 72 … … 87 87 } 88 88 /*}}}*/ 89 /*FUNCTION Options::Get(int* pvalue, char* name,int default_value){{{ 1*/89 /*FUNCTION Options::Get(int* pvalue, char* name,int default_value){{{*/ 90 90 void Options::Get(int* pvalue,const char* name,int default_value){ 91 91 … … 106 106 } 107 107 /*}}}*/ 108 /*FUNCTION Options::Get(double* pvalue, char* name){{{ 1*/108 /*FUNCTION Options::Get(double* pvalue, char* name){{{*/ 109 109 void Options::Get(double* pvalue,const char* name){ 110 110 … … 125 125 } 126 126 /*}}}*/ 127 /*FUNCTION Options::Get(double* pvalue, char* name,double default_value){{{ 1*/127 /*FUNCTION Options::Get(double* pvalue, char* name,double default_value){{{*/ 128 128 void Options::Get(double* pvalue,const char* name,double default_value){ 129 129 … … 144 144 } 145 145 /*}}}*/ 146 /*FUNCTION Options::Get(bool* pvalue, char* name){{{ 1*/146 /*FUNCTION Options::Get(bool* pvalue, char* name){{{*/ 147 147 void Options::Get(bool* pvalue,const char* name){ 148 148 … … 163 163 } 164 164 /*}}}*/ 165 /*FUNCTION Options::Get(bool* pvalue, char* name,bool default_value){{{ 1*/165 /*FUNCTION Options::Get(bool* pvalue, char* name,bool default_value){{{*/ 166 166 void Options::Get(bool* pvalue,const char* name,bool default_value){ 167 167 … … 182 182 } 183 183 /*}}}*/ 184 /*FUNCTION Options::Get(char** pvalue, char* name){{{ 1*/184 /*FUNCTION Options::Get(char** pvalue, char* name){{{*/ 185 185 void Options::Get(char** pvalue,const char* name){ 186 186 … … 204 204 } 205 205 /*}}}*/ 206 /*FUNCTION Options::Get(char** pvalue, char* name,char* default_value){{{ 1*/206 /*FUNCTION Options::Get(char** pvalue, char* name,char* default_value){{{*/ 207 207 void Options::Get(char** pvalue,const char* name,const char* default_value){ 208 208 … … 229 229 } 230 230 /*}}}*/ 231 /*FUNCTION Options::Get(char*** ppvalue,int* numel,char* name){{{ 1*/231 /*FUNCTION Options::Get(char*** ppvalue,int* numel,char* name){{{*/ 232 232 void Options::Get(char*** ppvalue,int* numel,const char* name){ 233 233 … … 275 275 } 276 276 /*}}}*/ 277 /*FUNCTION Options::Get(double** pvalue,int* numel,const char* name){{{ 1*/277 /*FUNCTION Options::Get(double** pvalue,int* numel,const char* name){{{*/ 278 278 void Options::Get(double** pvalue,int* numel,const char* name){ 279 279 … … 294 294 } 295 295 /*}}}*/ 296 /*FUNCTION Options::GetOption{{{ 1*/296 /*FUNCTION Options::GetOption{{{*/ 297 297 Option* Options::GetOption(const char* name){ 298 298 -
TabularUnified issm/trunk-jpl/src/c/Container/Parameters.cpp ¶
r11695 r12365 4 4 */ 5 5 6 /*Headers: {{{ 1*/6 /*Headers: {{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 25 25 26 26 /*Object constructors and destructor*/ 27 /*FUNCTION Parameters::Parameters(){{{ 1*/27 /*FUNCTION Parameters::Parameters(){{{*/ 28 28 Parameters::Parameters(){ 29 29 enum_type=ParametersEnum; … … 31 31 } 32 32 /*}}}*/ 33 /*FUNCTION Parameters::~Parameters(){{{ 1*/33 /*FUNCTION Parameters::~Parameters(){{{*/ 34 34 Parameters::~Parameters(){ 35 35 return; … … 38 38 39 39 /*Object management*/ 40 /*FUNCTION Parameters::Exist{{{ 1*/40 /*FUNCTION Parameters::Exist{{{*/ 41 41 bool Parameters::Exist(int enum_type){ 42 42 … … 51 51 } 52 52 /*}}}*/ 53 /*FUNCTION Parameters::FindParam(bool* pbool,int enum_type){{{ 1*/53 /*FUNCTION Parameters::FindParam(bool* pbool,int enum_type){{{*/ 54 54 void Parameters::FindParam(bool* pbool,int enum_type){ _assert_(this); 55 55 … … 68 68 } 69 69 /*}}}*/ 70 /*FUNCTION Parameters::FindParam(int* pinteger,int enum_type){{{ 1*/70 /*FUNCTION Parameters::FindParam(int* pinteger,int enum_type){{{*/ 71 71 void Parameters::FindParam(int* pinteger,int enum_type){ _assert_(this); 72 72 … … 85 85 } 86 86 /*}}}*/ 87 /*FUNCTION Parameters::FindParam(double* pscalar, int enum_type){{{ 1*/87 /*FUNCTION Parameters::FindParam(double* pscalar, int enum_type){{{*/ 88 88 void Parameters::FindParam(double* pscalar, int enum_type){ _assert_(this); 89 89 … … 102 102 } 103 103 /*}}}*/ 104 /*FUNCTION Parameters::FindParam(char** pstring,int enum_type){{{ 1*/104 /*FUNCTION Parameters::FindParam(char** pstring,int enum_type){{{*/ 105 105 void Parameters::FindParam(char** pstring,int enum_type){ _assert_(this); 106 106 … … 120 120 } 121 121 /*}}}*/ 122 /*FUNCTION Parameters::FindParam(char*** pstringarray,int* pM,int enum_type){{{ 1*/122 /*FUNCTION Parameters::FindParam(char*** pstringarray,int* pM,int enum_type){{{*/ 123 123 void Parameters::FindParam(char*** pstringarray,int* pM,int enum_type){ _assert_(this); 124 124 … … 138 138 } 139 139 /*}}}*/ 140 /*FUNCTION Parameters::FindParam(int** pintarray,int* pM,int enum_type){{{ 1*/140 /*FUNCTION Parameters::FindParam(int** pintarray,int* pM,int enum_type){{{*/ 141 141 void Parameters::FindParam(int** pintarray,int* pM, int enum_type){ _assert_(this); 142 142 … … 156 156 } 157 157 /*}}}*/ 158 /*FUNCTION Parameters::FindParam(int** pintarray,int* pM,int* pN,int enum_type){{{ 1*/158 /*FUNCTION Parameters::FindParam(int** pintarray,int* pM,int* pN,int enum_type){{{*/ 159 159 void Parameters::FindParam(int** pintarray,int* pM,int *pN,int enum_type){ _assert_(this); 160 160 … … 174 174 } 175 175 /*}}}*/ 176 /*FUNCTION Parameters::FindParam(double** pdoublearray,int* pM,int enum_type){{{ 1*/176 /*FUNCTION Parameters::FindParam(double** pdoublearray,int* pM,int enum_type){{{*/ 177 177 void Parameters::FindParam(double** pdoublearray,int* pM, int enum_type){ _assert_(this); 178 178 … … 192 192 } 193 193 /*}}}*/ 194 /*FUNCTION Parameters::FindParam(double** pdoublearray,int* pM, int* pN,int enum_type){{{ 1*/194 /*FUNCTION Parameters::FindParam(double** pdoublearray,int* pM, int* pN,int enum_type){{{*/ 195 195 void Parameters::FindParam(double** pdoublearray,int* pM, int* pN,int enum_type){ _assert_(this); 196 196 … … 210 210 } 211 211 /*}}}*/ 212 /*FUNCTION Parameters::FindParam(double*** parray,int* pM,int** pmdims_array,int** pndims_array,int enum_type){{{ 1*/212 /*FUNCTION Parameters::FindParam(double*** parray,int* pM,int** pmdims_array,int** pndims_array,int enum_type){{{*/ 213 213 void Parameters::FindParam(double*** parray,int* pM,int** pmdims_array,int** pndims_array,int enum_type){ _assert_(this); 214 214 … … 227 227 } 228 228 /*}}}*/ 229 /*FUNCTION Parameters::FindParam(Vector** pvec,int enum_type){{{ 1*/229 /*FUNCTION Parameters::FindParam(Vector** pvec,int enum_type){{{*/ 230 230 void Parameters::FindParam(Vector** pvec,int enum_type){ _assert_(this); 231 231 … … 245 245 } 246 246 /*}}}*/ 247 /*FUNCTION Parameters::FindParam(Matrix** pmat,int enum_type){{{ 1*/247 /*FUNCTION Parameters::FindParam(Matrix** pmat,int enum_type){{{*/ 248 248 void Parameters::FindParam(Matrix** pmat,int enum_type){ _assert_(this); 249 249 … … 263 263 } 264 264 /*}}}*/ 265 /*FUNCTION Parameters::FindParam(FILE** pfid,int enum_type){{{ 1*/265 /*FUNCTION Parameters::FindParam(FILE** pfid,int enum_type){{{*/ 266 266 void Parameters::FindParam(FILE** pfid,int enum_type){ _assert_(this); 267 267 … … 281 281 /*}}}*/ 282 282 283 /*FUNCTION Parameters::SetParam(bool boolean,int enum_type);{{{ 1*/283 /*FUNCTION Parameters::SetParam(bool boolean,int enum_type);{{{*/ 284 284 void Parameters::SetParam(bool boolean,int enum_type){ 285 285 … … 293 293 } 294 294 /*}}}*/ 295 /*FUNCTION Parameters::SetParam(int integer,int enum_type);{{{ 1*/295 /*FUNCTION Parameters::SetParam(int integer,int enum_type);{{{*/ 296 296 void Parameters::SetParam(int integer,int enum_type){ 297 297 … … 305 305 } 306 306 /*}}}*/ 307 /*FUNCTION Parameters::SetParam(double scalar,int enum_type);{{{ 1*/307 /*FUNCTION Parameters::SetParam(double scalar,int enum_type);{{{*/ 308 308 void Parameters::SetParam(double scalar,int enum_type){ 309 309 … … 317 317 } 318 318 /*}}}*/ 319 /*FUNCTION Parameters::SetParam(char* string,int enum_type);{{{ 1*/319 /*FUNCTION Parameters::SetParam(char* string,int enum_type);{{{*/ 320 320 void Parameters::SetParam(char* string,int enum_type){ 321 321 … … 329 329 } 330 330 /*}}}*/ 331 /*FUNCTION Parameters::SetParam(char** stringarray,int M, int enum_type);{{{ 1*/331 /*FUNCTION Parameters::SetParam(char** stringarray,int M, int enum_type);{{{*/ 332 332 void Parameters::SetParam(char** stringarray,int M, int enum_type){ 333 333 … … 341 341 } 342 342 /*}}}*/ 343 /*FUNCTION Parameters::SetParam(double* doublearray,int M,int enum_type);{{{ 1*/343 /*FUNCTION Parameters::SetParam(double* doublearray,int M,int enum_type);{{{*/ 344 344 void Parameters::SetParam(double* doublearray,int M, int enum_type){ 345 345 … … 353 353 } 354 354 /*}}}*/ 355 /*FUNCTION Parameters::SetParam(double* doublearray,int M,int N, int enum_type);{{{ 1*/355 /*FUNCTION Parameters::SetParam(double* doublearray,int M,int N, int enum_type);{{{*/ 356 356 void Parameters::SetParam(double* doublearray,int M, int N, int enum_type){ 357 357 … … 365 365 } 366 366 /*}}}*/ 367 /*FUNCTION Parameters::SetParam(int* intarray,int M,int enum_type);{{{ 1*/367 /*FUNCTION Parameters::SetParam(int* intarray,int M,int enum_type);{{{*/ 368 368 void Parameters::SetParam(int* intarray,int M, int enum_type){ 369 369 … … 377 377 } 378 378 /*}}}*/ 379 /*FUNCTION Parameters::SetParam(int* intarray,int M,int N, int enum_type);{{{ 1*/379 /*FUNCTION Parameters::SetParam(int* intarray,int M,int N, int enum_type);{{{*/ 380 380 void Parameters::SetParam(int* intarray,int M, int N, int enum_type){ 381 381 … … 389 389 } 390 390 /*}}}*/ 391 /*FUNCTION Parameters::SetParam(Vector* vector,int enum_type);{{{ 1*/391 /*FUNCTION Parameters::SetParam(Vector* vector,int enum_type);{{{*/ 392 392 void Parameters::SetParam(Vector* vector,int enum_type){ 393 393 … … 401 401 } 402 402 /*}}}*/ 403 /*FUNCTION Parameters::SetParam(Matrix* matrix,int enum_type);{{{ 1*/403 /*FUNCTION Parameters::SetParam(Matrix* matrix,int enum_type);{{{*/ 404 404 void Parameters::SetParam(Matrix* matrix,int enum_type){ 405 405 … … 413 413 } 414 414 /*}}}*/ 415 /*FUNCTION Parameters::SetParam(FILE* fid,int enum_type);{{{ 1*/415 /*FUNCTION Parameters::SetParam(FILE* fid,int enum_type);{{{*/ 416 416 void Parameters::SetParam(FILE* fid,int enum_type){ 417 417 … … 425 425 } 426 426 /*}}}*/ 427 /*FUNCTION Parameters::UnitConversion(int direction_enum);{{{ 1*/427 /*FUNCTION Parameters::UnitConversion(int direction_enum);{{{*/ 428 428 void Parameters::UnitConversion(int direction_enum){ 429 429 … … 439 439 /*}}}*/ 440 440 441 /*FUNCTION Parameters::FindParamObject{{{ 1*/441 /*FUNCTION Parameters::FindParamObject{{{*/ 442 442 Object* Parameters::FindParamObject(int enum_type){ 443 443 -
TabularUnified issm/trunk-jpl/src/c/Container/Parameters.h ¶
r12222 r12365 23 23 public: 24 24 25 /*constructors, destructors: {{{ 1*/25 /*constructors, destructors: {{{*/ 26 26 Parameters(); 27 27 ~Parameters(); 28 28 /*}}}*/ 29 /*numerics: {{{ 1*/29 /*numerics: {{{*/ 30 30 bool Exist(int enum_type); 31 31 -
TabularUnified issm/trunk-jpl/src/c/Container/Results.cpp ¶
r12011 r12365 4 4 */ 5 5 6 /*Headers: {{{ 1*/6 /*Headers: {{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 25 25 26 26 /*Object constructors and destructor*/ 27 /*FUNCTION Results::Results(){{{ 1*/27 /*FUNCTION Results::Results(){{{*/ 28 28 Results::Results(){ 29 29 enum_type=ResultsEnum; … … 31 31 } 32 32 /*}}}*/ 33 /*FUNCTION Results::~Results(){{{ 1*/33 /*FUNCTION Results::~Results(){{{*/ 34 34 Results::~Results(){ 35 35 return; … … 38 38 39 39 /*Object management*/ 40 /*FUNCTION Results::SpawnTriaResults{{{ 1*/40 /*FUNCTION Results::SpawnTriaResults{{{*/ 41 41 Results* Results::SpawnTriaResults(int* indices){ 42 42 … … 64 64 } 65 65 /*}}}*/ 66 /*FUNCTION Results::Write{{{ 1*/66 /*FUNCTION Results::Write{{{*/ 67 67 void Results::Write(Parameters* parameters){ 68 68 -
TabularUnified issm/trunk-jpl/src/c/Container/Results.h ¶
r12011 r12365 20 20 public: 21 21 22 /*constructors, destructors: {{{ 1*/22 /*constructors, destructors: {{{*/ 23 23 Results(); 24 24 ~Results(); 25 25 /*}}}*/ 26 /*numerics: {{{ 1*/26 /*numerics: {{{*/ 27 27 Results* SpawnTriaResults(int* indices); 28 28 void Write(Parameters* parameters); -
TabularUnified issm/trunk-jpl/src/c/Container/Vertices.cpp ¶
r12102 r12365 4 4 */ 5 5 6 /*Headers: {{{ 1*/6 /*Headers: {{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 25 25 26 26 /*Object constructors and destructor*/ 27 /*FUNCTION Vertices::Vertices(){{{ 1*/27 /*FUNCTION Vertices::Vertices(){{{*/ 28 28 Vertices::Vertices(){ 29 29 enum_type=VerticesEnum; … … 31 31 } 32 32 /*}}}*/ 33 /*FUNCTION Vertices::~Vertices(){{{ 1*/33 /*FUNCTION Vertices::~Vertices(){{{*/ 34 34 Vertices::~Vertices(){ 35 35 return; … … 38 38 39 39 /*Numerics management*/ 40 /*FUNCTION Vertices::DistributeDofs{{{ 1*/40 /*FUNCTION Vertices::DistributeDofs{{{*/ 41 41 void Vertices::DistributeDofs(int numberofobjects,int numberofdofsperobject){ 42 42 … … 107 107 } 108 108 /*}}}*/ 109 /*FUNCTION Vertices::FlagClones{{{ 1*/109 /*FUNCTION Vertices::FlagClones{{{*/ 110 110 void Vertices::FlagClones(int numberofobjects){ 111 111 … … 148 148 } 149 149 /*}}}*/ 150 /*FUNCTION Vertices::NumberOfVertices{{{ 1*/150 /*FUNCTION Vertices::NumberOfVertices{{{*/ 151 151 int Vertices::NumberOfVertices(void){ 152 152 … … 174 174 } 175 175 /*}}}*/ 176 /*FUNCTION Vertices::Ranks{{{ 1*/176 /*FUNCTION Vertices::Ranks{{{*/ 177 177 void Vertices::Ranks(int* ranks){ 178 178 -
TabularUnified issm/trunk-jpl/src/c/Container/Vertices.h ¶
r12213 r12365 19 19 public: 20 20 21 /*constructors, destructors: {{{ 1*/21 /*constructors, destructors: {{{*/ 22 22 Vertices(); 23 23 ~Vertices(); 24 24 /*}}}*/ 25 /*numerics: {{{ 1*/25 /*numerics: {{{*/ 26 26 void DistributeDofs(int numberofnodes,int numdofspernode); 27 27 void FlagClones(int numberofnodes); -
TabularUnified issm/trunk-jpl/src/c/EnumDefinitions/EnumDefinitions.h ¶
r12326 r12365 11 11 12 12 enum definitions{ 13 /*Model fields {{{ 1*/13 /*Model fields {{{*/ 14 14 AutodiffForwardEnum, 15 15 AutodiffIsautodiffEnum, … … 183 183 TransientRequestedOutputsEnum, 184 184 /*}}}*/ 185 /*Solutions and Analyses{{{ 1*/185 /*Solutions and Analyses{{{ */ 186 186 SolutionTypeEnum, 187 187 AnalysisTypeEnum, … … 220 220 TransientSolutionEnum, 221 221 /*}}}*/ 222 /*Approximations {{{ 1*/222 /*Approximations {{{*/ 223 223 ApproximationEnum, 224 224 HutterApproximationEnum, … … 231 231 StokesApproximationEnum, 232 232 /*}}}*/ 233 /*Datasets {{{ 1*/233 /*Datasets {{{*/ 234 234 ConstraintsEnum, 235 235 LoadsEnum, … … 240 240 ResultsEnum, 241 241 /*}}}*/ 242 /*Objects {{{ 1*/242 /*Objects {{{*/ 243 243 BoolInputEnum, 244 244 BoolParamEnum, … … 289 289 VertexEnum, 290 290 /*}}}*/ 291 /*Fill {{{ 1*/291 /*Fill {{{*/ 292 292 AirEnum, 293 293 IceEnum, … … 295 295 WaterEnum, 296 296 /*}}}*/ 297 /*Rift state {{{ 1*/297 /*Rift state {{{*/ 298 298 ClosedEnum, 299 299 FreeEnum, 300 300 OpenEnum, 301 301 /*}}}*/ 302 /*Inputs {{{ 1*/302 /*Inputs {{{*/ 303 303 AdjointpEnum, 304 304 AdjointxEnum, … … 388 388 IceVolumeEnum, 389 389 /*}}}*/ 390 /*Element Interpolations{{{ 1*/390 /*Element Interpolations{{{*/ 391 391 P0Enum, 392 392 P1Enum, 393 393 P1DGEnum, 394 394 /*}}}*/ 395 /*Results{{{ 1*/395 /*Results{{{*/ 396 396 SaveResultsEnum, 397 397 BoolElementResultEnum, … … 414 414 WaterColumnOldEnum, 415 415 /*}}}*/ 416 /*Responses{{{ 1*/416 /*Responses{{{*/ 417 417 MinVelEnum, 418 418 MaxVelEnum, … … 427 427 MaxAbsVzEnum, 428 428 /*}}}*/ 429 /*Convergence{{{ 1*/429 /*Convergence{{{*/ 430 430 RelativeEnum, 431 431 AbsoluteEnum, 432 432 IncrementalEnum, 433 433 /*}}}*/ 434 /*Grounding Line{{{ 1*/434 /*Grounding Line{{{*/ 435 435 AgressiveMigrationEnum, 436 436 NoneEnum, 437 437 SoftMigrationEnum, 438 438 /*}}}*/ 439 /*Solver{{{ 1*/439 /*Solver{{{*/ 440 440 StokesSolverEnum, 441 441 /*}}}*/ 442 /*Parameters{{{ 1*/442 /*Parameters{{{*/ 443 443 AdjointEnum, 444 444 ColinearEnum, … … 468 468 VerboseEnum, 469 469 /*}}}*/ 470 /*Interpolation {{{ 1*/470 /*Interpolation {{{*/ 471 471 TriangleInterpEnum, 472 472 BilinearInterpEnum, 473 473 NearestInterpEnum, 474 474 /*}}}*/ 475 /*Coordinate Systems{{{ 1*/475 /*Coordinate Systems{{{*/ 476 476 XYEnum, 477 477 XYZPEnum, 478 478 /*}}}*/ 479 /*Options{{{ 1*/479 /*Options{{{*/ 480 480 OptionEnum, 481 481 OptionCellEnum, … … 485 485 OptionLogicalEnum, 486 486 /*}}}*/ 487 /*Rheology law (move too Material) {{{ 1*/487 /*Rheology law (move too Material) {{{*/ 488 488 PatersonEnum, 489 489 ArrheniusEnum, -
TabularUnified issm/trunk-jpl/src/c/EnumDefinitions/Synchronize.sh ¶
r12342 r12365 56 56 END 57 57 #}}} 58 #Build StringToEnumx.cpp {{{ 158 #Build StringToEnumx.cpp {{{ 59 59 #Header 60 60 cat <<END > $ISSM_DIR/src/c/modules/StringToEnumx/StringToEnumx.cpp -
TabularUnified issm/trunk-jpl/src/c/include/macros.h ¶
r12078 r12365 3 3 */ 4 4 5 /*Header {{{ 1*/5 /*Header {{{*/ 6 6 #ifndef _MACROS_H_ 7 7 #define _MACROS_H_ … … 16 16 /*}}}*/ 17 17 18 /* _printf_ {{{ 1*/18 /* _printf_ {{{*/ 19 19 /*Printing macro: only cpu number 0 */ 20 20 #define _printf_(flag,...) do { if(flag) PrintfFunction(__VA_ARGS__); }while (0) 21 21 /*}}}*/ 22 /* _error_ {{{ 1*/22 /* _error_ {{{*/ 23 23 /*Error exception macro*/ 24 24 #ifdef _INTEL_WIN_ … … 30 30 #endif 31 31 /*}}}*/ 32 /* _assert_ {{{ 1*/32 /* _assert_ {{{*/ 33 33 /*Assertion macro: do nothing if macro _ISSM_DEBUG_ undefined*/ 34 34 #ifdef _ISSM_DEBUG_ … … 40 40 #endif 41 41 /*}}}*/ 42 /* ISSMBOOT/ISSMEND {{{ 1*/42 /* ISSMBOOT/ISSMEND {{{*/ 43 43 44 44 /*The following macros hide the error exception handling in a matlab module. Just put -
TabularUnified issm/trunk-jpl/src/c/io/io.h ¶
r12003 r12365 6 6 #define _ISSM_IO_H_ 7 7 8 #ifdef HAVE_CONFIG_H //config.h {{{ 18 #ifdef HAVE_CONFIG_H //config.h {{{ 9 9 #include <config.h> 10 10 #else -
TabularUnified issm/trunk-jpl/src/c/matlab/include/matlab_macros.h ¶
r12078 r12365 3 3 */ 4 4 5 /*Header {{{ 1*/5 /*Header {{{*/ 6 6 #ifndef _MATLAB_MACROS_H_ 7 7 #define _MATLAB_MACROS_H_ … … 15 15 16 16 #ifdef _HAVE_MATLAB_ 17 /* MODULEBOOT/MODULEEND {{{ 1*/17 /* MODULEBOOT/MODULEEND {{{*/ 18 18 19 19 /*The following macros hide the error exception handling in a matlab module. Just put … … 36 36 } 37 37 //}}} 38 /* WRAPPER {{{ 1*/38 /* WRAPPER {{{*/ 39 39 #define WRAPPER(modulename,...) void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) 40 40 41 41 /*}}}*/ 42 /* CHECKARGUMENTS {{{ 1*/42 /* CHECKARGUMENTS {{{*/ 43 43 #define CHECKARGUMENTS(NLHS,NRHS,functionpointer) CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,functionpointer) 44 44 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/matlab/io/FetchMatlabData.cpp ¶
r12225 r12365 15 15 16 16 /*Primitive data types*/ 17 /*FUNCTION FetchData(double** pmatrix,int* pM,int *pN,const mxArray* dataref){{{ 1*/17 /*FUNCTION FetchData(double** pmatrix,int* pM,int *pN,const mxArray* dataref){{{*/ 18 18 void FetchData(double** pmatrix,int* pM,int *pN,const mxArray* dataref){ 19 19 … … 51 51 } 52 52 /*}}}*/ 53 /*FUNCTION FetchData(double** pmatrix,int* pnumel,int* pndims,int** psize,const mxArray* dataref){{{ 1*/53 /*FUNCTION FetchData(double** pmatrix,int* pnumel,int* pndims,int** psize,const mxArray* dataref){{{*/ 54 54 void FetchData(double** pmatrix,int* pnumel,int* pndims,int** psize,const mxArray* dataref){ 55 55 … … 94 94 } 95 95 /*}}}*/ 96 /*FUNCTION FetchData(int** pmatrix,int* pM,int *pN,const mxArray* dataref){{{ 1*/96 /*FUNCTION FetchData(int** pmatrix,int* pM,int *pN,const mxArray* dataref){{{*/ 97 97 void FetchData(int** pmatrix,int* pM,int *pN,const mxArray* dataref){ 98 98 … … 136 136 } 137 137 /*}}}*/ 138 /*FUNCTION FetchData(bool** pmatrix,int* pM,int *pN,const mxArray* dataref){{{ 1*/138 /*FUNCTION FetchData(bool** pmatrix,int* pM,int *pN,const mxArray* dataref){{{*/ 139 139 void FetchData(bool** pmatrix,int* pM,int *pN,const mxArray* dataref){ 140 140 … … 178 178 } 179 179 /*}}}*/ 180 /*FUNCTION FetchData(bool** pmatrix,int* pnumel,int* pndims,int** psize,const mxArray* dataref){{{ 1*/180 /*FUNCTION FetchData(bool** pmatrix,int* pnumel,int* pndims,int** psize,const mxArray* dataref){{{*/ 181 181 void FetchData(bool** pmatrix,int* pnumel,int* pndims,int** psize,const mxArray* dataref){ 182 182 … … 243 243 } 244 244 /*}}}*/ 245 /*FUNCTION FetchData(double** pvector,int* pM,const mxArray* dataref){{{ 1*/245 /*FUNCTION FetchData(double** pvector,int* pM,const mxArray* dataref){{{*/ 246 246 void FetchData(double** pvector,int* pM,const mxArray* dataref){ 247 247 … … 270 270 } 271 271 /*}}}*/ 272 /*FUNCTION FetchData(int** pvector,int* pM,const mxArray* dataref){{{ 1*/272 /*FUNCTION FetchData(int** pvector,int* pM,const mxArray* dataref){{{*/ 273 273 void FetchData(int** pvector,int* pM,const mxArray* dataref){ 274 274 … … 302 302 } 303 303 /*}}}*/ 304 /*FUNCTION FetchData(bool** pvector,int* pM,const mxArray* dataref){{{ 1*/304 /*FUNCTION FetchData(bool** pvector,int* pM,const mxArray* dataref){{{*/ 305 305 void FetchData(bool** pvector,int* pM,const mxArray* dataref){ 306 306 … … 334 334 } 335 335 /*}}}*/ 336 /*FUNCTION FetchData(float** pvector,int* pM,const mxArray* dataref){{{ 1*/336 /*FUNCTION FetchData(float** pvector,int* pM,const mxArray* dataref){{{*/ 337 337 void FetchData(float** pvector,int* pM,const mxArray* dataref){ 338 338 … … 366 366 } 367 367 /*}}}*/ 368 /*FUNCTION FetchData(char** pstring,const mxArray* dataref){{{ 1*/368 /*FUNCTION FetchData(char** pstring,const mxArray* dataref){{{*/ 369 369 void FetchData(char** pstring,const mxArray* dataref){ 370 370 … … 388 388 *pstring=outstring; 389 389 } 390 /*FUNCTION FetchData(char** pmatrix,int* pnumel,int* pndims,int** psize,const mxArray* dataref){{{ 1*/390 /*FUNCTION FetchData(char** pmatrix,int* pnumel,int* pndims,int** psize,const mxArray* dataref){{{*/ 391 391 void FetchData(char** pmatrix,int* pnumel,int* pndims,int** psize,const mxArray* dataref){ 392 392 … … 421 421 } 422 422 /*}}}*/ 423 /*FUNCTION FetchData(double* pscalar,const mxArray* dataref){{{ 1*/423 /*FUNCTION FetchData(double* pscalar,const mxArray* dataref){{{*/ 424 424 void FetchData(double* pscalar,const mxArray* dataref){ 425 425 … … 438 438 } 439 439 /*}}}*/ 440 /*FUNCTION FetchData(int* pinteger,const mxArray* dataref){{{ 1*/440 /*FUNCTION FetchData(int* pinteger,const mxArray* dataref){{{*/ 441 441 void FetchData(int* pinteger,const mxArray* dataref){ 442 442 … … 455 455 } 456 456 /*}}}*/ 457 /*FUNCTION FetchData(bool* pboolean,const mxArray* dataref){{{ 1*/457 /*FUNCTION FetchData(bool* pboolean,const mxArray* dataref){{{*/ 458 458 void FetchData(bool* pboolean,const mxArray* dataref){ 459 459 … … 474 474 475 475 /*ISSM objects*/ 476 /*FUNCTION FetchData(Matrix** pmatrix,const mxArray* dataref){{{ 1*/476 /*FUNCTION FetchData(Matrix** pmatrix,const mxArray* dataref){{{*/ 477 477 void FetchData(Matrix** pmatrix,const mxArray* dataref){ 478 478 … … 495 495 } 496 496 /*}}}*/ 497 /*FUNCTION FetchData(Vector** pvector,const mxArray* dataref){{{ 1*/497 /*FUNCTION FetchData(Vector** pvector,const mxArray* dataref){{{*/ 498 498 void FetchData(Vector** pvector,const mxArray* dataref){ 499 499 … … 519 519 } 520 520 /*}}}*/ 521 /*FUNCTION FetchData(BamgGeom** pbamggeom,const mxArray* dataref){{{ 1*/521 /*FUNCTION FetchData(BamgGeom** pbamggeom,const mxArray* dataref){{{*/ 522 522 void FetchData(BamgGeom** pbamggeom,const mxArray* dataref){ 523 523 … … 538 538 } 539 539 /*}}}*/ 540 /*FUNCTION FetchData(BamgMesh** pbamgmesh,const mxArray* dataref){{{ 1*/540 /*FUNCTION FetchData(BamgMesh** pbamgmesh,const mxArray* dataref){{{*/ 541 541 void FetchData(BamgMesh** pbamgmesh,const mxArray* dataref){ 542 542 … … 558 558 } 559 559 /*}}}*/ 560 /*FUNCTION FetchData(BamgOpts** pbamgopts,const mxArray* dataref){{{ 1*/560 /*FUNCTION FetchData(BamgOpts** pbamgopts,const mxArray* dataref){{{*/ 561 561 void FetchData(BamgOpts** pbamgopts,const mxArray* dataref){ 562 562 … … 602 602 } 603 603 /*}}}*/ 604 /*FUNCTION FetchData(Options** poptions,const mxArray* dataref){{{ 1*/604 /*FUNCTION FetchData(Options** poptions,const mxArray* dataref){{{*/ 605 605 void FetchData(Options** poptions,int istart, int nrhs,const mxArray** pdataref){ 606 606 -
TabularUnified issm/trunk-jpl/src/c/matlab/io/MatlabMatrixToMatrix.cpp ¶
r12013 r12365 3 3 4 4 /*Headers:*/ 5 /*{{{ 1*/5 /*{{{*/ 6 6 #ifdef HAVE_CONFIG_H 7 7 #include <config.h> -
TabularUnified issm/trunk-jpl/src/c/matlab/io/MatlabMatrixToSeqMat.cpp ¶
r12013 r12365 3 3 4 4 /*Headers:*/ 5 /*{{{ 1*/5 /*{{{*/ 6 6 #ifdef HAVE_CONFIG_H 7 7 #include <config.h> -
TabularUnified issm/trunk-jpl/src/c/matlab/io/MatlabNArrayToNArray.cpp ¶
r12013 r12365 15 15 #include <mex.h> 16 16 17 /*FUNCTION MatlabNArrayToNArray(double** pmatrix,int* pmatrix_numel,int* pmatrix_ndims,int** pmatrix_size,const mxArray* mxmatrix){{{ 1*/17 /*FUNCTION MatlabNArrayToNArray(double** pmatrix,int* pmatrix_numel,int* pmatrix_ndims,int** pmatrix_size,const mxArray* mxmatrix){{{*/ 18 18 int MatlabNArrayToNArray(double** pmatrix,int* pmatrix_numel,int* pmatrix_ndims,int** pmatrix_size,const mxArray* mxmatrix){ 19 19 … … 95 95 } 96 96 /*}}}*/ 97 /*FUNCTION MatlabNArrayToNArray(bool** pmatrix,int* pmatrix_numel,int* pmatrix_ndims,int** pmatrix_size,const mxArray* mxmatrix){{{ 1*/97 /*FUNCTION MatlabNArrayToNArray(bool** pmatrix,int* pmatrix_numel,int* pmatrix_ndims,int** pmatrix_size,const mxArray* mxmatrix){{{*/ 98 98 int MatlabNArrayToNArray(bool** pmatrix,int* pmatrix_numel,int* pmatrix_ndims,int** pmatrix_size,const mxArray* mxmatrix){ 99 99 … … 175 175 } 176 176 /*}}}*/ 177 /*FUNCTION MatlabNArrayToNArray(char** pmatrix,int* pmatrix_numel,int* pmatrix_ndims,int** pmatrix_size,const mxArray* mxmatrix){{{ 1*/177 /*FUNCTION MatlabNArrayToNArray(char** pmatrix,int* pmatrix_numel,int* pmatrix_ndims,int** pmatrix_size,const mxArray* mxmatrix){{{*/ 178 178 int MatlabNArrayToNArray(char** pmatrix,int* pmatrix_numel,int* pmatrix_ndims,int** pmatrix_size,const mxArray* mxmatrix){ 179 179 -
TabularUnified issm/trunk-jpl/src/c/matlab/io/MatlabVectorToSeqVec.cpp ¶
r12013 r12365 3 3 4 4 /*Headers:*/ 5 /*{{{ 1*/5 /*{{{*/ 6 6 #ifdef HAVE_CONFIG_H 7 7 #include <config.h> -
TabularUnified issm/trunk-jpl/src/c/matlab/io/MatlabVectorToVector.cpp ¶
r12013 r12365 3 3 4 4 /*Headers:*/ 5 /*{{{ 1*/5 /*{{{*/ 6 6 #ifdef HAVE_CONFIG_H 7 7 #include <config.h> -
TabularUnified issm/trunk-jpl/src/c/matlab/io/OptionParse.cpp ¶
r12225 r12365 15 15 #include <mex.h> 16 16 17 /*FUNCTION OptionDoubleParse {{{ 1*/17 /*FUNCTION OptionDoubleParse {{{*/ 18 18 OptionDouble* OptionDoubleParse( char* name, const mxArray* prhs[]){ 19 19 … … 34 34 return(odouble); 35 35 }/*}}}*/ 36 /*FUNCTION OptionLogicalParse {{{ 1*/36 /*FUNCTION OptionLogicalParse {{{*/ 37 37 OptionLogical* OptionLogicalParse( char* name, const mxArray* prhs[]){ 38 38 … … 53 53 return(ological); 54 54 }/*}}}*/ 55 /*FUNCTION OptionCharParse {{{ 1*/55 /*FUNCTION OptionCharParse {{{*/ 56 56 OptionChar* OptionCharParse( char* name, const mxArray* prhs[]){ 57 57 … … 72 72 return(ochar); 73 73 }/*}}}*/ 74 /*FUNCTION OptionStructParse {{{ 1*/74 /*FUNCTION OptionStructParse {{{*/ 75 75 OptionStruct* OptionStructParse( char* name, const mxArray* prhs[]){ 76 76 … … 117 117 return(ostruct); 118 118 }/*}}}*/ 119 /*FUNCTION OptionCellParse {{{ 1*/119 /*FUNCTION OptionCellParse {{{*/ 120 120 OptionCell* OptionCellParse( char* name, const mxArray* prhs[]){ 121 121 … … 167 167 return(ocell); 168 168 }/*}}}*/ 169 /*FUNCTION OptionParse{{{ 1*/169 /*FUNCTION OptionParse{{{*/ 170 170 Option* OptionParse(char* name, const mxArray* prhs[]){ 171 171 -
TabularUnified issm/trunk-jpl/src/c/matlab/io/WriteMatlabData.cpp ¶
r12102 r12365 17 17 18 18 /*Primitive data types*/ 19 /*FUNCTION WriteData(mxArray** pdataref,double* matrix, int M,int N){{{ 1*/19 /*FUNCTION WriteData(mxArray** pdataref,double* matrix, int M,int N){{{*/ 20 20 void WriteData(mxArray** pdataref,double* matrix, int M,int N){ 21 21 … … 42 42 } 43 43 /*}}}*/ 44 /*FUNCTION WriteData(mxArray** pdataref,int* matrix, int M,int N){{{ 1*/44 /*FUNCTION WriteData(mxArray** pdataref,int* matrix, int M,int N){{{*/ 45 45 void WriteData(mxArray** pdataref,int* matrix, int M,int N){ 46 46 … … 67 67 } 68 68 /*}}}*/ 69 /*FUNCTION WriteData(mxArray** pdataref,double* vector, int M){{{ 1*/69 /*FUNCTION WriteData(mxArray** pdataref,double* vector, int M){{{*/ 70 70 void WriteData(mxArray** pdataref,double* vector, int M){ 71 71 … … 90 90 } 91 91 /*}}}*/ 92 /*FUNCTION WriteData(mxArray** pdataref,double scalar){{{ 1*/92 /*FUNCTION WriteData(mxArray** pdataref,double scalar){{{*/ 93 93 void WriteData(mxArray** pdataref,double scalar){ 94 94 … … 96 96 } 97 97 /*}}}*/ 98 /*FUNCTION WriteData(mxArray** pdataref,int integer){{{ 1*/98 /*FUNCTION WriteData(mxArray** pdataref,int integer){{{*/ 99 99 void WriteData(mxArray** pdataref,int integer){ 100 100 … … 103 103 } 104 104 /*}}}*/ 105 /*FUNCTION WriteData(mxArray** pdataref,int boolean){{{ 1*/105 /*FUNCTION WriteData(mxArray** pdataref,int boolean){{{*/ 106 106 void WriteData(mxArray** pdataref,bool boolean){ 107 107 … … 110 110 } 111 111 /*}}}*/ 112 /*FUNCTION WriteData(mxArray** pdataref,char* string){{{ 1*/112 /*FUNCTION WriteData(mxArray** pdataref,char* string){{{*/ 113 113 void WriteData(mxArray** pdataref,char* string){ 114 114 … … 118 118 119 119 /*ISSM objects*/ 120 /*FUNCTION WriteData(mxArray** pdataref,BamgGeom* bamggeom){{{ 1*/120 /*FUNCTION WriteData(mxArray** pdataref,BamgGeom* bamggeom){{{*/ 121 121 void WriteData(mxArray** pdataref,BamgGeom* bamggeom){ 122 122 … … 158 158 } 159 159 /*}}}*/ 160 /*FUNCTION WriteData(mxArray** pdataref,BamgMesh* bamgmesh){{{ 1*/160 /*FUNCTION WriteData(mxArray** pdataref,BamgMesh* bamgmesh){{{*/ 161 161 void WriteData(mxArray** pdataref,BamgMesh* bamgmesh){ 162 162 … … 216 216 } 217 217 /*}}}*/ 218 /*FUNCTION WriteData(mxArray** pdataref,Matrix* matrix){{{ 1*/218 /*FUNCTION WriteData(mxArray** pdataref,Matrix* matrix){{{*/ 219 219 void WriteData(mxArray** pdataref,Matrix* matrix){ 220 220 … … 259 259 } 260 260 /*}}}*/ 261 /*FUNCTION WriteData(mxArray** pdataref,Vector* vector){{{ 1*/261 /*FUNCTION WriteData(mxArray** pdataref,Vector* vector){{{*/ 262 262 void WriteData(mxArray** pdataref,Vector* vector){ 263 263 … … 296 296 297 297 /*Toolkit*/ 298 /*FUNCTION SetStructureField{{{ 1*/298 /*FUNCTION SetStructureField{{{*/ 299 299 void SetStructureField(mxArray* dataref,const char* fieldname,int M,int N,double* fieldpointer){ 300 300 -
TabularUnified issm/trunk-jpl/src/c/modules/Bamgx/Bamgx.cpp ¶
r12218 r12365 38 38 /*If no mesh in input, generate one*/ 39 39 if(bamgmesh_in->TrianglesSize[0]==0){ 40 /*Mesh generation {{{ 1*/40 /*Mesh generation {{{*/ 41 41 42 42 //Step1: generate geometry Gh … … 84 84 } 85 85 else{ 86 /*Anisotropic mesh adaptation {{{ 1*/86 /*Anisotropic mesh adaptation {{{*/ 87 87 88 88 // read background mesh -
TabularUnified issm/trunk-jpl/src/c/modules/ConstraintsStatex/RiftConstraintsState.cpp ¶
r12102 r12365 12 12 13 13 /*current module: */ 14 /*RiftIsPresent(Loads* loads,int configuration_type){{{ 1*/14 /*RiftIsPresent(Loads* loads,int configuration_type){{{*/ 15 15 int RiftIsPresent(Loads* loads,int configuration_type){ 16 16 … … 41 41 } 42 42 /*}}}*/ 43 /*RiftConstraintsState(int* pconverged, int* pnum_unstable_constraints,Loads* loads,int min_mechanical_constraints,int configuration_type){{{ 1*/43 /*RiftConstraintsState(int* pconverged, int* pnum_unstable_constraints,Loads* loads,int min_mechanical_constraints,int configuration_type){{{*/ 44 44 void RiftConstraintsState(int* pconverged, int* pnum_unstable_constraints,Loads* loads,int min_mechanical_constraints,int configuration_type){ 45 45 … … 65 65 } 66 66 /*}}}*/ 67 /*RiftConstrain(int* pnum_unstable_constraints,Loads* loads,int configuration_type){{{ 1*/67 /*RiftConstrain(int* pnum_unstable_constraints,Loads* loads,int configuration_type){{{*/ 68 68 void RiftConstrain(int* pnum_unstable_constraints,Loads* loads,int configuration_type){ 69 69 … … 106 106 } 107 107 /*}}}*/ 108 /*RiftIsFrozen(Loads* loads,int configuration_type){{{ 1*/108 /*RiftIsFrozen(Loads* loads,int configuration_type){{{*/ 109 109 int RiftIsFrozen(Loads* loads,int configuration_type){ 110 110 … … 144 144 } 145 145 /*}}}*/ 146 /*RiftFreezeConstraints(Loads* loads,int configuration_type){{{ 1*/146 /*RiftFreezeConstraints(Loads* loads,int configuration_type){{{*/ 147 147 void RiftFreezeConstraints(Loads* loads,int configuration_type){ 148 148 … … 172 172 173 173 /*diverse trials and errors: */ 174 /*RiftIsMaterialStable(Loads* loads){{{ 1*/174 /*RiftIsMaterialStable(Loads* loads){{{*/ 175 175 int RiftIsMaterialStable(Loads* loads){ 176 176 … … 204 204 } 205 205 /*}}}*/ 206 /*RiftIsPreStable(Loads* loads){{{ 1*/206 /*RiftIsPreStable(Loads* loads){{{*/ 207 207 int RiftIsPreStable(Loads* loads){ 208 208 … … 243 243 } 244 244 /*}}}*/ 245 /*RiftSetPreStable(Loads* loads){{{ 1*/245 /*RiftSetPreStable(Loads* loads){{{*/ 246 246 void RiftSetPreStable(Loads* loads){ 247 247 … … 264 264 } 265 265 /*}}}*/ 266 /*RiftPreConstrain(int* pnum_unstable_constraints,Loads* loads){{{ 1*/266 /*RiftPreConstrain(int* pnum_unstable_constraints,Loads* loads){{{*/ 267 267 void RiftPreConstrain(int* pnum_unstable_constraints,Loads* loads){ 268 268 … … 300 300 } 301 301 /*}}}*/ 302 /*RiftMaxPenetrationInInputs(Loads* loads){{{ 1*/302 /*RiftMaxPenetrationInInputs(Loads* loads){{{*/ 303 303 void RiftMaxPenetrationInInputs(Loads* loads){ 304 304 … … 342 342 } 343 343 /*}}}*/ 344 /*RiftPotentialUnstableConstraints(Loads* loads){{{ 1*/344 /*RiftPotentialUnstableConstraints(Loads* loads){{{*/ 345 345 int RiftPotentialUnstableConstraints(Loads* loads){ 346 346 -
TabularUnified issm/trunk-jpl/src/c/modules/GroundinglineMigrationx/GroundinglineMigrationx.cpp ¶
r12102 r12365 54 54 } 55 55 56 /*FUNCTION CreateNodesOnFloatingIce {{{ 1*/56 /*FUNCTION CreateNodesOnFloatingIce {{{*/ 57 57 Vector* CreateNodesOnFloatingIce(Nodes* nodes,int configuration_type){ 58 58 … … 81 81 } 82 82 /*%}}}*/ 83 /*FUNCTION PotentialSheetUngrounding {{{ 1*/83 /*FUNCTION PotentialSheetUngrounding {{{*/ 84 84 double* PotentialSheetUngrounding(Elements* elements,Vertices* vertices,Parameters* parameters){ 85 85 … … 108 108 } 109 109 /*}}}*/ 110 /*FUNCTION PropagateFloatingiceToGroundedNeighbors {{{ 1*/110 /*FUNCTION PropagateFloatingiceToGroundedNeighbors {{{*/ 111 111 double* PropagateFloatingiceToGroundedNeighbors(Elements* elements,Nodes* nodes,Vertices* vertices,Parameters* parameters,double* vertices_potentially_ungrounding){ 112 112 -
TabularUnified issm/trunk-jpl/src/c/modules/InterpFromGridToMeshx/InterpFromGridToMeshx.cpp ¶
r11695 r12365 92 92 } 93 93 /*}}}*/ 94 /*InterpFromGridToMeshxt {{{ 1*/94 /*InterpFromGridToMeshxt {{{*/ 95 95 void* InterpFromGridToMeshxt(void* vpthread_handle){ 96 96 … … 183 183 }/*}}}*/ 184 184 185 /*findindices {{{ 1*/185 /*findindices {{{*/ 186 186 bool findindices(int* pn,int* pm,double* x,int x_rows, double* y,int y_rows, double xgrid,double ygrid){ 187 187 … … 218 218 return (foundx && foundy); 219 219 }/*}}}*/ 220 /*triangleinterp{{{ 1*/220 /*triangleinterp{{{*/ 221 221 double triangleinterp(double x1,double x2,double y1,double y2,double Q11,double Q12,double Q21,double Q22,double x,double y){ 222 222 /*split the rectangle in 2 triangle and … … 259 259 } 260 260 }/*}}}*/ 261 /*bilinearinterp{{{ 1*/261 /*bilinearinterp{{{*/ 262 262 double bilinearinterp(double x1,double x2,double y1,double y2,double Q11,double Q12,double Q21,double Q22,double x,double y){ 263 263 /*Bilinear interpolation: (http://en.wikipedia.org/wiki/Bilinear_interpolation) */ … … 286 286 } 287 287 /*}}}*/ 288 /*nearestinterp{{{ 1*/288 /*nearestinterp{{{*/ 289 289 double nearestinterp(double x1,double x2,double y1,double y2,double Q11,double Q12,double Q21,double Q22,double x,double y){ 290 290 /*Nearest neighbor interpolation*/ -
TabularUnified issm/trunk-jpl/src/c/modules/ModelProcessorx/Dakota/CreateParametersDakota.cpp ¶
r10660 r12365 15 15 void CreateParametersDakota(Parameters** pparameters,IoModel* iomodel,int solution_type,int analysis_type){ 16 16 17 /*variable declarations: {{{ 1*/17 /*variable declarations: {{{*/ 18 18 int i,j,k; 19 19 … … 73 73 iomodel->Constant(&numberofvertices,MeshNumberofverticesEnum); 74 74 75 /*name of qmu input, error and output files:{{{ 1*/75 /*name of qmu input, error and output files:{{{*/ 76 76 qmuinname=(char*)xmalloc((strlen(name)+strlen(".qmu.in")+1)*sizeof(char)); 77 77 sprintf(qmuinname,"%s%s",name,".qmu.in"); … … 86 86 parameters->AddObject(new StringParam(QmuErrNameEnum,qmuerrname)); 87 87 /*}}}*/ 88 /*Fetch variable descriptors: {{{ 1*/88 /*Fetch variable descriptors: {{{*/ 89 89 iomodel->FetchData(&variabledescriptors,&numvariabledescriptors,QmuVariabledescriptorsEnum); 90 90 … … 93 93 94 94 /*}}}*/ 95 /*Fetch response descriptors: {{{ 1*/95 /*Fetch response descriptors: {{{*/ 96 96 iomodel->FetchData(&responsedescriptors,&numresponsedescriptors,QmuResponsedescriptorsEnum); 97 97 … … 100 100 parameters->AddObject(new IntParam(QmuNumberofresponsesEnum,numberofresponses)); 101 101 /*}}}*/ 102 /*Deal with partitioning: {{{ 1*/102 /*Deal with partitioning: {{{*/ 103 103 /*partition vertices in iomodel->qmu_npart parts, unless a partition is already present: */ 104 104 … … 116 116 parameters->AddObject(new DoubleVecParam(QmuPartitionEnum,dpart,numberofvertices)); 117 117 /*}}}*/ 118 /*Deal with data needed because of qmu variables: {{{ 1*/118 /*Deal with data needed because of qmu variables: {{{*/ 119 119 120 120 for(i=0;i<numvariabledescriptors;i++){ … … 140 140 } 141 141 /*}}}*/ 142 /*Deal with data needed to compute qmu responses: {{{ 1*/142 /*Deal with data needed to compute qmu responses: {{{*/ 143 143 for(i=0;i<numresponsedescriptors;i++){ 144 144 … … 201 201 } 202 202 /*}}}*/ 203 /*Free data: {{{ 1*/203 /*Free data: {{{*/ 204 204 for(i=0;i<numresponsedescriptors;i++){ 205 205 descriptor=responsedescriptors[i]; -
TabularUnified issm/trunk-jpl/src/c/modules/SystemMatricesx/SystemMatricesx.cpp ¶
r11695 r12365 41 41 numberofdofspernode=nodes->MaxNumDofs(configuration_type,GsetEnum); 42 42 43 /*Checks in debugging mode {{{ 1*/43 /*Checks in debugging mode {{{*/ 44 44 if(penalty_kflag)_assert_(kflag); 45 45 if(penalty_pflag)_assert_(pflag); -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/AdjacentTriangle.cpp ¶
r5401 r12365 14 14 15 15 /*Methods*/ 16 /*FUNCTION AdjacentTriangle::Locked {{{ 1*/16 /*FUNCTION AdjacentTriangle::Locked {{{*/ 17 17 int AdjacentTriangle::Locked() const { 18 18 return t->AdjEdgeIndex[a] & 4; 19 19 } 20 20 /*}}}*/ 21 /*FUNCTION AdjacentTriangle::MarkUnSwap {{{ 1*/21 /*FUNCTION AdjacentTriangle::MarkUnSwap {{{*/ 22 22 int AdjacentTriangle::MarkUnSwap() const { 23 23 return t->AdjEdgeIndex[a] & 8; 24 24 } 25 25 /*}}}*/ 26 /*FUNCTION AdjacentTriangle::GetAllFlag_UnSwap {{{ 1*/26 /*FUNCTION AdjacentTriangle::GetAllFlag_UnSwap {{{*/ 27 27 int AdjacentTriangle::GetAllFlag_UnSwap() const { 28 28 // take all flag except MarkUnSwap … … 30 30 } 31 31 /*}}}*/ 32 /*FUNCTION AdjacentTriangle::SetLock {{{ 1*/32 /*FUNCTION AdjacentTriangle::SetLock {{{*/ 33 33 void AdjacentTriangle::SetLock(){ 34 34 t->SetLocked(a); 35 35 } 36 36 /*}}}*/ 37 /*FUNCTION AdjacentTriangle::Adj {{{ 1*/37 /*FUNCTION AdjacentTriangle::Adj {{{*/ 38 38 AdjacentTriangle AdjacentTriangle::Adj() const { 39 39 return t->Adj(a); 40 40 } 41 41 /*}}}*/ 42 /*FUNCTION AdjacentTriangle::EdgeVertex {{{ 1*/42 /*FUNCTION AdjacentTriangle::EdgeVertex {{{*/ 43 43 BamgVertex* AdjacentTriangle::EdgeVertex(const int & i) const { 44 44 return t->vertices[VerticesOfTriangularEdge[a][i]]; 45 45 } 46 46 /*}}}*/ 47 /*FUNCTION AdjacentTriangle::OppositeVertex {{{ 1*/47 /*FUNCTION AdjacentTriangle::OppositeVertex {{{*/ 48 48 BamgVertex* AdjacentTriangle::OppositeVertex() const { 49 49 return t->vertices[bamg::OppositeVertex[a]]; 50 50 } 51 51 /*}}}*/ 52 /*FUNCTION AdjacentTriangle::det {{{ 1*/52 /*FUNCTION AdjacentTriangle::det {{{*/ 53 53 Icoor2 & AdjacentTriangle::det() const { 54 54 return t->det; 55 55 } 56 56 /*}}}*/ 57 /*FUNCTION AdjacentTriangle::swap {{{ 1*/57 /*FUNCTION AdjacentTriangle::swap {{{*/ 58 58 int AdjacentTriangle::swap(){ 59 59 return t->swap(a); 60 60 } 61 61 /*}}}*/ 62 /*FUNCTION AdjacentTriangle::SetAdj2 {{{ 1*/62 /*FUNCTION AdjacentTriangle::SetAdj2 {{{*/ 63 63 void AdjacentTriangle::SetAdj2(const AdjacentTriangle & ta, int l ){ 64 64 //set Adjacent Triangle of a triangle -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/BamgGeom.cpp ¶
r12011 r12365 5 5 6 6 /*Constructors/Destructors*/ 7 /*FUNCTION BamgGeom::BamgGeom(){{{ 1*/7 /*FUNCTION BamgGeom::BamgGeom(){{{*/ 8 8 BamgGeom::BamgGeom(){ 9 9 … … 19 19 } 20 20 /*}}}*/ 21 /*FUNCTION BamgGeom::~BamgGeom(){{{ 1*/21 /*FUNCTION BamgGeom::~BamgGeom(){{{*/ 22 22 BamgGeom::~BamgGeom(){ 23 23 -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/BamgMesh.cpp ¶
r12043 r12365 5 5 6 6 /*Constructors/Destructors*/ 7 /*FUNCTION BamgMesh::BamgMesh(){{{ 1*/7 /*FUNCTION BamgMesh::BamgMesh(){{{*/ 8 8 BamgMesh::BamgMesh(){ 9 9 … … 30 30 } 31 31 /*}}}*/ 32 /*FUNCTION BamgMesh::~BamgMesh(){{{ 1*/32 /*FUNCTION BamgMesh::~BamgMesh(){{{*/ 33 33 BamgMesh::~BamgMesh(){ 34 34 -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/BamgOpts.cpp ¶
r12011 r12365 6 6 7 7 /*Constructors/Destructors*/ 8 /*FUNCTION BamgOpts::BamgOpts() {{{ 1*/8 /*FUNCTION BamgOpts::BamgOpts() {{{*/ 9 9 BamgOpts::BamgOpts(){ 10 10 … … 41 41 } 42 42 /*}}}*/ 43 /*FUNCTION BamgOpts::~BamgOpts() {{{ 1*/43 /*FUNCTION BamgOpts::~BamgOpts() {{{*/ 44 44 BamgOpts::~BamgOpts(){ 45 45 … … 55 55 56 56 /*Methods*/ 57 /*FUNCTION BamgOpts::Check{{{ 1*/57 /*FUNCTION BamgOpts::Check{{{*/ 58 58 void BamgOpts::Check(void){ 59 59 -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/BamgQuadtree.cpp ¶
r12218 r12365 7 7 namespace bamg { 8 8 9 /*MACROS {{{ 1*/9 /*MACROS {{{*/ 10 10 /* 11 11 * … … 48 48 #define J_IJ(k,l) ((k&2) ? l:0) 49 49 /*}}}*/ 50 /*DOCUMENTATION What is a BamgQuadtree? {{{ 150 /*DOCUMENTATION What is a BamgQuadtree? {{{ 51 51 * A Quadtree is a very simple way to group vertices according 52 52 * to their locations. A square that holds all the points of the mesh … … 94 94 * Using binaries is therefore very easy to locate a vertex in a box: 95 95 * we just need to look at the bits from the left to the right (See ::Add) 96 }}} 1*/96 }}}*/ 97 97 98 98 /*Constructors/Destructors*/ 99 /*FUNCTION BamgQuadtree::BamgQuadtree(){{{ 1*/99 /*FUNCTION BamgQuadtree::BamgQuadtree(){{{*/ 100 100 BamgQuadtree::BamgQuadtree(){ 101 101 … … 111 111 112 112 } 113 /*}}} 1*/114 /*FUNCTION BamgQuadtree::BamgQuadtree(Mesh * t,long nbv){{{ 1*/113 /*}}}*/ 114 /*FUNCTION BamgQuadtree::BamgQuadtree(Mesh * t,long nbv){{{*/ 115 115 BamgQuadtree::BamgQuadtree(Mesh * t,long nbv){ 116 116 … … 133 133 134 134 } 135 /*}}} 1*/136 /*FUNCTION BamgQuadtree::~BamgQuadtree(){{{ 1*/135 /*}}}*/ 136 /*FUNCTION BamgQuadtree::~BamgQuadtree(){{{*/ 137 137 BamgQuadtree::~BamgQuadtree() { 138 138 delete boxcontainer; 139 139 root=NULL; 140 140 } 141 /*}}} 1*/141 /*}}}*/ 142 142 143 143 /*Methods*/ 144 /*FUNCTION BamgQuadtree::Add{{{ 1*/144 /*FUNCTION BamgQuadtree::Add{{{*/ 145 145 void BamgQuadtree::Add(BamgVertex &w){ 146 146 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, BamgQuadtree.cpp/Add)*/ … … 230 230 NbVertices++; 231 231 } 232 /*}}} 1*/233 /*FUNCTION BamgQuadtree::NearestVertex{{{ 1*/232 /*}}}*/ 233 /*FUNCTION BamgQuadtree::NearestVertex{{{*/ 234 234 BamgVertex* BamgQuadtree::NearestVertex(Icoor1 i,Icoor1 j) { 235 235 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, BamgQuadtree.cpp/NearestVertex)*/ … … 389 389 390 390 } 391 /*}}} 1*/392 /*FUNCTION BamgQuadtree::NearestVertexWithNormal{{{ 1*/391 /*}}}*/ 392 /*FUNCTION BamgQuadtree::NearestVertexWithNormal{{{*/ 393 393 BamgVertex* BamgQuadtree::NearestVertexWithNormal(Icoor1 i,Icoor1 j) { 394 394 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, BamgQuadtree.cpp/NearestVertexWithNormal)*/ … … 497 497 return vn; 498 498 } 499 /*}}} 1*/500 /*FUNCTION BamgQuadtree::NewBamgQuadtreeBox {{{ 1*/499 /*}}}*/ 500 /*FUNCTION BamgQuadtree::NewBamgQuadtreeBox {{{*/ 501 501 BamgQuadtree::BamgQuadtreeBox* BamgQuadtree::NewBamgQuadtreeBox(void){ 502 502 … … 521 521 return newbox; 522 522 }/*}}}*/ 523 /*FUNCTION BamgQuadtree::ToClose {{{ 1*/523 /*FUNCTION BamgQuadtree::ToClose {{{*/ 524 524 BamgVertex* BamgQuadtree::ToClose(BamgVertex & v,double seuil,Icoor1 hx,Icoor1 hy){ 525 525 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, BamgQuadtree.cpp/ToClose)*/ … … 595 595 return 0; 596 596 } 597 /*}}} 1*/597 /*}}}*/ 598 598 } -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/BamgVertex.cpp ¶
r6412 r12365 9 9 10 10 /*Methods*/ 11 /*FUNCTION BamgVertex::Echo {{{ 1*/11 /*FUNCTION BamgVertex::Echo {{{*/ 12 12 13 13 void BamgVertex::Echo(void){ … … 22 22 } 23 23 /*}}}*/ 24 /*FUNCTION BamgVertex::GetReferenceNumber{{{ 1*/24 /*FUNCTION BamgVertex::GetReferenceNumber{{{*/ 25 25 int BamgVertex::GetReferenceNumber() const { 26 26 return ReferenceNumber; 27 27 } 28 28 /*}}}*/ 29 /*FUNCTION BamgVertex::MetricFromHessian{{{ 1*/29 /*FUNCTION BamgVertex::MetricFromHessian{{{*/ 30 30 void BamgVertex::MetricFromHessian(const double Hxx,const double Hyx, const double Hyy,const double smin,const double smax,const double s,double err,BamgOpts* bamgopts){ 31 31 /*Compute Metric from Hessian*/ … … 105 105 106 106 } 107 /*}}} 1*/108 /*FUNCTION BamgVertex::Optim {{{ 1*/107 /*}}}*/ 108 /*FUNCTION BamgVertex::Optim {{{*/ 109 109 long BamgVertex::Optim(int i,int koption){ 110 110 long ret=0; … … 119 119 } 120 120 /*}}}*/ 121 /*FUNCTION BamgVertex::Smoothing{{{ 1*/121 /*FUNCTION BamgVertex::Smoothing{{{*/ 122 122 double BamgVertex::Smoothing(Mesh &Th,const Mesh &BTh,Triangle* &tstart ,double omega){ 123 123 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/Smoothing)*/ … … 222 222 return delta; 223 223 } 224 /*}}} 1*/224 /*}}}*/ 225 225 226 226 /*Intermediary*/ 227 /*FUNCTION QuadQuality{{{ 1*/227 /*FUNCTION QuadQuality{{{*/ 228 228 double QuadQuality(const BamgVertex & a,const BamgVertex &b,const BamgVertex &c,const BamgVertex &d) { 229 229 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, MeshQuad.cpp/QuadQuality)*/ … … 252 252 return 1.0-Max(Max(Abs(cosDAB),Abs(cosABC)),Max(Abs(cosBCD),Abs(cosCDA))); 253 253 } 254 /*}}} 1*/254 /*}}}*/ 255 255 256 256 } -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/CrackedEdge.cpp ¶
r3913 r12365 9 9 10 10 /*Constructors/Destructors*/ 11 /*FUNCTION CrackedEdge() {{{ 1*/11 /*FUNCTION CrackedEdge() {{{*/ 12 12 CrackedEdge::CrackedEdge() { 13 13 a=NULL; -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/Curve.cpp ¶
r5401 r12365 10 10 11 11 /*Constructors/Destructors*/ 12 /*FUNCTION Curve::Curve(){{{ 1*/12 /*FUNCTION Curve::Curve(){{{*/ 13 13 Curve::Curve(){ 14 14 FirstEdge=NULL; … … 20 20 21 21 /*Methods*/ 22 /*FUNCTION Curve::Reverse {{{ 1*/22 /*FUNCTION Curve::Reverse {{{*/ 23 23 void Curve::Reverse() { 24 24 /*reverse the direction of the curve */ … … 27 27 } 28 28 /*}}}*/ 29 /*FUNCTION Curve::Set {{{ 1*/29 /*FUNCTION Curve::Set {{{*/ 30 30 void Curve::Set(const Curve & rec,const Geometry & Gh ,Geometry & GhNew){ 31 31 *this = rec; -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/Direction.cpp ¶
r5148 r12365 9 9 10 10 /*Constructors/Destructors*/ 11 /*FUNCTION Direction() {{{ 1*/11 /*FUNCTION Direction() {{{*/ 12 12 Direction::Direction(): 13 13 dir(MaxICoor){ 14 14 15 15 }/*}}}*/ 16 /*FUNCTION Direction(Icoor1 i,Icoor1 j) {{{ 1*/16 /*FUNCTION Direction(Icoor1 i,Icoor1 j) {{{*/ 17 17 Direction::Direction(Icoor1 i,Icoor1 j) { 18 18 Icoor2 n2 = 2*(Abs(i)+Abs(j)); … … 23 23 24 24 /*Methods*/ 25 /*FUNCTION Direction::direction{{{ 1*/25 /*FUNCTION Direction::direction{{{*/ 26 26 int Direction::direction(Icoor1 i,Icoor1 j) { 27 27 int r =1; -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/Edge.cpp ¶
r6412 r12365 13 13 14 14 /*Methods*/ 15 /*FUNCTION Edge::Set {{{ 1*/15 /*FUNCTION Edge::Set {{{*/ 16 16 void Edge::Set(const Mesh & Th ,long i,Mesh & ThNew){ 17 17 *this = Th.edges[i]; … … 24 24 } 25 25 /*}}}*/ 26 /*FUNCTION Edge::Echo {{{ 1*/26 /*FUNCTION Edge::Echo {{{*/ 27 27 void Edge::Echo(void){ 28 28 printf("Edge:\n"); … … 33 33 } 34 34 /*}}}*/ 35 /*FUNCTION Edge::Renumbering{{{ 1*/35 /*FUNCTION Edge::Renumbering{{{*/ 36 36 void Edge::Renumbering(BamgVertex *vb,BamgVertex *ve, long *renu){ 37 37 … … 41 41 } 42 42 /*}}}*/ 43 /*FUNCTION Edge::Intersection{{{ 1*/43 /*FUNCTION Edge::Intersection{{{*/ 44 44 int Edge::Intersection(const Edge & e){ 45 45 -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/EigenMetric.cpp ¶
r9371 r12365 9 9 10 10 /*Constructor*/ 11 /*FUNCTION EigenMetric::EigenMetric(const Metric M){{{ 1*/11 /*FUNCTION EigenMetric::EigenMetric(const Metric M){{{*/ 12 12 EigenMetric::EigenMetric(const Metric& M){ 13 13 /*From a metric (a11,a21,a22), get eigen values lambda1 and lambda2 and one eigen vector v*/ … … 88 88 89 89 } 90 /*}}} 1*/91 /*FUNCTION EigenMetric::EigenMetric(double r1,double r2,const D2 vp1){{{ 1*/90 /*}}}*/ 91 /*FUNCTION EigenMetric::EigenMetric(double r1,double r2,const D2 vp1){{{*/ 92 92 EigenMetric::EigenMetric(double r1,double r2,const D2& vp1): lambda1(r1),lambda2(r2),v(vp1){ 93 93 … … 95 95 96 96 /*Methods*/ 97 /*FUNCTION EigenMetric::Abs{{{ 1*/97 /*FUNCTION EigenMetric::Abs{{{*/ 98 98 void EigenMetric::Abs(){ 99 99 lambda1=bamg::Abs(lambda1),lambda2=bamg::Abs(lambda2); 100 100 }/*}}}*/ 101 /*FUNCTION EigenMetric::Aniso{{{ 1*/101 /*FUNCTION EigenMetric::Aniso{{{*/ 102 102 double EigenMetric::Aniso() const { 103 103 return sqrt( Aniso2()); 104 104 }/*}}}*/ 105 /*FUNCTION EigenMetric::Aniso2{{{ 1*/105 /*FUNCTION EigenMetric::Aniso2{{{*/ 106 106 double EigenMetric::Aniso2() const { 107 107 return lmax()/lmin(); 108 108 }/*}}}*/ 109 /*FUNCTION EigenMetric::BoundAniso{{{ 1*/109 /*FUNCTION EigenMetric::BoundAniso{{{*/ 110 110 void EigenMetric::BoundAniso(const double c){ 111 111 BoundAniso2(1/(c*c)); 112 112 }/*}}}*/ 113 /*FUNCTION EigenMetric::Echo {{{ 1*/113 /*FUNCTION EigenMetric::Echo {{{*/ 114 114 void EigenMetric::Echo(void){ 115 115 … … 123 123 } 124 124 /*}}}*/ 125 /*FUNCTION EigenMetric::hmin{{{ 1*/125 /*FUNCTION EigenMetric::hmin{{{*/ 126 126 double EigenMetric::hmin() const { 127 127 return sqrt(1/bamg::Max3(lambda1,lambda2,1e-30)); 128 128 }/*}}}*/ 129 /*FUNCTION EigenMetric::hmax{{{ 1*/129 /*FUNCTION EigenMetric::hmax{{{*/ 130 130 double EigenMetric::hmax() const { 131 131 return sqrt(1/bamg::Max(bamg::Min(lambda1,lambda2),1e-30)); 132 132 }/*}}}*/ 133 /*FUNCTION EigenMetric::Isotrope{{{ 1*/133 /*FUNCTION EigenMetric::Isotrope{{{*/ 134 134 void EigenMetric::Isotrope() { 135 135 lambda1=lambda2=bamg::Max(lambda1,lambda2); 136 136 }/*}}}*/ 137 /*FUNCTION EigenMetric::lmax{{{ 1*/137 /*FUNCTION EigenMetric::lmax{{{*/ 138 138 double EigenMetric::lmax() const { 139 139 return bamg::Max3(lambda1,lambda2,1e-30); 140 140 }/*}}}*/ 141 /*FUNCTION EigenMetric::lmin{{{ 1*/141 /*FUNCTION EigenMetric::lmin{{{*/ 142 142 double EigenMetric::lmin() const { 143 143 return bamg::Max(bamg::Min(lambda1,lambda2),1e-30); 144 144 }/*}}}*/ 145 /*FUNCTION EigenMetric::Min{{{ 1*/145 /*FUNCTION EigenMetric::Min{{{*/ 146 146 void EigenMetric::Min(double a) { 147 147 lambda1=bamg::Min(a,lambda1); lambda2=bamg::Min(a,lambda2) ; 148 148 }/*}}}*/ 149 /*FUNCTION EigenMetric::Max{{{ 1*/149 /*FUNCTION EigenMetric::Max{{{*/ 150 150 void EigenMetric::Max(double a) { 151 151 //change eigen values 152 152 lambda1=bamg::Max(a,lambda1); lambda2=bamg::Max(a,lambda2) ; 153 153 }/*}}}*/ 154 /*FUNCTION EigenMetric::Minh{{{ 1*/154 /*FUNCTION EigenMetric::Minh{{{*/ 155 155 void EigenMetric::Minh(double h) { 156 156 Min(1.0/(h*h)); 157 157 }/*}}}*/ 158 /*FUNCTION EigenMetric::Maxh{{{ 1*/158 /*FUNCTION EigenMetric::Maxh{{{*/ 159 159 void EigenMetric::Maxh(double h) { 160 160 //Call Max function 161 161 Max(1.0/(h*h)); 162 162 }/*}}}*/ 163 /*FUNCTION EigenMetric::pow{{{ 1*/163 /*FUNCTION EigenMetric::pow{{{*/ 164 164 void EigenMetric::pow(double p){ 165 165 lambda1=::pow(lambda1,p);lambda2=::pow(lambda2,p); -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/GeomEdge.cpp ¶
r6412 r12365 16 16 17 17 /*Methods*/ 18 /*FUNCTION GeomEdge::Cracked{{{ 1*/18 /*FUNCTION GeomEdge::Cracked{{{*/ 19 19 int GeomEdge::Cracked() const { 20 20 return type &1; 21 21 }/*}}}*/ 22 /*FUNCTION GeomEdge::F{{{ 1*/22 /*FUNCTION GeomEdge::F{{{*/ 23 23 R2 GeomEdge::F(double theta) const{ 24 24 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, MeshGeom.cpp/F)*/ … … 62 62 return A*ca + B*cb + tg[0]*cta + tg[1]*ctb; 63 63 } 64 /*}}} 1*/65 /*FUNCTION GeomEdge::Mark{{{ 1*/64 /*}}}*/ 65 /*FUNCTION GeomEdge::Mark{{{*/ 66 66 int GeomEdge::Mark() const { 67 67 return type &16; 68 68 }/*}}}*/ 69 /*FUNCTION GeomEdge::R1tg{{{ 1*/69 /*FUNCTION GeomEdge::R1tg{{{*/ 70 70 double GeomEdge::R1tg(double theta,R2 & t) const{ 71 71 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, MeshGeom.cpp/R1tg)*/ … … 138 138 else return 0; 139 139 } 140 /*}}} 1*/141 /*FUNCTION GeomEdge::Required{{{ 1*/140 /*}}}*/ 141 /*FUNCTION GeomEdge::Required{{{*/ 142 142 int GeomEdge::Required() { 143 143 return type &64; 144 144 }/*}}}*/ 145 /*FUNCTION GeomEdge::Set {{{ 1*/145 /*FUNCTION GeomEdge::Set {{{*/ 146 146 void GeomEdge::Set(const GeomEdge & rec,const Geometry & Gh ,Geometry & GhNew){ 147 147 *this = rec; … … 152 152 } 153 153 /*}}}*/ 154 /*FUNCTION GeomEdge::SetCracked{{{ 1*/154 /*FUNCTION GeomEdge::SetCracked{{{*/ 155 155 void GeomEdge::SetCracked() { 156 156 type |= 1;/*=>1st digit to 1*/ 157 157 }/*}}}*/ 158 /*FUNCTION GeomEdge::SetTgA{{{ 1*/158 /*FUNCTION GeomEdge::SetTgA{{{*/ 159 159 void GeomEdge::SetTgA() { 160 160 type |=4; /*=>2d digit to 1*/ 161 161 }/*}}}*/ 162 /*FUNCTION GeomEdge::SetTgB{{{ 1*/162 /*FUNCTION GeomEdge::SetTgB{{{*/ 163 163 void GeomEdge::SetTgB() { 164 164 type |=8; /*=> 3d digit to 1*/ 165 165 }/*}}}*/ 166 /*FUNCTION GeomEdge::SetMark{{{ 1*/166 /*FUNCTION GeomEdge::SetMark{{{*/ 167 167 void GeomEdge::SetMark() { 168 168 type |=16;/*=> 4th digiy to 1*/ 169 169 }/*}}}*/ 170 /*FUNCTION GeomEdge::SetUnMark{{{ 1*/170 /*FUNCTION GeomEdge::SetUnMark{{{*/ 171 171 void GeomEdge::SetUnMark() { 172 172 type &= 1007 /* 1023-16 = 000111110111 => 4th digit to 0*/; 173 173 }/*}}}*/ 174 /*FUNCTION GeomEdge::SetRequired{{{ 1*/174 /*FUNCTION GeomEdge::SetRequired{{{*/ 175 175 void GeomEdge::SetRequired() { 176 176 type |= 64;/*=>6th digit to 1*/ 177 177 }/*}}}*/ 178 /*FUNCTION GeomEdge::Tg{{{ 1*/178 /*FUNCTION GeomEdge::Tg{{{*/ 179 179 int GeomEdge::Tg(int i) const { 180 180 return i==0 ? TgA() : TgB(); 181 181 }/*}}}*/ 182 /*FUNCTION GeomEdge::TgA{{{ 1*/182 /*FUNCTION GeomEdge::TgA{{{*/ 183 183 int GeomEdge::TgA() const { 184 184 return type &4; 185 185 }/*}}}*/ 186 /*FUNCTION GeomEdge::TgB{{{ 1*/186 /*FUNCTION GeomEdge::TgB{{{*/ 187 187 int GeomEdge::TgB() const { 188 188 return type &8; -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/GeomSubDomain.cpp ¶
r5573 r12365 12 12 13 13 /*Methods*/ 14 /*FUNCTION GeomSubDomain::Set {{{ 1*/14 /*FUNCTION GeomSubDomain::Set {{{*/ 15 15 void GeomSubDomain::Set(const GeomSubDomain & rec,const Geometry & Gh ,const Geometry & GhNew){ 16 16 *this = rec; -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/GeomVertex.cpp ¶
r5573 r12365 14 14 15 15 /*Methods*/ 16 /*FUNCTION GeomVertex::Corner {{{ 1*/16 /*FUNCTION GeomVertex::Corner {{{*/ 17 17 int GeomVertex::Corner() const { 18 18 return type & 4; 19 19 } 20 20 /*}}}*/ 21 /*FUNCTION GeomVertex::Required {{{ 1*/21 /*FUNCTION GeomVertex::Required {{{*/ 22 22 int GeomVertex::Required()const { 23 23 // a corner is required … … 25 25 } 26 26 /*}}}*/ 27 /*FUNCTION GeomVertex::SetCorner {{{ 1*/27 /*FUNCTION GeomVertex::SetCorner {{{*/ 28 28 void GeomVertex::SetCorner(){ 29 29 type |= 4; 30 30 } 31 31 /*}}}*/ 32 /*FUNCTION GeomVertex::SetRequired {{{ 1*/32 /*FUNCTION GeomVertex::SetRequired {{{*/ 33 33 void GeomVertex::SetRequired(){ 34 34 type |= 2; -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/Geometry.cpp ¶
r12218 r12365 13 13 14 14 /*Constructors/Destructors*/ 15 /*FUNCTION Geometry::Geometry(){{{ 1*/15 /*FUNCTION Geometry::Geometry(){{{*/ 16 16 Geometry::Geometry(){ 17 17 Init(); 18 18 } 19 19 /*}}}*/ 20 /*FUNCTION Geometry::Geometry(BamgGeom* bamggeom, BamgOpts* bamgopts){{{ 1*/20 /*FUNCTION Geometry::Geometry(BamgGeom* bamggeom, BamgOpts* bamgopts){{{*/ 21 21 Geometry::Geometry(BamgGeom* bamggeom, BamgOpts* bamgopts){ 22 22 Init(); … … 25 25 } 26 26 /*}}}*/ 27 /*FUNCTION Geometry::Geometry(const Geometry & Gh) (COPY operator){{{ 1*/27 /*FUNCTION Geometry::Geometry(const Geometry & Gh) (COPY operator){{{*/ 28 28 Geometry::Geometry(const Geometry & Gh) { 29 29 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, MeshGeom.cpp/Geometry)*/ … … 44 44 subdomains[i].Set(Gh.subdomains[i],Gh,*this); 45 45 } 46 /*}}} 1*/47 /*FUNCTION Geometry::~Geometry(){{{ 1*/46 /*}}}*/ 47 /*FUNCTION Geometry::~Geometry(){{{*/ 48 48 Geometry::~Geometry() { 49 49 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, MeshGeom.cpp/~Geometry)*/ … … 56 56 Init(); 57 57 } 58 /*}}} 1*/58 /*}}}*/ 59 59 60 60 /*IO*/ 61 /*FUNCTION Geometry::ReadGeometry{{{ 1*/61 /*FUNCTION Geometry::ReadGeometry{{{*/ 62 62 void Geometry::ReadGeometry(BamgGeom* bamggeom,BamgOpts* bamgopts){ 63 63 … … 279 279 } 280 280 } 281 /*}}} 1*/282 /*FUNCTION Geometry::WriteGeometry{{{ 1*/281 /*}}}*/ 282 /*FUNCTION Geometry::WriteGeometry{{{*/ 283 283 void Geometry::WriteGeometry(BamgGeom* bamggeom, BamgOpts* bamgopts){ 284 284 … … 397 397 } 398 398 } 399 /*}}} 1*/399 /*}}}*/ 400 400 401 401 /*Methods*/ 402 /*FUNCTION Geometry::Echo {{{ 1*/402 /*FUNCTION Geometry::Echo {{{*/ 403 403 void Geometry::Echo(void){ 404 404 … … 421 421 } 422 422 /*}}}*/ 423 /*FUNCTION Geometry::Init{{{ 1*/423 /*FUNCTION Geometry::Init{{{*/ 424 424 void Geometry::Init(void){ 425 425 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, MeshGeom.cpp/EmptyGeometry)*/ … … 437 437 MaxCornerAngle = 10*Pi/180; //default is 10 degres 438 438 } 439 /*}}} 1*/440 /*FUNCTION Geometry::MinimalHmin{{{ 1*/439 /*}}}*/ 440 /*FUNCTION Geometry::MinimalHmin{{{*/ 441 441 double Geometry::MinimalHmin() { 442 442 /* coeffIcoor = (2^30-1)/D … … 445 445 return 2.0/coefIcoor; 446 446 }/*}}}*/ 447 /*FUNCTION Geometry::MaximalHmax{{{ 1*/447 /*FUNCTION Geometry::MaximalHmax{{{*/ 448 448 double Geometry::MaximalHmax() { 449 449 return Max(pmax.x-pmin.x,pmax.y-pmin.y); 450 450 }/*}}}*/ 451 /*FUNCTION Geometry::GetId(const GeomVertex &t){{{ 1*/451 /*FUNCTION Geometry::GetId(const GeomVertex &t){{{*/ 452 452 long Geometry::GetId(const GeomVertex & t) const { 453 453 return &t - vertices; 454 454 }/*}}}*/ 455 /*FUNCTION Geometry::GetId(const GeomVertex * t){{{ 1*/455 /*FUNCTION Geometry::GetId(const GeomVertex * t){{{*/ 456 456 long Geometry::GetId(const GeomVertex * t) const { 457 457 return t - vertices; 458 458 }/*}}}*/ 459 /*FUNCTION Geometry::GetId(const GeomEdge & t){{{ 1*/459 /*FUNCTION Geometry::GetId(const GeomEdge & t){{{*/ 460 460 long Geometry::GetId(const GeomEdge & t) const { 461 461 return &t - edges; 462 462 }/*}}}*/ 463 /*FUNCTION Geometry::GetId(const GeomEdge * t){{{ 1*/463 /*FUNCTION Geometry::GetId(const GeomEdge * t){{{*/ 464 464 long Geometry::GetId(const GeomEdge * t) const { 465 465 return t - edges; 466 466 }/*}}}*/ 467 /*FUNCTION Geometry::GetId(const Curve * c){{{ 1*/467 /*FUNCTION Geometry::GetId(const Curve * c){{{*/ 468 468 long Geometry::GetId(const Curve * c) const { 469 469 return c - curves; 470 470 }/*}}}*/ 471 /*FUNCTION Geometry::Containing{{{ 1*/471 /*FUNCTION Geometry::Containing{{{*/ 472 472 GeomEdge* Geometry::Containing(const R2 P, GeomEdge * start) const { 473 473 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, MeshGeom.cpp/Contening)*/ … … 494 494 return on; 495 495 } 496 /*}}} 1*/497 /*FUNCTION Geometry::PostRead{{{ 1*/496 /*}}}*/ 497 /*FUNCTION Geometry::PostRead{{{*/ 498 498 void Geometry::PostRead(){ 499 499 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, MeshGeom.cpp/AfterRead)*/ … … 817 817 818 818 } 819 /*}}} 1*/820 /*FUNCTION Geometry::ProjectOnCurve {{{ 1*/819 /*}}}*/ 820 /*FUNCTION Geometry::ProjectOnCurve {{{*/ 821 821 GeomEdge* Geometry::ProjectOnCurve(const Edge &e,double s,BamgVertex &V,VertexOnGeom &GV) const { 822 822 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, MeshGeom.cpp/ProjectOnCurve)*/ … … 951 951 return on; 952 952 } 953 /*}}} 1*/954 /*FUNCTION Geometry::R2ToI2{{{ 1*/953 /*}}}*/ 954 /*FUNCTION Geometry::R2ToI2{{{*/ 955 955 I2 Geometry::R2ToI2(const R2 & P) const { 956 956 /*coefIcoor is the coefficient used for integer coordinates: … … 965 965 return I2( (Icoor1) (coefIcoor*(P.x-pmin.x)) ,(Icoor1) (coefIcoor*(P.y-pmin.y)) ); 966 966 }/*}}}*/ 967 /*FUNCTION Geometry::UnMarkEdges{{{ 1*/967 /*FUNCTION Geometry::UnMarkEdges{{{*/ 968 968 void Geometry::UnMarkEdges() { 969 969 for (int i=0;i<nbe;i++) edges[i].SetUnMark(); -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/ListofIntersectionTriangles.cpp ¶
r9306 r12365 9 9 10 10 /*Constructors Destructors*/ 11 /*FUNCTION ListofIntersectionTriangles::ListofIntersectionTriangles{{{ 1*/11 /*FUNCTION ListofIntersectionTriangles::ListofIntersectionTriangles{{{*/ 12 12 ListofIntersectionTriangles::ListofIntersectionTriangles(int n,int m) 13 13 : MaxSize(n), Size(0), len(-1),state(-1),lIntTria(new IntersectionTriangles[n]) , … … 15 15 } 16 16 /*}}}*/ 17 /*FUNCTION ListofIntersectionTriangles::~ListofIntersectionTriangles{{{ 1*/17 /*FUNCTION ListofIntersectionTriangles::~ListofIntersectionTriangles{{{*/ 18 18 ListofIntersectionTriangles::~ListofIntersectionTriangles(){ 19 19 if (lIntTria) delete [] lIntTria,lIntTria=0; … … 23 23 24 24 /*Methods*/ 25 /*FUNCTION ListofIntersectionTriangles::Init{{{ 1*/25 /*FUNCTION ListofIntersectionTriangles::Init{{{*/ 26 26 void ListofIntersectionTriangles::Init(void){ 27 27 state=0; … … 30 30 } 31 31 /*}}}*/ 32 /*FUNCTION ListofIntersectionTriangles::Length{{{ 1*/32 /*FUNCTION ListofIntersectionTriangles::Length{{{*/ 33 33 double ListofIntersectionTriangles::Length(){ 34 34 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/Length)*/ … … 77 77 return s; 78 78 } 79 /*}}} 1*/80 /*FUNCTION ListofIntersectionTriangles::NewItem(Triangle * tt,double d0,double d1,double d2) {{{ 1*/79 /*}}}*/ 80 /*FUNCTION ListofIntersectionTriangles::NewItem(Triangle * tt,double d0,double d1,double d2) {{{*/ 81 81 int ListofIntersectionTriangles::NewItem(Triangle * tt,double d0,double d1,double d2) { 82 82 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/NewItem)*/ … … 105 105 return n; 106 106 } 107 /*}}} 1*/108 /*FUNCTION ListofIntersectionTriangles::NewItem(R2 A,const Metric & mm){{{ 1*/107 /*}}}*/ 108 /*FUNCTION ListofIntersectionTriangles::NewItem(R2 A,const Metric & mm){{{*/ 109 109 int ListofIntersectionTriangles::NewItem(R2 A,const Metric & mm) { 110 110 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/NewItem)*/ … … 121 121 return n; 122 122 } 123 /*}}} 1*/124 /*FUNCTION ListofIntersectionTriangles::NewPoints{{{ 1*/123 /*}}}*/ 124 /*FUNCTION ListofIntersectionTriangles::NewPoints{{{*/ 125 125 long ListofIntersectionTriangles::NewPoints(BamgVertex* vertices,long &nbv,long maxnbv){ 126 126 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/NewPoints)*/ … … 178 178 return nbv-nbvold; 179 179 } 180 /*}}} 1*/181 /*FUNCTION ListofIntersectionTriangles::NewSubSeg{{{ 1*/180 /*}}}*/ 181 /*FUNCTION ListofIntersectionTriangles::NewSubSeg{{{*/ 182 182 void ListofIntersectionTriangles::NewSubSeg(GeomEdge *e,double s0,double s1){ 183 183 long int verbosity=0; … … 201 201 } 202 202 /*}}}*/ 203 /*FUNCTION ListofIntersectionTriangles::ReShape{{{ 1*/203 /*FUNCTION ListofIntersectionTriangles::ReShape{{{*/ 204 204 void ListofIntersectionTriangles::ReShape(){ 205 205 … … 217 217 } 218 218 /*}}}*/ 219 /*FUNCTION ListofIntersectionTriangles::SplitEdge{{{ 1*/219 /*FUNCTION ListofIntersectionTriangles::SplitEdge{{{*/ 220 220 void ListofIntersectionTriangles::SplitEdge(const Mesh & Bh, const R2 &A,const R2 &B,int nbegin) { 221 221 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/ListofIntersectionTriangles)*/ … … 421 421 } // for(;;) 422 422 } 423 /*}}} 1*/423 /*}}}*/ 424 424 425 425 } -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/Mesh.cpp ¶
r12218 r12365 11 11 12 12 /*Constructors/Destructors*/ 13 /*FUNCTION Mesh::Mesh(BamgGeom* bamggeom,BamgMesh* bamgmesh, BamgOpts* bamgopts){{{ 1*/13 /*FUNCTION Mesh::Mesh(BamgGeom* bamggeom,BamgMesh* bamgmesh, BamgOpts* bamgopts){{{*/ 14 14 Mesh::Mesh(BamgGeom* bamggeom,BamgMesh* bamgmesh, BamgOpts* bamgopts):Gh(*(new Geometry())),BTh(*this){ 15 15 … … 40 40 ReconstructExistingMesh(); 41 41 } 42 /*}}} 1*/43 /*FUNCTION Mesh::Mesh(double* index,double* x,double* y,int nods,int nels){{{ 1*/42 /*}}}*/ 43 /*FUNCTION Mesh::Mesh(double* index,double* x,double* y,int nods,int nels){{{*/ 44 44 Mesh::Mesh(double* index,double* x,double* y,int nods,int nels):Gh(*(new Geometry())),BTh(*this){ 45 45 … … 49 49 ReconstructExistingMesh(); 50 50 } 51 /*}}} 1*/52 /*FUNCTION Mesh::Mesh(double* x,double* y,int nods){{{ 1*/51 /*}}}*/ 52 /*FUNCTION Mesh::Mesh(double* x,double* y,int nods){{{*/ 53 53 Mesh::Mesh(double* x,double* y,int nods):Gh(*(new Geometry())),BTh(*this){ 54 54 Triangulate(x,y,nods); 55 55 } 56 /*}}} 1*/57 /*FUNCTION Mesh::Mesh(const Mesh & Tho,const int *flag ,const int *bb){{{ 1*/56 /*}}}*/ 57 /*FUNCTION Mesh::Mesh(const Mesh & Tho,const int *flag ,const int *bb){{{*/ 58 58 Mesh::Mesh(const Mesh & Tho,const int *flag ,const int *bb,BamgOpts* bamgopts) : Gh(*(new Geometry())), BTh(*this) { 59 59 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/Triangles)*/ … … 160 160 161 161 } 162 /*}}} 1*/163 /*FUNCTION Mesh::Mesh(Mesh & Th,Geometry * pGh,Mesh * pBth,long maxnbv_in) COPY{{{ 1*/162 /*}}}*/ 163 /*FUNCTION Mesh::Mesh(Mesh & Th,Geometry * pGh,Mesh * pBth,long maxnbv_in) COPY{{{*/ 164 164 Mesh::Mesh(Mesh & Th,Geometry * pGh,Mesh * pBth,long maxnbv_in) 165 165 : Gh(*(pGh?pGh:&Th.Gh)), BTh(*(pBth?pBth:this)) { … … 224 224 225 225 } 226 /*}}} 1*/227 /*FUNCTION Mesh::Mesh(long maxnbv,Mesh & BT,BamgOpts* bamgopts,int keepBackVertices){{{ 1*/226 /*}}}*/ 227 /*FUNCTION Mesh::Mesh(long maxnbv,Mesh & BT,BamgOpts* bamgopts,int keepBackVertices){{{*/ 228 228 Mesh::Mesh(long imaxnbv,Mesh & BT,BamgOpts* bamgopts,int keepBackVertices) :Gh(BT.Gh),BTh(BT) { 229 229 this->Init(imaxnbv); 230 230 TriangulateFromGeom1(bamgopts,keepBackVertices); 231 231 } 232 /*}}} 1*/233 /*FUNCTION Mesh::Mesh(long maxnbv,Geometry & G,BamgOpts* bamgopts){{{ 1*/232 /*}}}*/ 233 /*FUNCTION Mesh::Mesh(long maxnbv,Geometry & G,BamgOpts* bamgopts){{{*/ 234 234 Mesh::Mesh(long imaxnbv,Geometry & G,BamgOpts* bamgopts):Gh(G),BTh(*this){ 235 235 Init(imaxnbv); 236 236 TriangulateFromGeom0(bamgopts); 237 237 } 238 /*}}} 1*/239 /*FUNCTION Mesh::~Mesh(){{{ 1*/238 /*}}}*/ 239 /*FUNCTION Mesh::~Mesh(){{{*/ 240 240 Mesh::~Mesh() { 241 241 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/Triangles)*/ … … 262 262 Init(0); // set all to zero 263 263 } 264 /*}}} 1*/264 /*}}}*/ 265 265 266 266 /*IO*/ 267 /*FUNCTION Mesh::ReadMesh(double* index,double* x,double* y,int nods,int nels){{{ 1*/267 /*FUNCTION Mesh::ReadMesh(double* index,double* x,double* y,int nods,int nels){{{*/ 268 268 void Mesh::ReadMesh(double* index,double* x,double* y,int nods,int nels){ 269 269 … … 328 328 xfree((void**)&nodeflags); 329 329 } 330 /*}}} 1*/331 /*FUNCTION Mesh::ReadMesh(BamgMesh* bamgmesh, BamgOpts* bamgopts){{{ 1*/330 /*}}}*/ 331 /*FUNCTION Mesh::ReadMesh(BamgMesh* bamgmesh, BamgOpts* bamgopts){{{*/ 332 332 void Mesh::ReadMesh(BamgMesh* bamgmesh, BamgOpts* bamgopts){ 333 333 … … 529 529 530 530 } 531 /*}}} 1*/532 /*FUNCTION Mesh::WriteMesh {{{ 1*/531 /*}}}*/ 532 /*FUNCTION Mesh::WriteMesh {{{*/ 533 533 void Mesh::WriteMesh(BamgMesh* bamgmesh,BamgOpts* bamgopts){ 534 534 … … 954 954 delete [] numt; 955 955 } 956 /*}}} 1*/957 /*FUNCTION Mesh::ReadMetric{{{ 1*/956 /*}}}*/ 957 /*FUNCTION Mesh::ReadMetric{{{*/ 958 958 void Mesh::ReadMetric(const BamgOpts* bamgopts) { 959 959 … … 992 992 } 993 993 } 994 /*}}} 1*/995 /*FUNCTION Mesh::WriteMetric{{{ 1*/994 /*}}}*/ 995 /*FUNCTION Mesh::WriteMetric{{{*/ 996 996 void Mesh::WriteMetric(BamgOpts* bamgopts) { 997 997 int i; … … 1004 1004 } 1005 1005 } 1006 /*}}} 1*/1007 /*FUNCTION Mesh::WriteIndex{{{ 1*/1006 /*}}}*/ 1007 /*FUNCTION Mesh::WriteIndex{{{*/ 1008 1008 void Mesh::WriteIndex(int** pindex,int* pnels){ 1009 1009 … … 1042 1042 *pnels=num; 1043 1043 } 1044 /*}}} 1*/1044 /*}}}*/ 1045 1045 1046 1046 /*Methods*/ 1047 /*FUNCTION Mesh::AddGeometryMetric{{{ 1*/1047 /*FUNCTION Mesh::AddGeometryMetric{{{*/ 1048 1048 void Mesh::AddGeometryMetric(BamgOpts* bamgopts){ 1049 1049 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/IntersectGeomMetric)*/ … … 1099 1099 // the problem is for the vertex on vertex 1100 1100 } 1101 /*}}} 1*/1102 /*FUNCTION Mesh::AddMetric{{{ 1*/1101 /*}}}*/ 1102 /*FUNCTION Mesh::AddMetric{{{*/ 1103 1103 void Mesh::AddMetric(BamgOpts* bamgopts){ 1104 1104 // Hessiantype = 0 => H is computed using double P2 projection … … 1118 1118 } 1119 1119 } 1120 /*}}} 1*/1121 /*FUNCTION Mesh::AddVertex{{{ 1*/1120 /*}}}*/ 1121 /*FUNCTION Mesh::AddVertex{{{*/ 1122 1122 void Mesh::AddVertex( BamgVertex &s,Triangle* t, Icoor2* det3) { 1123 1123 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/Add)*/ … … 1255 1255 } 1256 1256 } 1257 /*}}} 1*/1258 /*FUNCTION Mesh::BoundAnisotropy{{{ 1*/1257 /*}}}*/ 1258 /*FUNCTION Mesh::BoundAnisotropy{{{*/ 1259 1259 void Mesh::BoundAnisotropy(double anisomax,double hminaniso) { 1260 1260 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/BoundAnisotropy)*/ … … 1295 1295 } 1296 1296 } 1297 /*}}} 1*/1298 /*FUNCTION Mesh::BuildGeometryFromMesh{{{ 1*/1297 /*}}}*/ 1298 /*FUNCTION Mesh::BuildGeometryFromMesh{{{*/ 1299 1299 void Mesh::BuildGeometryFromMesh(BamgOpts* bamgopts){ 1300 1300 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, MeshGeom.cpp/ConsGeometry)*/ … … 1748 1748 1749 1749 } 1750 /*}}} 1*/1751 /*FUNCTION Mesh::BuildMetric0 (double P2 projection){{{ 1*/1750 /*}}}*/ 1751 /*FUNCTION Mesh::BuildMetric0 (double P2 projection){{{*/ 1752 1752 void Mesh::BuildMetric0(BamgOpts* bamgopts){ 1753 1753 … … 1953 1953 delete [] dydy_vertex; 1954 1954 } 1955 /*}}} 1*/1956 /*FUNCTION Mesh::BuildMetric1 (Green formula){{{ 1*/1955 /*}}}*/ 1956 /*FUNCTION Mesh::BuildMetric1 (Green formula){{{*/ 1957 1957 void Mesh::BuildMetric1(BamgOpts* bamgopts){ 1958 1958 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/IntersectConsMetric)*/ … … 2244 2244 2245 2245 } 2246 /*}}} 1*/2247 /*FUNCTION Mesh::CrackMesh{{{ 1*/2246 /*}}}*/ 2247 /*FUNCTION Mesh::CrackMesh{{{*/ 2248 2248 void Mesh::CrackMesh(BamgOpts* bamgopts) { 2249 2249 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/CrackMesh)*/ … … 2392 2392 2393 2393 } 2394 /*}}} 1*/2395 /*FUNCTION Mesh::Echo{{{ 1*/2394 /*}}}*/ 2395 /*FUNCTION Mesh::Echo{{{*/ 2396 2396 void Mesh::Echo(void) { 2397 2397 … … 2416 2416 2417 2417 } 2418 /*}}} 1*/2419 /*FUNCTION Mesh::ForceBoundary{{{ 1*/2418 /*}}}*/ 2419 /*FUNCTION Mesh::ForceBoundary{{{*/ 2420 2420 void Mesh::ForceBoundary() { 2421 2421 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/ForceBoundary)*/ … … 2459 2459 if (verbose > 3) printf(" number of inforced edge = %i, number of swap= %i\n",nbfe,Nbswap); 2460 2460 } 2461 /*}}} 1*/2462 /*FUNCTION Mesh::FindSubDomain{{{ 1*/2461 /*}}}*/ 2462 /*FUNCTION Mesh::FindSubDomain{{{*/ 2463 2463 void Mesh::FindSubDomain(int OutSide) { 2464 2464 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/FindSubDomain)*/ … … 2707 2707 if(!triangles[it].link) nbtout++; 2708 2708 } 2709 /*}}} 1*/2710 /*FUNCTION Mesh::GetId(const Triangle & t) const{{{ 1*/2709 /*}}}*/ 2710 /*FUNCTION Mesh::GetId(const Triangle & t) const{{{*/ 2711 2711 long Mesh::GetId(const Triangle & t) const { 2712 2712 return &t - triangles; 2713 2713 } 2714 /*}}} 1*/2715 /*FUNCTION Mesh::GetId(const Triangle * t) const{{{ 1*/2714 /*}}}*/ 2715 /*FUNCTION Mesh::GetId(const Triangle * t) const{{{*/ 2716 2716 long Mesh::GetId(const Triangle * t) const { 2717 2717 return t - triangles; 2718 2718 } 2719 /*}}} 1*/2720 /*FUNCTION Mesh::GetId(const BamgVertex & t) const{{{ 1*/2719 /*}}}*/ 2720 /*FUNCTION Mesh::GetId(const BamgVertex & t) const{{{*/ 2721 2721 long Mesh::GetId(const BamgVertex & t) const { 2722 2722 return &t - vertices; 2723 2723 } 2724 /*}}} 1*/2725 /*FUNCTION Mesh::GetId(const BamgVertex * t) const{{{ 1*/2724 /*}}}*/ 2725 /*FUNCTION Mesh::GetId(const BamgVertex * t) const{{{*/ 2726 2726 long Mesh::GetId(const BamgVertex * t) const { 2727 2727 return t - vertices; 2728 2728 } 2729 /*}}} 1*/2730 /*FUNCTION Mesh::GetId(const Edge & t) const{{{ 1*/2729 /*}}}*/ 2730 /*FUNCTION Mesh::GetId(const Edge & t) const{{{*/ 2731 2731 long Mesh::GetId(const Edge & t) const { 2732 2732 return &t - edges; 2733 2733 } 2734 /*}}} 1*/2735 /*FUNCTION Mesh::GetId(const Edge * t) const{{{ 1*/2734 /*}}}*/ 2735 /*FUNCTION Mesh::GetId(const Edge * t) const{{{*/ 2736 2736 long Mesh::GetId(const Edge * t) const { 2737 2737 return t - edges; 2738 2738 } 2739 /*}}} 1*/2740 /*FUNCTION Mesh::Init{{{ 1*/2739 /*}}}*/ 2740 /*FUNCTION Mesh::Init{{{*/ 2741 2741 void Mesh::Init(long maxnbv_in) { 2742 2742 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/PreInit)*/ … … 2786 2786 } 2787 2787 } 2788 /*}}} 1*/2789 /*FUNCTION Mesh::Insert{{{ 1*/2788 /*}}}*/ 2789 /*FUNCTION Mesh::Insert{{{*/ 2790 2790 void Mesh::Insert() { 2791 2791 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/Insert)*/ … … 2938 2938 #endif 2939 2939 } 2940 /*}}} 1*/2941 /*FUNCTION Mesh::InsertNewPoints{{{ 1*/2940 /*}}}*/ 2941 /*FUNCTION Mesh::InsertNewPoints{{{*/ 2942 2942 long Mesh::InsertNewPoints(long nbvold,long & NbTSwap) { 2943 2943 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/InsertNewPoints)*/ … … 3015 3015 return nbv-nbvold; 3016 3016 } 3017 /*}}} 1*/3018 /*FUNCTION Mesh::isCracked{{{ 1*/3017 /*}}}*/ 3018 /*FUNCTION Mesh::isCracked{{{*/ 3019 3019 int Mesh::isCracked() const { 3020 3020 return NbCrackedVertices != 0; 3021 3021 } 3022 /*}}} 1*/3023 /*FUNCTION Mesh::MakeGeomEdgeToEdge{{{ 1*/3022 /*}}}*/ 3023 /*FUNCTION Mesh::MakeGeomEdgeToEdge{{{*/ 3024 3024 Edge** Mesh::MakeGeomEdgeToEdge() { 3025 3025 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/MakeGeomEdgeToEdge)*/ … … 3063 3063 return e; 3064 3064 } 3065 /*}}} 1*/3066 /*FUNCTION Mesh::MakeQuadrangles{{{ 1*/3065 /*}}}*/ 3066 /*FUNCTION Mesh::MakeQuadrangles{{{*/ 3067 3067 void Mesh::MakeQuadrangles(double costheta){ 3068 3068 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/MakeQuadrangles)*/ … … 3106 3106 delete [] qq; 3107 3107 } 3108 /*}}} 1*/3109 /*FUNCTION Mesh::MakeBamgQuadtree{{{ 1*/3108 /*}}}*/ 3109 /*FUNCTION Mesh::MakeBamgQuadtree{{{*/ 3110 3110 void Mesh::MakeBamgQuadtree() { 3111 3111 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/MakeBamgQuadtree)*/ … … 3115 3115 3116 3116 } 3117 /*}}} 1*/3118 /*FUNCTION Mesh::MaxinalHmax{{{ 1*/3117 /*}}}*/ 3118 /*FUNCTION Mesh::MaxinalHmax{{{*/ 3119 3119 double Mesh::MaximalHmax() { 3120 3120 return Max(pmax.x-pmin.x,pmax.y-pmin.y); 3121 3121 } 3122 /*}}} 1*/3123 /*FUNCTION Mesh::MaxSubDivision{{{ 1*/3122 /*}}}*/ 3123 /*FUNCTION Mesh::MaxSubDivision{{{*/ 3124 3124 void Mesh::MaxSubDivision(double maxsubdiv) { 3125 3125 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/MaxSubDivision)*/ … … 3174 3174 } 3175 3175 } 3176 /*}}} 1*/3177 /*FUNCTION Mesh::MetricAt{{{ 1*/3176 /*}}}*/ 3177 /*FUNCTION Mesh::MetricAt{{{*/ 3178 3178 Metric Mesh::MetricAt(const R2 & A) const { 3179 3179 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/MetricAt)*/ … … 3195 3195 } 3196 3196 } 3197 /*}}} 1*/3198 /*FUNCTION Mesh::MininalHmin{{{ 1*/3197 /*}}}*/ 3198 /*FUNCTION Mesh::MininalHmin{{{*/ 3199 3199 double Mesh::MinimalHmin() { 3200 3200 return 2.0/coefIcoor; 3201 3201 } 3202 /*}}} 1*/3203 /*FUNCTION Mesh::NearestVertex{{{ 1*/3202 /*}}}*/ 3203 /*FUNCTION Mesh::NearestVertex{{{*/ 3204 3204 BamgVertex* Mesh::NearestVertex(Icoor1 i,Icoor1 j) { 3205 3205 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/NearestVertex)*/ 3206 3206 return quadtree->NearestVertex(i,j); 3207 3207 } 3208 /*}}} 1*/3209 /*FUNCTION Mesh::NewPoints{{{ 1*/3208 /*}}}*/ 3209 /*FUNCTION Mesh::NewPoints{{{*/ 3210 3210 void Mesh::NewPoints(Mesh & Bh,BamgOpts* bamgopts,int KeepVertices){ 3211 3211 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/NewPoints)*/ … … 3326 3326 NbTSwap += NbSwapf ; 3327 3327 } 3328 /*}}} 1*/3329 /*FUNCTION Mesh::ProjectOnCurve{{{ 1*/3328 /*}}}*/ 3329 /*FUNCTION Mesh::ProjectOnCurve{{{*/ 3330 3330 GeomEdge* Mesh::ProjectOnCurve( Edge & BhAB, BamgVertex & vA, BamgVertex & vB, 3331 3331 double theta,BamgVertex & R,VertexOnEdge & BR,VertexOnGeom & GR) { … … 3455 3455 return 0; // just for the compiler 3456 3456 } 3457 /*}}} 1*/3458 /*FUNCTION Mesh::ReconstructExistingMesh{{{ 1*/3457 /*}}}*/ 3458 /*FUNCTION Mesh::ReconstructExistingMesh{{{*/ 3459 3459 void Mesh::ReconstructExistingMesh(){ 3460 3460 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/FillHoleInMesh)*/ … … 3762 3762 } 3763 3763 } 3764 /*}}} 1*/3765 /*FUNCTION Mesh::TrianglesRenumberBySubDomain{{{ 1*/3764 /*}}}*/ 3765 /*FUNCTION Mesh::TrianglesRenumberBySubDomain{{{*/ 3766 3766 void Mesh::TrianglesRenumberBySubDomain(bool justcompress){ 3767 3767 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/ReNumberingTheTriangleBySubDomain)*/ … … 3831 3831 3832 3832 } 3833 /*}}} 1*/3834 /*FUNCTION Mesh::VerticesRenumber{{{ 1*/3833 /*}}}*/ 3834 /*FUNCTION Mesh::VerticesRenumber{{{*/ 3835 3835 void Mesh::VerticesRenumber(long * renu) { 3836 3836 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/ReNumberingVertex)*/ … … 3905 3905 for ( it=0;it<nbv;it++) renu[i]= -renu[i]-1; 3906 3906 } 3907 /*}}} 1*/3908 /*FUNCTION Mesh::SetIntCoor{{{ 1*/3907 /*}}}*/ 3908 /*FUNCTION Mesh::SetIntCoor{{{*/ 3909 3909 void Mesh::SetIntCoor(const char * strfrom) { 3910 3910 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/SetIntCoor)*/ … … 3967 3967 if (number_of_errors) _error_("Fatal error: some triangles have negative areas, see above"); 3968 3968 } 3969 /*}}} 1*/3970 /*FUNCTION Mesh::ShowRegulaty{{{ 1*/3969 /*}}}*/ 3970 /*FUNCTION Mesh::ShowRegulaty{{{*/ 3971 3971 void Mesh::ShowRegulaty() const { 3972 3972 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr>*/ … … 4031 4031 printf(" anisomax = %g, beta max = %g, min = %g\n",pow(alpha2,0.5),1./pow(beta/aireKh,0.5), 1./pow(beta0/aireKh,0.5)); 4032 4032 } 4033 /*}}} 1*/4034 /*FUNCTION Mesh::ShowHistogram{{{ 1*/4033 /*}}}*/ 4034 /*FUNCTION Mesh::ShowHistogram{{{*/ 4035 4035 void Mesh::ShowHistogram() const { 4036 4036 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/ShowHistogram)*/ … … 4076 4076 printf(" --------------------+-------------+-------------\n"); 4077 4077 } 4078 /*}}} 1*/4079 /*FUNCTION Mesh::SmoothingVertex{{{ 1*/4078 /*}}}*/ 4079 /*FUNCTION Mesh::SmoothingVertex{{{*/ 4080 4080 void Mesh::SmoothingVertex(int nbiter,double omega ) { 4081 4081 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/SmoothingVertex)*/ … … 4118 4118 if (quadtree) quadtree= new BamgQuadtree(this); 4119 4119 } 4120 /*}}} 1*/4121 /*FUNCTION Mesh::SmoothMetric{{{ 1*/4120 /*}}}*/ 4121 /*FUNCTION Mesh::SmoothMetric{{{*/ 4122 4122 void Mesh::SmoothMetric(double raisonmax) { 4123 4123 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/SmoothMetric)*/ … … 4196 4196 delete [] first_np_or_next_t1; 4197 4197 } 4198 /*}}} 1*/4199 /*FUNCTION Mesh::SplitElement{{{ 1*/4198 /*}}}*/ 4199 /*FUNCTION Mesh::SplitElement{{{*/ 4200 4200 int Mesh::SplitElement(int choice){ 4201 4201 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, MeshQuad.cpp/SplitElement)*/ … … 4706 4706 return ret; // ok 4707 4707 } 4708 /*}}} 1*/4709 /*FUNCTION Mesh::SplitInternalEdgeWithBorderVertices{{{ 1*/4708 /*}}}*/ 4709 /*FUNCTION Mesh::SplitInternalEdgeWithBorderVertices{{{*/ 4710 4710 long Mesh::SplitInternalEdgeWithBorderVertices(){ 4711 4711 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/SplitInternalEdgeWithBorderVertices)*/ … … 4777 4777 return NbSplitEdge; 4778 4778 } 4779 /*}}} 1*/4780 /*FUNCTION Mesh::ToI2{{{ 1*/4779 /*}}}*/ 4780 /*FUNCTION Mesh::ToI2{{{*/ 4781 4781 I2 Mesh::R2ToI2(const R2 & P) const { 4782 4782 return I2( (Icoor1) (coefIcoor*(P.x-pmin.x)),(Icoor1) (coefIcoor*(P.y-pmin.y)) ); 4783 4783 } 4784 /*}}} 1*/4785 /*FUNCTION Mesh::ToR2{{{ 1*/4784 /*}}}*/ 4785 /*FUNCTION Mesh::ToR2{{{*/ 4786 4786 R2 Mesh::I2ToR2(const I2 & P) const { 4787 4787 return R2( (double) P.x/coefIcoor+pmin.x, (double) P.y/coefIcoor+pmin.y); 4788 4788 } 4789 /*}}} 1*/4790 /*FUNCTION Mesh::TriangleFindFromCoord{{{ 1*/4789 /*}}}*/ 4790 /*FUNCTION Mesh::TriangleFindFromCoord{{{*/ 4791 4791 Triangle * Mesh::TriangleFindFromCoord(const I2 & B,Icoor2 det3[3], Triangle *tstart) const { 4792 4792 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/FindTriangleContening)*/ … … 4879 4879 return t; 4880 4880 } 4881 /*}}} 1*/4882 /*FUNCTION Mesh::TriangleIntNumbering{{{ 1*/4881 /*}}}*/ 4882 /*FUNCTION Mesh::TriangleIntNumbering{{{*/ 4883 4883 void Mesh::TriangleIntNumbering(long* renumbering){ 4884 4884 … … 4890 4890 return; 4891 4891 } 4892 /*}}} 1*/4893 /*FUNCTION Mesh::TriangleReferenceList{{{ 1*/4892 /*}}}*/ 4893 /*FUNCTION Mesh::TriangleReferenceList{{{*/ 4894 4894 long Mesh::TriangleReferenceList(long* reft) const { 4895 4895 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/ConsRefTriangle)*/ … … 4930 4930 return k; 4931 4931 } 4932 /*}}} 1*/4933 /*FUNCTION Mesh::Triangulate{{{ 1*/4932 /*}}}*/ 4933 /*FUNCTION Mesh::Triangulate{{{*/ 4934 4934 void Mesh::Triangulate(double* x,double* y,int nods){ 4935 4935 … … 4957 4957 Insert(); 4958 4958 } 4959 /*}}} 1*/4960 /*FUNCTION Mesh::TriangulateFromGeom0{{{ 1*/4959 /*}}}*/ 4960 /*FUNCTION Mesh::TriangulateFromGeom0{{{*/ 4961 4961 void Mesh::TriangulateFromGeom0(BamgOpts* bamgopts){ 4962 4962 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/GeomToTriangles0)*/ … … 5272 5272 if (verbose>4) printf(" -- current number of vertices = %i\n",nbv); 5273 5273 } 5274 /*}}} 1*/5275 /*FUNCTION Mesh::TriangulateFromGeom1{{{ 1*/5274 /*}}}*/ 5275 /*FUNCTION Mesh::TriangulateFromGeom1{{{*/ 5276 5276 void Mesh::TriangulateFromGeom1(BamgOpts* bamgopts,int KeepVertices){ 5277 5277 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/GeomToTriangles1)*/ … … 5602 5602 if (verbose>4) printf(" -- current number of vertices = %i\n",nbv); 5603 5603 } 5604 /*}}} 1*/5604 /*}}}*/ 5605 5605 5606 5606 /*Intermediary*/ 5607 /*FUNCTION CloseBoundaryEdge{{{ 1*/5607 /*FUNCTION CloseBoundaryEdge{{{*/ 5608 5608 AdjacentTriangle CloseBoundaryEdge(I2 A,Triangle *t, double &a,double &b) { 5609 5609 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/CloseBoundaryEdge)*/ … … 5644 5644 } 5645 5645 } 5646 /*}}} 1*/5647 /*FUNCTION CloseBoundaryEdgeV2{{{ 1*/5646 /*}}}*/ 5647 /*FUNCTION CloseBoundaryEdgeV2{{{*/ 5648 5648 AdjacentTriangle CloseBoundaryEdgeV2(I2 C,Triangle *t, double &a,double &b) { 5649 5649 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/CloseBoundaryEdgeV2)*/ … … 5793 5793 return er; 5794 5794 } 5795 /*}}} 1*/5796 /*FUNCTION ForceEdge{{{ 1*/5795 /*}}}*/ 5796 /*FUNCTION ForceEdge{{{*/ 5797 5797 int ForceEdge(BamgVertex &a, BamgVertex & b,AdjacentTriangle & taret) { 5798 5798 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/ForceEdge)*/ … … 5869 5869 return NbSwap; 5870 5870 } 5871 /*}}} 1*/5872 /*FUNCTION swap{{{ 1*/5871 /*}}}*/ 5872 /*FUNCTION swap{{{*/ 5873 5873 void swap(Triangle *t1,short a1, Triangle *t2,short a2, BamgVertex *s1,BamgVertex *s2,Icoor2 det1,Icoor2 det2){ 5874 5874 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/swap)*/ … … 5914 5914 t2->SetSingleVertexToTriangleConnectivity(); 5915 5915 } // end swap 5916 /*}}} 1*/5917 /*FUNCTION SwapForForcingEdge{{{ 1*/5916 /*}}}*/ 5917 /*FUNCTION SwapForForcingEdge{{{*/ 5918 5918 int SwapForForcingEdge(BamgVertex * & pva ,BamgVertex * & pvb ,AdjacentTriangle & tt1,Icoor2 & dets1, Icoor2 & detsa,Icoor2 & detsb, int & NbSwap) { 5919 5919 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/SwapForForcingEdge)*/ … … 6002 6002 return ret; 6003 6003 } 6004 /*}}} 1*/6004 /*}}}*/ 6005 6005 6006 6006 } -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/Metric.cpp ¶
r9371 r12365 14 14 15 15 /*Constructor/Destructor*/ 16 /*FUNCTION Metric::Metric(){{{1*/ 17 /*FUNCTION Metric::Metric(double a){{{1*/ 16 /*FUNCTION Metric::Metric(double a){{{*/ 18 17 Metric::Metric(double a): a11(1/(a*a)),a21(0),a22(1/(a*a)){ 19 18 20 19 }/*}}}*/ 21 /*FUNCTION Metric::Metric(double a,double b,double c){{{ 1*/20 /*FUNCTION Metric::Metric(double a,double b,double c){{{*/ 22 21 Metric::Metric(double a,double b,double c) :a11(a),a21(b),a22(c){ 23 22 24 23 }/*}}}*/ 25 /*FUNCTION Metric::Metric(const double a[3],const Metric& m0, const Metric& m1,const Metric& m2 ){{{ 1*/24 /*FUNCTION Metric::Metric(const double a[3],const Metric& m0, const Metric& m1,const Metric& m2 ){{{*/ 26 25 Metric::Metric(const double a[3],const Metric& m0, const Metric& m1,const Metric& m2 ){ 27 26 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/Metric)*/ … … 43 42 *this = vab; 44 43 } 45 /*}}} 1*/46 /*FUNCTION Metric::Metric(double a,const Metric& ma, double b,const Metric& mb){{{ 1*/44 /*}}}*/ 45 /*FUNCTION Metric::Metric(double a,const Metric& ma, double b,const Metric& mb){{{*/ 47 46 Metric::Metric(double a,const Metric& ma, double b,const Metric& mb) { 48 47 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/EigenMetric)*/ … … 63 62 *this=vab; 64 63 } 65 /*}}} 1*/64 /*}}}*/ 66 65 67 66 /*Methods*/ 68 /*FUNCTION Metric::det{{{ 1*/67 /*FUNCTION Metric::det{{{*/ 69 68 double Metric::det() const { 70 69 return a11*a22-a21*a21; 71 70 } /*}}}*/ 72 /*FUNCTION Metric::Echo {{{ 1*/71 /*FUNCTION Metric::Echo {{{*/ 73 72 void Metric::Echo(void){ 74 73 … … 79 78 } 80 79 /*}}}*/ 81 /*FUNCTION Metric::IntersectWith{{{ 1*/80 /*FUNCTION Metric::IntersectWith{{{*/ 82 81 int Metric::IntersectWith(const Metric& M2) { 83 82 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/IntersectWith)*/ … … 131 130 return change; 132 131 } 133 /*}}} 1*/134 /*FUNCTION Metric::mul{{{ 1*/132 /*}}}*/ 133 /*FUNCTION Metric::mul{{{*/ 135 134 R2 Metric::mul(const R2 x)const { 136 135 return R2(a11*x.x+a21*x.y,a21*x.x+a22*x.y); … … 138 137 139 138 /*Intermediary*/ 140 /*FUNCTION LengthInterpole{{{ 1*/139 /*FUNCTION LengthInterpole{{{*/ 141 140 double LengthInterpole(const Metric& Ma,const Metric& Mb, R2 AB) { 142 141 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/LengthInterpole)*/ … … 205 204 return l; 206 205 } 207 /*}}} 1*/208 /*FUNCTION SimultaneousMatrixReduction{{{ 1*/206 /*}}}*/ 207 /*FUNCTION SimultaneousMatrixReduction{{{*/ 209 208 void SimultaneousMatrixReduction( Metric M1, Metric M2, D2xD2 &V) { 210 209 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/ReductionSimultanee)*/ … … 308 307 } 309 308 } 310 /*}}} 1*/311 /*FUNCTION abscisseInterpole{{{ 1*/309 /*}}}*/ 310 /*FUNCTION abscisseInterpole{{{*/ 312 311 double abscisseInterpole(const Metric& Ma,const Metric& Mb, R2 AB,double s,int optim) { 313 312 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Metric.cpp/abscisseInterpole)*/ … … 350 349 return r ; 351 350 } 352 /*}}} 1*/351 /*}}}*/ 353 352 354 353 } -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/SetOfE4.cpp ¶
r6412 r12365 5 5 6 6 /*Constructor*/ 7 /*FUNCTION SetOfEdges4::SetOfEdges4(long mmx,long nnx){{{ 1*/7 /*FUNCTION SetOfEdges4::SetOfEdges4(long mmx,long nnx){{{*/ 8 8 SetOfEdges4::SetOfEdges4(long mmx,long nnx){ 9 9 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, SetOfEdges4.cpp/SetOfEdges4)*/ … … 23 23 while(i--) head[i]=-1; 24 24 } 25 /*}}} 1*/25 /*}}}*/ 26 26 27 27 /*Methods*/ 28 /*FUNCTION SetOfEdges4::add{{{ 1*/28 /*FUNCTION SetOfEdges4::add{{{*/ 29 29 long SetOfEdges4::add(long ii,long jj) { 30 30 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, SetOfEdges4.cpp/add)*/ … … 60 60 return NbOfEdges ++; 61 61 } 62 /*}}} 1*/63 /*FUNCTION SetOfEdges4::find {{{ 1*/62 /*}}}*/ 63 /*FUNCTION SetOfEdges4::find {{{*/ 64 64 long SetOfEdges4::find(long ii,long jj) { 65 65 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, SetOfEdges4.cpp/find)*/ … … 87 87 return -1; 88 88 } 89 /*}}} 1*/90 /*FUNCTION SetOfEdges4::i{{{ 1*/89 /*}}}*/ 90 /*FUNCTION SetOfEdges4::i{{{*/ 91 91 long SetOfEdges4::i(long k){ 92 92 return Edges[k].i; 93 93 } 94 /*}}} 1*/95 /*FUNCTION SetOfEdges4::j{{{ 1*/94 /*}}}*/ 95 /*FUNCTION SetOfEdges4::j{{{*/ 96 96 long SetOfEdges4::j(long k){ 97 97 return Edges[k].j; 98 98 } 99 /*}}} 1*/100 /*FUNCTION SetOfEdges4::nb{{{ 1*/99 /*}}}*/ 100 /*FUNCTION SetOfEdges4::nb{{{*/ 101 101 long SetOfEdges4::nb(){ 102 102 return NbOfEdges; 103 103 } 104 /*}}} 1*/105 /*FUNCTION SetOfEdges4::newarete{{{ 1*/104 /*}}}*/ 105 /*FUNCTION SetOfEdges4::newarete{{{*/ 106 106 long SetOfEdges4::newarete(long k){ 107 107 return NbOfEdges == k+1; 108 108 } 109 /*}}} 1*/110 /*FUNCTION SetOfEdges4::SortAndAdd{{{ 1*/109 /*}}}*/ 110 /*FUNCTION SetOfEdges4::SortAndAdd{{{*/ 111 111 long SetOfEdges4::SortAndAdd (long ii,long jj) { 112 112 return ii <=jj ? add (ii,jj) : add (jj,ii) ; 113 113 } 114 /*}}} 1*/115 /*FUNCTION SetOfEdges4::SortAndFind{{{ 1*/114 /*}}}*/ 115 /*FUNCTION SetOfEdges4::SortAndFind{{{*/ 116 116 long SetOfEdges4::SortAndFind (long ii,long jj) { 117 117 return ii <=jj ? find (ii,jj) : find (jj,ii) ; 118 118 } 119 /*}}} 1*/119 /*}}}*/ 120 120 } -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/SubDomain.cpp ¶
r6412 r12365 12 12 13 13 /*Methods*/ 14 /*FUNCTION SubDomain::Set {{{ 1*/14 /*FUNCTION SubDomain::Set {{{*/ 15 15 void SubDomain::Set(const Mesh & Th ,long i,Mesh & ThNew){ 16 16 *this = Th.subdomains[i]; -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/Triangle.cpp ¶
r11584 r12365 9 9 10 10 /*Constructors/Destructors*/ 11 /*FUNCTION Triangle(){{{ 1*/11 /*FUNCTION Triangle(){{{*/ 12 12 Triangle::Triangle(void){ 13 13 14 14 } 15 15 /*}}}*/ 16 /*FUNCTION Triangle(Mesh *Th,long i,long j,long k) {{{ 1*/16 /*FUNCTION Triangle(Mesh *Th,long i,long j,long k) {{{*/ 17 17 Triangle::Triangle(Mesh *Th,long i,long j,long k) { 18 18 BamgVertex *v=Th->vertices; … … 32 32 } 33 33 /*}}}*/ 34 /*FUNCTION Triangle(BamgVertex *v0,BamgVertex *v1,BamgVertex *v2) {{{ 1*/34 /*FUNCTION Triangle(BamgVertex *v0,BamgVertex *v1,BamgVertex *v2) {{{*/ 35 35 Triangle::Triangle(BamgVertex *v0,BamgVertex *v1,BamgVertex *v2){ 36 36 vertices[0]=v0; … … 47 47 48 48 /*Methods*/ 49 /*FUNCTION Triangle::Adj{{{ 1*/49 /*FUNCTION Triangle::Adj{{{*/ 50 50 AdjacentTriangle Triangle::Adj(int i) const { 51 51 return AdjacentTriangle(adj[i],AdjEdgeIndex[i]&3); 52 52 };/*}}}*/ 53 /*FUNCTION Triangle::Anisotropy{{{ 1*/53 /*FUNCTION Triangle::Anisotropy{{{*/ 54 54 double Triangle::Anisotropy() const{ 55 55 … … 80 80 return lmax/lmin; 81 81 };/*}}}*/ 82 /*FUNCTION Triangle::Length{{{ 1*/82 /*FUNCTION Triangle::Length{{{*/ 83 83 double Triangle::Length() const{ 84 84 … … 102 102 return l; 103 103 };/*}}}*/ 104 /*FUNCTION Triangle::Echo {{{ 1*/104 /*FUNCTION Triangle::Echo {{{*/ 105 105 void Triangle::Echo(void){ 106 106 … … 133 133 } 134 134 /*}}}*/ 135 /*FUNCTION Triangle::FindBoundaryEdge{{{ 1*/135 /*FUNCTION Triangle::FindBoundaryEdge{{{*/ 136 136 AdjacentTriangle Triangle::FindBoundaryEdge(int i) const{ 137 137 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/FindBoundaryEdge)*/ … … 179 179 return AdjacentTriangle(NULL,0); 180 180 } 181 /*}}} 1*/182 /*FUNCTION Triangle::GetAllflag{{{ 1*/181 /*}}}*/ 182 /*FUNCTION Triangle::GetAllflag{{{*/ 183 183 int Triangle::GetAllflag(int a){ 184 184 return AdjEdgeIndex[a] & 1020; 185 185 }/*}}}*/ 186 /*FUNCTION Triangle::Hidden{{{ 1*/186 /*FUNCTION Triangle::Hidden{{{*/ 187 187 int Triangle::Hidden(int a)const { 188 188 return AdjEdgeIndex[a]&16; 189 189 } /*}}}*/ 190 /*FUNCTION Triangle::Locked{{{ 1*/190 /*FUNCTION Triangle::Locked{{{*/ 191 191 int Triangle::Locked(int a)const { 192 192 return AdjEdgeIndex[a]&4; 193 193 } /*}}}*/ 194 /*FUNCTION Triangle::NuEdgeTriangleAdj{{{ 1*/194 /*FUNCTION Triangle::NuEdgeTriangleAdj{{{*/ 195 195 short Triangle::NuEdgeTriangleAdj(int i) const { 196 196 /*Number of the adjacent edge in adj tria (make sure it is between 0 and 2*/ 197 197 return AdjEdgeIndex[i&3]&3; 198 198 }/*}}}*/ 199 /*FUNCTION Triangle::Optim{{{ 1*/199 /*FUNCTION Triangle::Optim{{{*/ 200 200 long Triangle::Optim(short i,int koption) { 201 201 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/Optim)*/ … … 229 229 return NbSwap; 230 230 } 231 /*}}} 1*/232 /*FUNCTION Triangle::Quadrangle {{{ 1*/231 /*}}}*/ 232 /*FUNCTION Triangle::Quadrangle {{{*/ 233 233 Triangle* Triangle::Quadrangle(BamgVertex * & v0,BamgVertex * & v1,BamgVertex * & v2,BamgVertex * & v3) const{ 234 234 // return the other triangle of the quad if a quad or 0 if not a quat … … 251 251 } 252 252 /*}}}*/ 253 /*FUNCTION Triangle::QualityQuad {{{ 1*/253 /*FUNCTION Triangle::QualityQuad {{{*/ 254 254 double Triangle::QualityQuad(int a,int option) const{ 255 255 double q; … … 274 274 } 275 275 /*}}}*/ 276 /*FUNCTION Triangle::Renumbering(Triangle *tb,Triangle *te, long *renu){{{ 1*/276 /*FUNCTION Triangle::Renumbering(Triangle *tb,Triangle *te, long *renu){{{*/ 277 277 void Triangle::Renumbering(Triangle *tb,Triangle *te, long *renu){ 278 278 … … 282 282 if (adj[2] >=tb && adj[2] <te) adj[2] = tb + renu[adj[2]-tb]; 283 283 }/*}}}*/ 284 /*FUNCTION Triangle::Renumbering(BamgVertex *vb,BamgVertex *ve, long *renu){{{ 1*/284 /*FUNCTION Triangle::Renumbering(BamgVertex *vb,BamgVertex *ve, long *renu){{{*/ 285 285 void Triangle::Renumbering(BamgVertex *vb,BamgVertex *ve, long *renu){ 286 286 if (vertices[0] >=vb && vertices[0] <ve) vertices[0] = vb + renu[vertices[0]-vb]; … … 288 288 if (vertices[2] >=vb && vertices[2] <ve) vertices[2] = vb + renu[vertices[2]-vb]; 289 289 }/*}}}*/ 290 /*FUNCTION Triangle::Set {{{ 1*/290 /*FUNCTION Triangle::Set {{{*/ 291 291 void Triangle::Set(const Triangle & rec,const Mesh & Th ,Mesh & ThNew){ 292 292 *this = rec; … … 301 301 } 302 302 /*}}}*/ 303 /*FUNCTION Triangle::SetAdjAdj{{{ 1*/303 /*FUNCTION Triangle::SetAdjAdj{{{*/ 304 304 void Triangle::SetAdjAdj(short a){ 305 305 // Copy all the mark … … 313 313 } 314 314 }/*}}}*/ 315 /*FUNCTION Triangle::SetAdj2{{{ 1*/315 /*FUNCTION Triangle::SetAdj2{{{*/ 316 316 void Triangle::SetAdj2(short a,Triangle *t,short aat){ 317 317 /*For current triangle: … … 326 326 } 327 327 }/*}}}*/ 328 /*FUNCTION Triangle::SetAllFlag{{{ 1*/328 /*FUNCTION Triangle::SetAllFlag{{{*/ 329 329 void Triangle::SetAllFlag(int a,int f){ 330 330 AdjEdgeIndex[a] = (AdjEdgeIndex[a] &3) + (1020 & f); 331 331 }/*}}}*/ 332 /*FUNCTION Triangle::SetDet{{{ 1*/332 /*FUNCTION Triangle::SetDet{{{*/ 333 333 void Triangle::SetDet() { 334 334 if(vertices[0] && vertices[1] && vertices[2]) det = bamg::det(*vertices[0],*vertices[1],*vertices[2]); 335 335 else det = -1; 336 336 }/*}}}*/ 337 /*FUNCTION Triangle::SetHidden{{{ 1*/337 /*FUNCTION Triangle::SetHidden{{{*/ 338 338 void Triangle::SetHidden(int a){ 339 339 //Get Adjacent Triangle number a … … 344 344 AdjEdgeIndex[a] |= 16; 345 345 }/*}}}*/ 346 /*FUNCTION Triangle::SetLocked{{{ 1*/346 /*FUNCTION Triangle::SetLocked{{{*/ 347 347 void Triangle::SetLocked(int a){ 348 348 //mark the edge as on Boundary … … 351 351 AdjEdgeIndex[a] |= 4; 352 352 }/*}}}*/ 353 /*FUNCTION Triangle::SetMarkUnSwap{{{ 1*/353 /*FUNCTION Triangle::SetMarkUnSwap{{{*/ 354 354 void Triangle::SetMarkUnSwap(int a){ 355 355 register Triangle * t = adj[a]; … … 357 357 AdjEdgeIndex[a] |=8 ; 358 358 }/*}}}*/ 359 /*FUNCTION Triangle::SetSingleVertexToTriangleConnectivity{{{ 1*/359 /*FUNCTION Triangle::SetSingleVertexToTriangleConnectivity{{{*/ 360 360 void Triangle::SetSingleVertexToTriangleConnectivity() { 361 361 if (vertices[0]) (vertices[0]->t=this,vertices[0]->IndexInTriangle=0); … … 363 363 if (vertices[2]) (vertices[2]->t=this,vertices[2]->IndexInTriangle=2); 364 364 }/*}}}*/ 365 /*FUNCTION Triangle::SetUnMarkUnSwap{{{ 1*/365 /*FUNCTION Triangle::SetUnMarkUnSwap{{{*/ 366 366 void Triangle::SetUnMarkUnSwap(int a){ 367 367 register Triangle * t = adj[a]; … … 369 369 AdjEdgeIndex[a] &=55 ; 370 370 }/*}}}*/ 371 /*FUNCTION Triangle::swap{{{ 1*/371 /*FUNCTION Triangle::swap{{{*/ 372 372 int Triangle::swap(short a,int koption){ 373 373 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/swap)*/ … … 483 483 return OnSwap; 484 484 } 485 /*}}} 1*/486 /*FUNCTION Triangle::TriangleAdj{{{ 1*/485 /*}}}*/ 486 /*FUNCTION Triangle::TriangleAdj{{{*/ 487 487 Triangle* Triangle::TriangleAdj(int i) const { 488 488 return adj[i&3]; -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/VertexOnEdge.cpp ¶
r9326 r12365 10 10 11 11 /*Methods*/ 12 /*FUNCTION VertexOnEdge::Set {{{ 1*/12 /*FUNCTION VertexOnEdge::Set {{{*/ 13 13 void VertexOnEdge::Set(const Mesh & Th ,long i,Mesh & ThNew){ 14 14 *this = Th.VertexOnBThEdge[i]; … … 16 16 } 17 17 /*}}}*/ 18 /*FUNCTION VertexOnEdge::SetOnBTh{{{ 1*/18 /*FUNCTION VertexOnEdge::SetOnBTh{{{*/ 19 19 void VertexOnEdge::SetOnBTh(){ 20 20 v->BackgroundEdgeHook=this; -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/VertexOnGeom.cpp ¶
r9399 r12365 11 11 12 12 /*Constructors/Destructors*/ 13 /*FUNCTION VertexOnGeom::VertexOnGeom(){{{ 1*/13 /*FUNCTION VertexOnGeom::VertexOnGeom(){{{*/ 14 14 VertexOnGeom::VertexOnGeom(){ 15 15 meshvertex=NULL; … … 18 18 } 19 19 /*}}}*/ 20 /*FUNCTION VertexOnGeom::VertexOnGeom(BamgVertex & m,GeomVertex &g){{{ 1*/20 /*FUNCTION VertexOnGeom::VertexOnGeom(BamgVertex & m,GeomVertex &g){{{*/ 21 21 VertexOnGeom::VertexOnGeom(BamgVertex & m,GeomVertex &g){ 22 22 meshvertex=&m; … … 25 25 } 26 26 /*}}}*/ 27 /*FUNCTION VertexOnGeom::VertexOnGeom(BamgVertex & m,GeomEdge &g,double s){{{ 1*/27 /*FUNCTION VertexOnGeom::VertexOnGeom(BamgVertex & m,GeomEdge &g,double s){{{*/ 28 28 VertexOnGeom::VertexOnGeom(BamgVertex & m,GeomEdge &g,double s){ 29 29 meshvertex=&m; … … 34 34 35 35 /*Methods*/ 36 /*FUNCTION VertexOnGeom::Set {{{ 1*/36 /*FUNCTION VertexOnGeom::Set {{{*/ 37 37 void VertexOnGeom::Set(const VertexOnGeom & rec,const Mesh & Th ,Mesh & ThNew){ 38 38 *this = rec; … … 46 46 } 47 47 /*}}}*/ 48 /*FUNCTION VertexOnGeom::OnGeomVertex{{{ 1*/48 /*FUNCTION VertexOnGeom::OnGeomVertex{{{*/ 49 49 int VertexOnGeom::OnGeomVertex()const{ 50 50 return this? curvilincoord <0 :0; 51 51 } 52 52 /*}}}*/ 53 /*FUNCTION VertexOnGeom::OnGeomEdge{{{ 1*/53 /*FUNCTION VertexOnGeom::OnGeomEdge{{{*/ 54 54 int VertexOnGeom::OnGeomEdge() const{ 55 55 return this? curvilincoord >=0 :0; 56 56 } 57 57 /*}}}*/ 58 /*FUNCTION VertexOnGeom::IsRequiredVertex{{{ 1*/58 /*FUNCTION VertexOnGeom::IsRequiredVertex{{{*/ 59 59 int VertexOnGeom::IsRequiredVertex() { 60 60 return this? ((curvilincoord<0 ? (gv?gv->Required():0):0 )) : 0; 61 61 } 62 62 /*}}}*/ 63 /*FUNCTION VertexOnGeom::SetOn{{{ 1*/63 /*FUNCTION VertexOnGeom::SetOn{{{*/ 64 64 void VertexOnGeom::SetOn(){ 65 65 meshvertex->GeomEdgeHook=this; -
TabularUnified issm/trunk-jpl/src/c/objects/Bamg/VertexOnVertex.cpp ¶
r9371 r12365 10 10 11 11 /*Constructors/Destructors*/ 12 /*FUNCTION VertexOnVertex::VertexOnVertex(){{{ 1*/12 /*FUNCTION VertexOnVertex::VertexOnVertex(){{{*/ 13 13 VertexOnVertex::VertexOnVertex() { 14 14 v=NULL; 15 15 bv=NULL; 16 16 };/*}}}*/ 17 /*FUNCTION VertexOnVertex::VertexOnVertex(BamgVertex * w,BamgVertex *bw){{{ 1*/17 /*FUNCTION VertexOnVertex::VertexOnVertex(BamgVertex * w,BamgVertex *bw){{{*/ 18 18 VertexOnVertex::VertexOnVertex(BamgVertex * w,BamgVertex *bw) :v(w),bv(bw){ 19 19 … … 21 21 22 22 /*Methods*/ 23 /*FUNCTION VertexOnVertex::Set{{{ 1*/23 /*FUNCTION VertexOnVertex::Set{{{*/ 24 24 void VertexOnVertex::Set(const Mesh &Th ,long i,Mesh &ThNew) { 25 25 *this = Th.VertexOnBThVertex[i]; … … 27 27 } 28 28 /*}}}*/ 29 /*FUNCTION VertexOnVertex::SetOnBTh{{{ 1*/29 /*FUNCTION VertexOnVertex::SetOnBTh{{{*/ 30 30 void VertexOnVertex::SetOnBTh(){ 31 31 v->BackgroundVertexHook=bv;v->IndexInTriangle=IsVertexOnVertex; -
TabularUnified issm/trunk-jpl/src/c/objects/Constraints/Constraint.h ¶
r12200 r12365 10 10 11 11 /*Headers:*/ 12 /*{{{ 1*/12 /*{{{*/ 13 13 class Nodes; 14 14 #include "../Object.h" -
TabularUnified issm/trunk-jpl/src/c/objects/Constraints/SpcDynamic.cpp ¶
r12014 r12365 18 18 19 19 /*SpcDynamic constructors and destructor*/ 20 /*FUNCTION SpcDynamic::SpcDynamic(){{{ 1*/20 /*FUNCTION SpcDynamic::SpcDynamic(){{{*/ 21 21 SpcDynamic::SpcDynamic(){ 22 22 return; 23 23 } 24 /*}}} 1*/25 /*FUNCTION SpcDynamic::SpcDynamic(int spc_sid,int spc_nodeid,...){{{ 1*/24 /*}}}*/ 25 /*FUNCTION SpcDynamic::SpcDynamic(int spc_sid,int spc_nodeid,...){{{*/ 26 26 SpcDynamic::SpcDynamic(int spc_sid,int spc_nodeid, int spc_dof,int spc_analysis_type){ 27 27 … … 35 35 return; 36 36 } 37 /*}}} 1*/38 /*FUNCTION SpcDynamic::~SpcDynamic{{{ 1*/37 /*}}}*/ 38 /*FUNCTION SpcDynamic::~SpcDynamic{{{*/ 39 39 SpcDynamic::~SpcDynamic(){ 40 40 return; 41 41 } 42 /*}}} 1*/42 /*}}}*/ 43 43 44 44 /*Object virtual functions definitions:*/ 45 /*FUNCTION SpcDynamic::Echo {{{ 1*/45 /*FUNCTION SpcDynamic::Echo {{{*/ 46 46 void SpcDynamic::Echo(void){ 47 47 … … 55 55 return; 56 56 } 57 /*}}} 1*/58 /*FUNCTION SpcDynamic::DeepEcho {{{ 1*/57 /*}}}*/ 58 /*FUNCTION SpcDynamic::DeepEcho {{{*/ 59 59 void SpcDynamic::DeepEcho(void){ 60 60 … … 62 62 return; 63 63 } 64 /*}}} 1*/65 /*FUNCTION SpcDynamic::Id {{{ 1*/64 /*}}}*/ 65 /*FUNCTION SpcDynamic::Id {{{*/ 66 66 int SpcDynamic::Id(void){ return sid; } 67 /*}}} 1*/68 /*FUNCTION SpcDynamic::MyRank {{{ 1*/67 /*}}}*/ 68 /*FUNCTION SpcDynamic::MyRank {{{*/ 69 69 int SpcDynamic::MyRank(void){ 70 70 extern int my_rank; 71 71 return my_rank; 72 72 } 73 /*}}} 1*/74 /*FUNCTION SpcDynamic::ObjectEnum{{{ 1*/73 /*}}}*/ 74 /*FUNCTION SpcDynamic::ObjectEnum{{{*/ 75 75 int SpcDynamic::ObjectEnum(void){ 76 76 … … 78 78 79 79 } 80 /*}}} 1*/81 /*FUNCTION SpcDynamic::copy {{{ 1*/80 /*}}}*/ 81 /*FUNCTION SpcDynamic::copy {{{*/ 82 82 Object* SpcDynamic::copy() { 83 83 return new SpcDynamic(*this); 84 84 } 85 /*}}} 1*/85 /*}}}*/ 86 86 87 87 /*Constraint virtual functions definitions: */ 88 /*FUNCTION SpcDynamic::InAnalysis{{{ 1*/88 /*FUNCTION SpcDynamic::InAnalysis{{{*/ 89 89 bool SpcDynamic::InAnalysis(int in_analysis_type){ 90 90 if (in_analysis_type==this->analysis_type) return true; … … 92 92 } 93 93 /*}}}*/ 94 /*FUNCTION SpcDynamic::ConstrainNode{{{ 1*/94 /*FUNCTION SpcDynamic::ConstrainNode{{{*/ 95 95 void SpcDynamic::ConstrainNode(Nodes* nodes,Parameters* parameters){ 96 96 … … 110 110 111 111 /*SpcDynamic functions*/ 112 /*FUNCTION SpcDynamic::GetDof {{{ 1*/112 /*FUNCTION SpcDynamic::GetDof {{{*/ 113 113 int SpcDynamic::GetDof(){ 114 114 return dof; 115 115 } 116 /*}}} 1*/117 /*FUNCTION SpcDynamic::GetNodeId {{{ 1*/116 /*}}}*/ 117 /*FUNCTION SpcDynamic::GetNodeId {{{*/ 118 118 int SpcDynamic::GetNodeId(){ 119 119 120 120 return nodeid; 121 121 } 122 /*}}} 1*/123 /*FUNCTION SpcDynamic::GetValue {{{ 1*/122 /*}}}*/ 123 /*FUNCTION SpcDynamic::GetValue {{{*/ 124 124 double SpcDynamic::GetValue(){ 125 125 _assert_(this->isset); … … 127 127 return value; 128 128 } 129 /*}}} 1*/130 /*FUNCTION SpcDynamic::SetDynamicConstraint {{{ 1*/129 /*}}}*/ 130 /*FUNCTION SpcDynamic::SetDynamicConstraint {{{*/ 131 131 void SpcDynamic::SetDynamicConstraint(Nodes* nodes,double* yg_serial){ 132 132 … … 139 139 this->isset=true; 140 140 } 141 /*}}} 1*/141 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Constraints/SpcDynamic.h ¶
r12014 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../Object.h" 11 11 class DataSet; … … 24 24 public: 25 25 26 /*SpcDynamic constructors, destructors:{{{ 1*/26 /*SpcDynamic constructors, destructors:{{{*/ 27 27 SpcDynamic(); 28 28 SpcDynamic(int sid,int nodeid, int dof,int analysis_type); 29 29 ~SpcDynamic(); 30 30 /*}}}*/ 31 /*Object virtual functions definitions:{{{ 1*/31 /*Object virtual functions definitions:{{{ */ 32 32 void Echo(); 33 33 void DeepEcho(); … … 37 37 Object* copy(); 38 38 /*}}}*/ 39 /*Constraint virtual functions definitions: {{{ 1*/39 /*Constraint virtual functions definitions: {{{*/ 40 40 void ConstrainNode(Nodes* nodes,Parameters* parameters); 41 41 bool InAnalysis(int analysis_type); 42 42 /*}}}*/ 43 /*SpcDynamic management:{{{ 1*/43 /*SpcDynamic management:{{{ */ 44 44 int GetNodeId(); 45 45 int GetDof(); -
TabularUnified issm/trunk-jpl/src/c/objects/Constraints/SpcStatic.cpp ¶
r12014 r12365 18 18 19 19 /*SpcStatic constructors and destructor*/ 20 /*FUNCTION SpcStatic::SpcStatic(){{{ 1*/20 /*FUNCTION SpcStatic::SpcStatic(){{{*/ 21 21 SpcStatic::SpcStatic(){ 22 22 return; 23 23 } 24 /*}}} 1*/25 /*FUNCTION SpcStatic::SpcStatic(int spc_sid,int spc_nodeid,...){{{ 1*/24 /*}}}*/ 25 /*FUNCTION SpcStatic::SpcStatic(int spc_sid,int spc_nodeid,...){{{*/ 26 26 SpcStatic::SpcStatic(int spc_sid,int spc_nodeid, int spc_dof,double spc_value,int spc_analysis_type){ 27 27 … … 34 34 return; 35 35 } 36 /*}}} 1*/37 /*FUNCTION SpcStatic::~SpcStatic{{{ 1*/36 /*}}}*/ 37 /*FUNCTION SpcStatic::~SpcStatic{{{*/ 38 38 SpcStatic::~SpcStatic(){ 39 39 return; 40 40 } 41 /*}}} 1*/41 /*}}}*/ 42 42 43 43 /*Object virtual functions definitions:*/ 44 /*FUNCTION SpcStatic::Echo {{{ 1*/44 /*FUNCTION SpcStatic::Echo {{{*/ 45 45 void SpcStatic::Echo(void){ 46 46 … … 53 53 return; 54 54 } 55 /*}}} 1*/56 /*FUNCTION SpcStatic::DeepEcho {{{ 1*/55 /*}}}*/ 56 /*FUNCTION SpcStatic::DeepEcho {{{*/ 57 57 void SpcStatic::DeepEcho(void){ 58 58 … … 65 65 return; 66 66 } 67 /*}}} 1*/68 /*FUNCTION SpcStatic::Id {{{ 1*/67 /*}}}*/ 68 /*FUNCTION SpcStatic::Id {{{*/ 69 69 int SpcStatic::Id(void){ return sid; } 70 /*}}} 1*/71 /*FUNCTION SpcStatic::MyRank {{{ 1*/70 /*}}}*/ 71 /*FUNCTION SpcStatic::MyRank {{{*/ 72 72 int SpcStatic::MyRank(void){ 73 73 extern int my_rank; 74 74 return my_rank; 75 75 } 76 /*}}} 1*/77 /*FUNCTION SpcStatic::ObjectEnum{{{ 1*/76 /*}}}*/ 77 /*FUNCTION SpcStatic::ObjectEnum{{{*/ 78 78 int SpcStatic::ObjectEnum(void){ 79 79 … … 81 81 82 82 } 83 /*}}} 1*/84 /*FUNCTION SpcStatic::copy {{{ 1*/83 /*}}}*/ 84 /*FUNCTION SpcStatic::copy {{{*/ 85 85 Object* SpcStatic::copy() { 86 86 return new SpcStatic(*this); 87 87 } 88 /*}}} 1*/88 /*}}}*/ 89 89 90 90 /*Constraint virtual functions definitions: */ 91 /*FUNCTION SpcStatic::InAnalysis{{{ 1*/91 /*FUNCTION SpcStatic::InAnalysis{{{*/ 92 92 bool SpcStatic::InAnalysis(int in_analysis_type){ 93 93 if (in_analysis_type==this->analysis_type) return true; … … 95 95 } 96 96 /*}}}*/ 97 /*FUNCTION SpcStatic::ConstrainNode{{{ 1*/97 /*FUNCTION SpcStatic::ConstrainNode{{{*/ 98 98 void SpcStatic::ConstrainNode(Nodes* nodes,Parameters* parameters){ 99 99 … … 111 111 112 112 /*SpcStatic functions*/ 113 /*FUNCTION SpcStatic::GetDof {{{ 1*/113 /*FUNCTION SpcStatic::GetDof {{{*/ 114 114 int SpcStatic::GetDof(){ 115 115 return dof; 116 116 } 117 /*}}} 1*/118 /*FUNCTION SpcStatic::GetNodeId {{{ 1*/117 /*}}}*/ 118 /*FUNCTION SpcStatic::GetNodeId {{{*/ 119 119 int SpcStatic::GetNodeId(){ 120 120 121 121 return nodeid; 122 122 } 123 /*}}} 1*/124 /*FUNCTION SpcStatic::GetValue {{{ 1*/123 /*}}}*/ 124 /*FUNCTION SpcStatic::GetValue {{{*/ 125 125 double SpcStatic::GetValue(){ 126 126 _assert_(!isnan(value)); 127 127 return value; 128 128 } 129 /*}}} 1*/129 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Constraints/SpcStatic.h ¶
r12014 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../Object.h" 11 11 class DataSet; … … 23 23 public: 24 24 25 /*SpcStatic constructors, destructors:{{{ 1*/25 /*SpcStatic constructors, destructors:{{{*/ 26 26 SpcStatic(); 27 27 SpcStatic(int sid,int nodeid, int dof,double value,int analysis_type); 28 28 ~SpcStatic(); 29 29 /*}}}*/ 30 /*Object virtual functions definitions:{{{ 1*/30 /*Object virtual functions definitions:{{{ */ 31 31 void Echo(); 32 32 void DeepEcho(); … … 36 36 Object* copy(); 37 37 /*}}}*/ 38 /*Constraint virtual functions definitions: {{{ 1*/38 /*Constraint virtual functions definitions: {{{*/ 39 39 void ConstrainNode(Nodes* nodes,Parameters* parameters); 40 40 bool InAnalysis(int analysis_type); 41 41 /*}}}*/ 42 /*SpcStatic management:{{{ 1*/42 /*SpcStatic management:{{{ */ 43 43 int GetNodeId(); 44 44 int GetDof(); -
TabularUnified issm/trunk-jpl/src/c/objects/Constraints/SpcTransient.cpp ¶
r12014 r12365 18 18 19 19 /*SpcTransient constructors and destructor*/ 20 /*FUNCTION SpcTransient::SpcTransient(){{{ 1*/20 /*FUNCTION SpcTransient::SpcTransient(){{{*/ 21 21 SpcTransient::SpcTransient(){ 22 22 sid=-1; … … 29 29 return; 30 30 } 31 /*}}} 1*/32 /*FUNCTION SpcTransient::SpcTransient(int spc_sid,int spc_nodeid,...){{{ 1*/31 /*}}}*/ 32 /*FUNCTION SpcTransient::SpcTransient(int spc_sid,int spc_nodeid,...){{{*/ 33 33 SpcTransient::SpcTransient(int spc_sid,int spc_nodeid, int spc_dof,int spc_nsteps, double* spc_times, double* spc_values,int spc_analysis_type){ 34 34 … … 46 46 return; 47 47 } 48 /*}}} 1*/49 /*FUNCTION SpcTransient::~SpcTransient{{{ 1*/48 /*}}}*/ 49 /*FUNCTION SpcTransient::~SpcTransient{{{*/ 50 50 SpcTransient::~SpcTransient(){ 51 51 xfree((void**)×); … … 53 53 return; 54 54 } 55 /*}}} 1*/55 /*}}}*/ 56 56 57 57 /*Object virtual functions definitions:*/ 58 /*FUNCTION SpcTransient::Echo {{{ 1*/58 /*FUNCTION SpcTransient::Echo {{{*/ 59 59 void SpcTransient::Echo(void){ 60 60 … … 72 72 return; 73 73 } 74 /*}}} 1*/75 /*FUNCTION SpcTransient::DeepEcho {{{ 1*/74 /*}}}*/ 75 /*FUNCTION SpcTransient::DeepEcho {{{*/ 76 76 void SpcTransient::DeepEcho(void){ 77 77 this->Echo(); 78 78 } 79 /*}}} 1*/80 /*FUNCTION SpcTransient::Id {{{ 1*/79 /*}}}*/ 80 /*FUNCTION SpcTransient::Id {{{*/ 81 81 int SpcTransient::Id(void){ return sid; } 82 /*}}} 1*/83 /*FUNCTION SpcTransient::MyRank {{{ 1*/82 /*}}}*/ 83 /*FUNCTION SpcTransient::MyRank {{{*/ 84 84 int SpcTransient::MyRank(void){ 85 85 extern int my_rank; 86 86 return my_rank; 87 87 } 88 /*}}} 1*/89 /*FUNCTION SpcTransient::ObjectEnum{{{ 1*/88 /*}}}*/ 89 /*FUNCTION SpcTransient::ObjectEnum{{{*/ 90 90 int SpcTransient::ObjectEnum(void){ 91 91 … … 93 93 94 94 } 95 /*}}} 1*/96 /*FUNCTION SpcTransient::copy {{{ 1*/95 /*}}}*/ 96 /*FUNCTION SpcTransient::copy {{{*/ 97 97 Object* SpcTransient::copy() { 98 98 return new SpcTransient(sid,nodeid,dof,nsteps,times,values,analysis_type); 99 99 } 100 /*}}} 1*/100 /*}}}*/ 101 101 102 102 /*Constraint virtual functions definitions:*/ 103 /*FUNCTION SpcTransient::InAnalysis{{{ 1*/103 /*FUNCTION SpcTransient::InAnalysis{{{*/ 104 104 bool SpcTransient::InAnalysis(int in_analysis_type){ 105 105 … … 108 108 } 109 109 /*}}}*/ 110 /*FUNCTION SpcTransient::ConstrainNode{{{ 1*/110 /*FUNCTION SpcTransient::ConstrainNode{{{*/ 111 111 void SpcTransient::ConstrainNode(Nodes* nodes,Parameters* parameters){ 112 112 … … 158 158 159 159 /*SpcTransient functions*/ 160 /*FUNCTION SpcTransient::GetDof {{{ 1*/160 /*FUNCTION SpcTransient::GetDof {{{*/ 161 161 int SpcTransient::GetDof(){ 162 162 return dof; 163 163 } 164 /*}}} 1*/165 /*FUNCTION SpcTransient::GetNodeId {{{ 1*/164 /*}}}*/ 165 /*FUNCTION SpcTransient::GetNodeId {{{*/ 166 166 int SpcTransient::GetNodeId(){ 167 167 168 168 return nodeid; 169 169 } 170 /*}}} 1*/171 /*FUNCTION SpcTransient::GetValue {{{ 1*/170 /*}}}*/ 171 /*FUNCTION SpcTransient::GetValue {{{*/ 172 172 double SpcTransient::GetValue(){ 173 173 return values[0]; 174 174 } 175 /*}}} 1*/175 /*}}}*/ 176 176 -
TabularUnified issm/trunk-jpl/src/c/objects/Constraints/SpcTransient.h ¶
r12014 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../Object.h" 11 11 class DataSet; … … 25 25 public: 26 26 27 /*SpcTransient constructors, destructors:{{{ 1*/27 /*SpcTransient constructors, destructors:{{{*/ 28 28 SpcTransient(); 29 29 SpcTransient(int sid,int nodeid, int dof,int nsteps, double* times, double* values,int analysis_type); 30 30 ~SpcTransient(); 31 31 /*}}}*/ 32 /*Object virtual functions definitions:{{{ 1*/32 /*Object virtual functions definitions:{{{ */ 33 33 void Echo(); 34 34 void DeepEcho(); … … 38 38 Object* copy(); 39 39 /*}}}*/ 40 /*Constraint virtual functions definitions: {{{ 1*/40 /*Constraint virtual functions definitions: {{{*/ 41 41 void ConstrainNode(Nodes* nodes,Parameters* parameters); 42 42 bool InAnalysis(int analysis_type); 43 43 /*}}}*/ 44 /*SpcTransient management:{{{ 1*/44 /*SpcTransient management:{{{ */ 45 45 int GetNodeId(); 46 46 int GetDof(); -
TabularUnified issm/trunk-jpl/src/c/objects/Contour.cpp ¶
r12356 r12365 15 15 16 16 /*Contour constructors and destructors:*/ 17 /*FUNCTION Contour::Contour() default constructor {{{ 1*/17 /*FUNCTION Contour::Contour() default constructor {{{*/ 18 18 Contour::Contour(){ 19 19 this->id=0; … … 24 24 } 25 25 /*}}}*/ 26 /*FUNCTION Contour::Contour(int pid, int nods, IssmDouble* x, IssmDouble* y,bool closed) {{{ 1*/26 /*FUNCTION Contour::Contour(int pid, int nods, IssmDouble* x, IssmDouble* y,bool closed) {{{*/ 27 27 Contour::Contour(int pid,int pnods, IssmDouble* px, IssmDouble* py,bool pclosed){ 28 28 … … 38 38 } 39 39 /*}}}*/ 40 /*FUNCTION Contour::Contour() default constructor {{{ 1*/40 /*FUNCTION Contour::Contour() default constructor {{{*/ 41 41 Contour::~Contour(){ 42 42 xDelete<IssmDouble>(this->x); … … 47 47 48 48 /*Object virtual function resolutoin: */ 49 /*FUNCTION Contour::Echo(){{{ 1*/49 /*FUNCTION Contour::Echo(){{{*/ 50 50 void Contour::Echo(void){ 51 51 … … 63 63 } 64 64 /*}}}*/ 65 /*FUNCTION Contour::DeepEcho(){{{ 1*/65 /*FUNCTION Contour::DeepEcho(){{{*/ 66 66 void Contour::DeepEcho(void){ 67 67 this->Echo(); 68 68 } 69 69 /*}}}*/ 70 /*FUNCTION Contour::Id(){{{ 1*/70 /*FUNCTION Contour::Id(){{{*/ 71 71 int Contour::Id(void){ 72 72 return id; 73 73 } 74 74 /*}}}*/ 75 /*FUNCTION Contour::MyRank{{{ 1*/75 /*FUNCTION Contour::MyRank{{{*/ 76 76 int Contour::MyRank(void){ 77 77 extern int my_rank; … … 80 80 } 81 81 /*}}}*/ 82 /*FUNCTION Contour::ObjectEnum{{{ 1*/82 /*FUNCTION Contour::ObjectEnum{{{*/ 83 83 int Contour::ObjectEnum(void){ 84 84 … … 87 87 } 88 88 /*}}}*/ 89 /*FUNCTION Contour::copy {{{ 1*/89 /*FUNCTION Contour::copy {{{*/ 90 90 Object* Contour::copy() { 91 91 -
TabularUnified issm/trunk-jpl/src/c/objects/Contour.h ¶
r12322 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "./Object.h" 11 11 #include "../shared/Exceptions/exceptions.h" … … 24 24 bool closed; //is this contour closed? 25 25 26 /*Contour constructors, destructors {{{ 1*/26 /*Contour constructors, destructors {{{*/ 27 27 Contour(); 28 28 Contour(int id, int nods, IssmDouble* x, IssmDouble* y,bool closed); 29 29 ~Contour(); 30 30 /*}}}*/ 31 /*Object virtual functions{{{ 1*/31 /*Object virtual functions{{{*/ 32 32 void Echo(void); 33 33 void DeepEcho(void); -
TabularUnified issm/trunk-jpl/src/c/objects/DakotaPlugin.h ¶
r4042 r12365 9 9 10 10 /*Headers:*/ 11 /*{{{ 1*/11 /*{{{*/ 12 12 13 13 -
TabularUnified issm/trunk-jpl/src/c/objects/DofIndexing.cpp ¶
r12360 r12365 18 18 19 19 /*DofIndexing constructors and destructor*/ 20 /*FUNCTION DofIndexing::DofIndexing(){{{ 1*/20 /*FUNCTION DofIndexing::DofIndexing(){{{*/ 21 21 DofIndexing::DofIndexing(){ 22 22 … … 35 35 } 36 36 /*}}}*/ 37 /*FUNCTION DofIndexing::DofIndexing(int gsize){{{ 1*/37 /*FUNCTION DofIndexing::DofIndexing(int gsize){{{*/ 38 38 DofIndexing::DofIndexing(int in_gsize){ 39 39 this->Init(in_gsize,NULL); 40 40 } 41 41 /*}}}*/ 42 /*FUNCTION DofIndexing::DofIndexing(DofIndexing* in) -> copy{{{ 1*/42 /*FUNCTION DofIndexing::DofIndexing(DofIndexing* in) -> copy{{{*/ 43 43 DofIndexing::DofIndexing(DofIndexing* in){ //copy constructor 44 44 … … 79 79 } 80 80 /*}}}*/ 81 /*FUNCTION DofIndexing::~DofIndexing() {{{ 1*/81 /*FUNCTION DofIndexing::~DofIndexing() {{{*/ 82 82 DofIndexing::~DofIndexing(){ //destructor 83 83 … … 92 92 } 93 93 /*}}}*/ 94 /*FUNCTION DofIndexing::Init{{{ 1*/94 /*FUNCTION DofIndexing::Init{{{*/ 95 95 void DofIndexing::Init(int in_gsize,int* in_doftype){ 96 96 … … 119 119 } 120 120 /*}}}*/ 121 /*FUNCTION DofIndexing::InitSet{{{ 1*/121 /*FUNCTION DofIndexing::InitSet{{{*/ 122 122 void DofIndexing::InitSet(int setenum){ 123 123 … … 148 148 149 149 /*Some of the Object functionality: */ 150 /*FUNCTION DofIndexing::Echo{{{ 1*/150 /*FUNCTION DofIndexing::Echo{{{*/ 151 151 void DofIndexing::Echo(void){ 152 152 … … 158 158 } 159 159 /*}}}*/ 160 /*FUNCTION DofIndexing::DeepEcho{{{ 1*/160 /*FUNCTION DofIndexing::DeepEcho{{{*/ 161 161 void DofIndexing::DeepEcho(void){ 162 162 -
TabularUnified issm/trunk-jpl/src/c/objects/DofIndexing.h ¶
r12322 r12365 34 34 35 35 36 /*DofIndexing constructors, destructors {{{ 1*/36 /*DofIndexing constructors, destructors {{{*/ 37 37 DofIndexing(); 38 38 DofIndexing(int g_size); … … 42 42 ~DofIndexing(); 43 43 /*}}}*/ 44 /*Object like functionality: {{{ 1*/44 /*Object like functionality: {{{*/ 45 45 void Echo(void); 46 46 void DeepEcho(void); 47 47 void copy(DofIndexing* properties); 48 48 /*}}}*/ 49 /*DofIndexing management: {{{ 1*/49 /*DofIndexing management: {{{*/ 50 50 DofIndexing* Spawn(int* indices, int numindices); 51 51 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/objects/ElementResults/BoolElementResult.cpp ¶
r12014 r12365 19 19 20 20 /*BoolElementResult constructors and destructor*/ 21 /*FUNCTION BoolElementResult::BoolElementResult(){{{ 1*/21 /*FUNCTION BoolElementResult::BoolElementResult(){{{*/ 22 22 BoolElementResult::BoolElementResult(){ 23 23 return; 24 24 } 25 25 /*}}}*/ 26 /*FUNCTION BoolElementResult::BoolElementResult(int in_enum_type,IssmDouble in_value,int in_step, double in_time){{{ 1*/26 /*FUNCTION BoolElementResult::BoolElementResult(int in_enum_type,IssmDouble in_value,int in_step, double in_time){{{*/ 27 27 BoolElementResult::BoolElementResult(int in_enum_type,bool in_value,int in_step, double in_time){ 28 28 … … 33 33 } 34 34 /*}}}*/ 35 /*FUNCTION BoolElementResult::~BoolElementResult(){{{ 1*/35 /*FUNCTION BoolElementResult::~BoolElementResult(){{{*/ 36 36 BoolElementResult::~BoolElementResult(){ 37 37 return; … … 40 40 41 41 /*Object virtual functions definitions:*/ 42 /*FUNCTION BoolElementResult::Echo {{{ 1*/42 /*FUNCTION BoolElementResult::Echo {{{*/ 43 43 void BoolElementResult::Echo(void){ 44 44 this->DeepEcho(); 45 45 } 46 46 /*}}}*/ 47 /*FUNCTION BoolElementResult::DeepEcho{{{ 1*/47 /*FUNCTION BoolElementResult::DeepEcho{{{*/ 48 48 void BoolElementResult::DeepEcho(void){ 49 49 … … 55 55 } 56 56 /*}}}*/ 57 /*FUNCTION BoolElementResult::Id{{{ 1*/57 /*FUNCTION BoolElementResult::Id{{{*/ 58 58 int BoolElementResult::Id(void){ return -1; } 59 59 /*}}}*/ 60 /*FUNCTION BoolElementResult::MyRank{{{ 1*/60 /*FUNCTION BoolElementResult::MyRank{{{*/ 61 61 int BoolElementResult::MyRank(void){ 62 62 extern int my_rank; … … 64 64 } 65 65 /*}}}*/ 66 /*FUNCTION BoolElementResult::ObjectEnum{{{ 1*/66 /*FUNCTION BoolElementResult::ObjectEnum{{{*/ 67 67 int BoolElementResult::ObjectEnum(void){ 68 68 … … 71 71 } 72 72 /*}}}*/ 73 /*FUNCTION BoolElementResult::copy{{{ 1*/73 /*FUNCTION BoolElementResult::copy{{{*/ 74 74 Object* BoolElementResult::copy() { 75 75 … … 80 80 81 81 /*ElementResult management*/ 82 /*FUNCTION BoolElementResult::InstanceEnum{{{ 1*/82 /*FUNCTION BoolElementResult::InstanceEnum{{{*/ 83 83 int BoolElementResult::InstanceEnum(void){ 84 84 … … 87 87 } 88 88 /*}}}*/ 89 /*FUNCTION BoolElementResult::SpawnTriaElementResult{{{ 1*/89 /*FUNCTION BoolElementResult::SpawnTriaElementResult{{{*/ 90 90 ElementResult* BoolElementResult::SpawnTriaElementResult(int* indices){ 91 91 … … 104 104 } 105 105 /*}}}*/ 106 /*FUNCTION BoolElementResult::ProcessUnits{{{ 1*/106 /*FUNCTION BoolElementResult::ProcessUnits{{{*/ 107 107 void BoolElementResult::ProcessUnits(Parameters* parameters){ 108 108 … … 111 111 } 112 112 /*}}}*/ 113 /*FUNCTION BoolElementResult::NumberOfNodalValues{{{ 1*/113 /*FUNCTION BoolElementResult::NumberOfNodalValues{{{*/ 114 114 int BoolElementResult::NumberOfNodalValues(void){ 115 115 return 1; 116 116 } 117 117 /*}}}*/ 118 /*FUNCTION BoolElementResult::PatchFill{{{ 1*/118 /*FUNCTION BoolElementResult::PatchFill{{{*/ 119 119 void BoolElementResult::PatchFill(int row, Patch* patch){ 120 120 … … 127 127 } 128 128 /*}}}*/ 129 /*FUNCTION BoolElementResult::GetVectorFromResults{{{ 1*/129 /*FUNCTION BoolElementResult::GetVectorFromResults{{{*/ 130 130 void BoolElementResult::GetVectorFromResults(Vector* vector,int* doflist,int* connectivitylist,int numdofs){ 131 131 132 132 _error_("cannot return vector on vertices"); 133 133 } /*}}}*/ 134 /*FUNCTION BoolElementResult::GetElementVectorFromResults{{{ 1*/134 /*FUNCTION BoolElementResult::GetElementVectorFromResults{{{*/ 135 135 void BoolElementResult::GetElementVectorFromResults(Vector* vector,int dof){ 136 136 -
TabularUnified issm/trunk-jpl/src/c/objects/ElementResults/BoolElementResult.h ¶
r12014 r12365 9 9 10 10 /*Headers:*/ 11 /*{{{ 1*/11 /*{{{*/ 12 12 #include "../Inputs/Input.h" 13 13 #include "../../include/include.h" … … 25 25 public: 26 26 27 /*BoolElementResult constructors, destructors: {{{ 1*/27 /*BoolElementResult constructors, destructors: {{{*/ 28 28 BoolElementResult(); 29 29 BoolElementResult(int enum_type,bool value,int step,double time); 30 30 ~BoolElementResult(); 31 31 /*}}}*/ 32 /*Object virtual functions definitions:{{{ 1*/32 /*Object virtual functions definitions:{{{ */ 33 33 void Echo(); 34 34 void DeepEcho(); … … 38 38 Object* copy(); 39 39 /*}}}*/ 40 /*ElementResult virtual functions definitions: {{{ 1*/40 /*ElementResult virtual functions definitions: {{{*/ 41 41 ElementResult* SpawnTriaElementResult(int* indices); 42 42 double GetTime(void){return time;}; … … 46 46 void PatchFill(int row, Patch* patch); 47 47 /*}}}*/ 48 /*BoolElementResult management: {{{ 1*/48 /*BoolElementResult management: {{{*/ 49 49 int InstanceEnum(); 50 50 void GetVectorFromResults(Vector* vector,int* doflist,int* connectivitylist,int numdofs); -
TabularUnified issm/trunk-jpl/src/c/objects/ElementResults/DoubleElementResult.cpp ¶
r12014 r12365 19 19 20 20 /*DoubleElementResult constructors and destructor*/ 21 /*FUNCTION DoubleElementResult::DoubleElementResult(){{{ 1*/21 /*FUNCTION DoubleElementResult::DoubleElementResult(){{{*/ 22 22 DoubleElementResult::DoubleElementResult(){ 23 23 return; 24 24 } 25 25 /*}}}*/ 26 /*FUNCTION DoubleElementResult::DoubleElementResult(int in_enum_type,IssmDouble in_value,int in_step, double in_time){{{ 1*/26 /*FUNCTION DoubleElementResult::DoubleElementResult(int in_enum_type,IssmDouble in_value,int in_step, double in_time){{{*/ 27 27 DoubleElementResult::DoubleElementResult(int in_enum_type,IssmDouble in_value,int in_step, double in_time){ 28 28 … … 33 33 } 34 34 /*}}}*/ 35 /*FUNCTION DoubleElementResult::~DoubleElementResult(){{{ 1*/35 /*FUNCTION DoubleElementResult::~DoubleElementResult(){{{*/ 36 36 DoubleElementResult::~DoubleElementResult(){ 37 37 return; … … 40 40 41 41 /*Object virtual functions definitions:*/ 42 /*FUNCTION DoubleElementResult::Echo {{{ 1*/42 /*FUNCTION DoubleElementResult::Echo {{{*/ 43 43 void DoubleElementResult::Echo(void){ 44 44 this->DeepEcho(); 45 45 } 46 46 /*}}}*/ 47 /*FUNCTION DoubleElementResult::DeepEcho{{{ 1*/47 /*FUNCTION DoubleElementResult::DeepEcho{{{*/ 48 48 void DoubleElementResult::DeepEcho(void){ 49 49 … … 55 55 } 56 56 /*}}}*/ 57 /*FUNCTION DoubleElementResult::Id{{{ 1*/57 /*FUNCTION DoubleElementResult::Id{{{*/ 58 58 int DoubleElementResult::Id(void){ return -1; } 59 59 /*}}}*/ 60 /*FUNCTION DoubleElementResult::MyRank{{{ 1*/60 /*FUNCTION DoubleElementResult::MyRank{{{*/ 61 61 int DoubleElementResult::MyRank(void){ 62 62 extern int my_rank; … … 64 64 } 65 65 /*}}}*/ 66 /*FUNCTION DoubleElementResult::ObjectEnum{{{ 1*/66 /*FUNCTION DoubleElementResult::ObjectEnum{{{*/ 67 67 int DoubleElementResult::ObjectEnum(void){ 68 68 … … 71 71 } 72 72 /*}}}*/ 73 /*FUNCTION DoubleElementResult::copy{{{ 1*/73 /*FUNCTION DoubleElementResult::copy{{{*/ 74 74 Object* DoubleElementResult::copy() { 75 75 … … 80 80 81 81 /*ElementResult management*/ 82 /*FUNCTION DoubleElementResult::InstanceEnum{{{ 1*/82 /*FUNCTION DoubleElementResult::InstanceEnum{{{*/ 83 83 int DoubleElementResult::InstanceEnum(void){ 84 84 … … 87 87 } 88 88 /*}}}*/ 89 /*FUNCTION DoubleElementResult::SpawnTriaElementResult{{{ 1*/89 /*FUNCTION DoubleElementResult::SpawnTriaElementResult{{{*/ 90 90 ElementResult* DoubleElementResult::SpawnTriaElementResult(int* indices){ 91 91 … … 104 104 } 105 105 /*}}}*/ 106 /*FUNCTION DoubleElementResult::ProcessUnits{{{ 1*/106 /*FUNCTION DoubleElementResult::ProcessUnits{{{*/ 107 107 void DoubleElementResult::ProcessUnits(Parameters* parameters){ 108 108 … … 111 111 } 112 112 /*}}}*/ 113 /*FUNCTION DoubleElementResult::NumberOfNodalValues{{{ 1*/113 /*FUNCTION DoubleElementResult::NumberOfNodalValues{{{*/ 114 114 int DoubleElementResult::NumberOfNodalValues(void){ 115 115 return 1; 116 116 } 117 117 /*}}}*/ 118 /*FUNCTION DoubleElementResult::PatchFill{{{ 1*/118 /*FUNCTION DoubleElementResult::PatchFill{{{*/ 119 119 void DoubleElementResult::PatchFill(int row, Patch* patch){ 120 120 -
TabularUnified issm/trunk-jpl/src/c/objects/ElementResults/DoubleElementResult.h ¶
r12014 r12365 9 9 10 10 /*Headers:*/ 11 /*{{{ 1*/11 /*{{{*/ 12 12 #include "../Inputs/Input.h" 13 13 #include "../../include/include.h" … … 25 25 public: 26 26 27 /*DoubleElementResult constructors, destructors: {{{ 1*/27 /*DoubleElementResult constructors, destructors: {{{*/ 28 28 DoubleElementResult(); 29 29 DoubleElementResult(int enum_type,double value,int step,double time); 30 30 ~DoubleElementResult(); 31 31 /*}}}*/ 32 /*Object virtual functions definitions:{{{ 1*/32 /*Object virtual functions definitions:{{{ */ 33 33 void Echo(); 34 34 void DeepEcho(); … … 38 38 Object* copy(); 39 39 /*}}}*/ 40 /*ElementResult virtual functions definitions: {{{ 1*/40 /*ElementResult virtual functions definitions: {{{*/ 41 41 ElementResult* SpawnTriaElementResult(int* indices); 42 42 double GetTime(void){return time;}; … … 46 46 void PatchFill(int row, Patch* patch); 47 47 /*}}}*/ 48 /*DoubleElementResult management: {{{ 1*/48 /*DoubleElementResult management: {{{*/ 49 49 int InstanceEnum(); 50 50 void GetVectorFromResults(Vector* vector,int* doflist,int* connectivitylist,int numdofs){_error_("not implemented");}; -
TabularUnified issm/trunk-jpl/src/c/objects/ElementResults/ElementResult.h ¶
r11695 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #include "../Object.h" 12 12 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/objects/ElementResults/PentaP1ElementResult.cpp ¶
r12014 r12365 19 19 20 20 /*PentaP1ElementResult constructors and destructor*/ 21 /*FUNCTION PentaP1ElementResult::PentaP1ElementResult(){{{ 1*/21 /*FUNCTION PentaP1ElementResult::PentaP1ElementResult(){{{*/ 22 22 PentaP1ElementResult::PentaP1ElementResult(){ 23 23 return; 24 24 } 25 25 /*}}}*/ 26 /*FUNCTION PentaP1ElementResult::PentaP1ElementResult(int in_enum_type,double* in_values,int in_step, double in_time){{{ 1*/26 /*FUNCTION PentaP1ElementResult::PentaP1ElementResult(int in_enum_type,double* in_values,int in_step, double in_time){{{*/ 27 27 PentaP1ElementResult::PentaP1ElementResult(int in_enum_type,double* in_values,int in_step, double in_time){ 28 28 … … 35 35 } 36 36 /*}}}*/ 37 /*FUNCTION PentaP1ElementResult::~PentaP1ElementResult(){{{ 1*/37 /*FUNCTION PentaP1ElementResult::~PentaP1ElementResult(){{{*/ 38 38 PentaP1ElementResult::~PentaP1ElementResult(){ 39 39 return; … … 42 42 43 43 /*Object virtual functions definitions:*/ 44 /*FUNCTION PentaP1ElementResult::Echo {{{ 1*/44 /*FUNCTION PentaP1ElementResult::Echo {{{*/ 45 45 void PentaP1ElementResult::Echo(void){ 46 46 this->DeepEcho(); 47 47 } 48 48 /*}}}*/ 49 /*FUNCTION PentaP1ElementResult::DeepEcho{{{ 1*/49 /*FUNCTION PentaP1ElementResult::DeepEcho{{{*/ 50 50 void PentaP1ElementResult::DeepEcho(void){ 51 51 … … 58 58 } 59 59 /*}}}*/ 60 /*FUNCTION PentaP1ElementResult::Id{{{ 1*/60 /*FUNCTION PentaP1ElementResult::Id{{{*/ 61 61 int PentaP1ElementResult::Id(void){ return -1; } 62 62 /*}}}*/ 63 /*FUNCTION PentaP1ElementResult::MyRank{{{ 1*/63 /*FUNCTION PentaP1ElementResult::MyRank{{{*/ 64 64 int PentaP1ElementResult::MyRank(void){ 65 65 extern int my_rank; … … 67 67 } 68 68 /*}}}*/ 69 /*FUNCTION PentaP1ElementResult::ObjectEnum{{{ 1*/69 /*FUNCTION PentaP1ElementResult::ObjectEnum{{{*/ 70 70 int PentaP1ElementResult::ObjectEnum(void){ 71 71 … … 74 74 } 75 75 /*}}}*/ 76 /*FUNCTION PentaP1ElementResult::copy{{{ 1*/76 /*FUNCTION PentaP1ElementResult::copy{{{*/ 77 77 Object* PentaP1ElementResult::copy() { 78 78 … … 83 83 84 84 /*ElementResult management*/ 85 /*FUNCTION PentaP1ElementResult::InstanceEnum{{{ 1*/85 /*FUNCTION PentaP1ElementResult::InstanceEnum{{{*/ 86 86 int PentaP1ElementResult::InstanceEnum(void){ 87 87 … … 90 90 } 91 91 /*}}}*/ 92 /*FUNCTION PentaP1ElementResult::SpawnTriaElementResult{{{ 1*/92 /*FUNCTION PentaP1ElementResult::SpawnTriaElementResult{{{*/ 93 93 ElementResult* PentaP1ElementResult::SpawnTriaElementResult(int* indices){ 94 94 … … 115 115 } 116 116 /*}}}*/ 117 /*FUNCTION PentaP1ElementResult::ProcessUnits{{{ 1*/117 /*FUNCTION PentaP1ElementResult::ProcessUnits{{{*/ 118 118 void PentaP1ElementResult::ProcessUnits(Parameters* parameters){ 119 119 … … 122 122 } 123 123 /*}}}*/ 124 /*FUNCTION PentaP1ElementResult::NumberOfNodalValues{{{ 1*/124 /*FUNCTION PentaP1ElementResult::NumberOfNodalValues{{{*/ 125 125 int PentaP1ElementResult::NumberOfNodalValues(void){ 126 126 return 6; 127 127 } 128 128 /*}}}*/ 129 /*FUNCTION PentaP1ElementResult::PatchFill{{{ 1*/129 /*FUNCTION PentaP1ElementResult::PatchFill{{{*/ 130 130 void PentaP1ElementResult::PatchFill(int row, Patch* patch){ 131 131 … … 137 137 } 138 138 /*}}}*/ 139 /*FUNCTION PentaP1ElementResult::GetVectorFromResults{{{ 1*/139 /*FUNCTION PentaP1ElementResult::GetVectorFromResults{{{*/ 140 140 void PentaP1ElementResult::GetVectorFromResults(Vector* vector,int* doflist,int* connectivitylist,int numdofs){ 141 141 … … 147 147 148 148 } /*}}}*/ 149 /*FUNCTION PentaP1ElementResult::GetElementVectorFromResults{{{ 1*/149 /*FUNCTION PentaP1ElementResult::GetElementVectorFromResults{{{*/ 150 150 void PentaP1ElementResult::GetElementVectorFromResults(Vector* vector,int dof){ 151 151 -
TabularUnified issm/trunk-jpl/src/c/objects/ElementResults/PentaP1ElementResult.h ¶
r12014 r12365 9 9 10 10 /*Headers:*/ 11 /*{{{ 1*/11 /*{{{*/ 12 12 #include "../Inputs/Input.h" 13 13 #include "../../include/include.h" … … 24 24 public: 25 25 26 /*PentaP1ElementResult constructors, destructors: {{{ 1*/26 /*PentaP1ElementResult constructors, destructors: {{{*/ 27 27 PentaP1ElementResult(); 28 28 PentaP1ElementResult(int enum_type,double* values,int step, double time); 29 29 ~PentaP1ElementResult(); 30 30 /*}}}*/ 31 /*Object virtual functions definitions:{{{ 1*/31 /*Object virtual functions definitions:{{{ */ 32 32 void Echo(); 33 33 void DeepEcho(); … … 37 37 Object* copy(); 38 38 /*}}}*/ 39 /*ElementResult virtual functions definitions: {{{ 1*/39 /*ElementResult virtual functions definitions: {{{*/ 40 40 ElementResult* SpawnTriaElementResult(int* indices); 41 41 double GetTime(void){return time;}; … … 45 45 void PatchFill(int row, Patch* patch); 46 46 /*}}}*/ 47 /*PentaP1ElementResult management: {{{ 1*/47 /*PentaP1ElementResult management: {{{*/ 48 48 int InstanceEnum(); 49 49 void GetVectorFromResults(Vector* vector,int* doflist,int* connectivitylist,int numdofs); -
TabularUnified issm/trunk-jpl/src/c/objects/ElementResults/TriaP1ElementResult.cpp ¶
r12014 r12365 19 19 20 20 /*TriaP1ElementResult constructors and destructor*/ 21 /*FUNCTION TriaP1ElementResult::TriaP1ElementResult(){{{ 1*/21 /*FUNCTION TriaP1ElementResult::TriaP1ElementResult(){{{*/ 22 22 TriaP1ElementResult::TriaP1ElementResult(){ 23 23 return; 24 24 } 25 25 /*}}}*/ 26 /*FUNCTION TriaP1ElementResult::TriaP1ElementResult(int in_enum_type,double* in_values,int in_step, double in_time){{{ 1*/26 /*FUNCTION TriaP1ElementResult::TriaP1ElementResult(int in_enum_type,double* in_values,int in_step, double in_time){{{*/ 27 27 TriaP1ElementResult::TriaP1ElementResult(int in_enum_type,double* in_values,int in_step, double in_time){ 28 28 … … 35 35 } 36 36 /*}}}*/ 37 /*FUNCTION TriaP1ElementResult::~TriaP1ElementResult(){{{ 1*/37 /*FUNCTION TriaP1ElementResult::~TriaP1ElementResult(){{{*/ 38 38 TriaP1ElementResult::~TriaP1ElementResult(){ 39 39 return; … … 42 42 43 43 /*Object virtual functions definitions:*/ 44 /*FUNCTION TriaP1ElementResult::Echo {{{ 1*/44 /*FUNCTION TriaP1ElementResult::Echo {{{*/ 45 45 void TriaP1ElementResult::Echo(void){ 46 46 this->DeepEcho(); 47 47 } 48 48 /*}}}*/ 49 /*FUNCTION TriaP1ElementResult::DeepEcho{{{ 1*/49 /*FUNCTION TriaP1ElementResult::DeepEcho{{{*/ 50 50 void TriaP1ElementResult::DeepEcho(void){ 51 51 … … 57 57 } 58 58 /*}}}*/ 59 /*FUNCTION TriaP1ElementResult::Id{{{ 1*/59 /*FUNCTION TriaP1ElementResult::Id{{{*/ 60 60 int TriaP1ElementResult::Id(void){ return -1; } 61 61 /*}}}*/ 62 /*FUNCTION TriaP1ElementResult::MyRank{{{ 1*/62 /*FUNCTION TriaP1ElementResult::MyRank{{{*/ 63 63 int TriaP1ElementResult::MyRank(void){ 64 64 extern int my_rank; … … 66 66 } 67 67 /*}}}*/ 68 /*FUNCTION TriaP1ElementResult::ObjectEnum{{{ 1*/68 /*FUNCTION TriaP1ElementResult::ObjectEnum{{{*/ 69 69 int TriaP1ElementResult::ObjectEnum(void){ 70 70 … … 73 73 } 74 74 /*}}}*/ 75 /*FUNCTION TriaP1ElementResult::copy{{{ 1*/75 /*FUNCTION TriaP1ElementResult::copy{{{*/ 76 76 Object* TriaP1ElementResult::copy() { 77 77 … … 82 82 83 83 /*ElementResult management*/ 84 /*FUNCTION TriaP1ElementResult::InstanceEnum{{{ 1*/84 /*FUNCTION TriaP1ElementResult::InstanceEnum{{{*/ 85 85 int TriaP1ElementResult::InstanceEnum(void){ 86 86 … … 89 89 } 90 90 /*}}}*/ 91 /*FUNCTION TriaP1ElementResult::SpawnTriaElementResult{{{ 1*/91 /*FUNCTION TriaP1ElementResult::SpawnTriaElementResult{{{*/ 92 92 ElementResult* TriaP1ElementResult::SpawnTriaElementResult(int* indices){ 93 93 … … 103 103 } 104 104 /*}}}*/ 105 /*FUNCTION TriaP1ElementResult::ProcessUnits{{{ 1*/105 /*FUNCTION TriaP1ElementResult::ProcessUnits{{{*/ 106 106 void TriaP1ElementResult::ProcessUnits(Parameters* parameters){ 107 107 … … 110 110 } 111 111 /*}}}*/ 112 /*FUNCTION TriaP1ElementResult::NumberOfNodalValues{{{ 1*/112 /*FUNCTION TriaP1ElementResult::NumberOfNodalValues{{{*/ 113 113 int TriaP1ElementResult::NumberOfNodalValues(void){ 114 114 return 3; 115 115 } 116 116 /*}}}*/ 117 /*FUNCTION TriaP1ElementResult::PatchFill{{{ 1*/117 /*FUNCTION TriaP1ElementResult::PatchFill{{{*/ 118 118 void TriaP1ElementResult::PatchFill(int row, Patch* patch){ 119 119 … … 125 125 } 126 126 /*}}}*/ 127 /*FUNCTION TriaP1ElementResult::GetVectorFromResults{{{ 1*/127 /*FUNCTION TriaP1ElementResult::GetVectorFromResults{{{*/ 128 128 void TriaP1ElementResult::GetVectorFromResults(Vector* vector,int* doflist,int* connectivitylist,int numdofs){ 129 129 … … 135 135 136 136 } /*}}}*/ 137 /*FUNCTION TriaP1ElementResult::GetElementVectorFromResults{{{ 1*/137 /*FUNCTION TriaP1ElementResult::GetElementVectorFromResults{{{*/ 138 138 void TriaP1ElementResult::GetElementVectorFromResults(Vector* vector,int dof){ 139 139 _error_("Result %s is a TriaP1ElementResult and should not write vector of size numberofelemenrs",EnumToStringx(enum_type)); -
TabularUnified issm/trunk-jpl/src/c/objects/ElementResults/TriaP1ElementResult.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #include "../Inputs/Input.h" 12 12 #include "../../include/include.h" … … 23 23 public: 24 24 25 /*TriaP1ElementResult constructors, destructors: {{{ 1*/25 /*TriaP1ElementResult constructors, destructors: {{{*/ 26 26 TriaP1ElementResult(); 27 27 TriaP1ElementResult(int enum_type,double* values,int step,double time); 28 28 ~TriaP1ElementResult(); 29 29 /*}}}*/ 30 /*Object virtual functions definitions:{{{ 1*/30 /*Object virtual functions definitions:{{{ */ 31 31 void Echo(); 32 32 void DeepEcho(); … … 36 36 Object* copy(); 37 37 /*}}}*/ 38 /*ElementResult virtual functions definitions: {{{ 1*/38 /*ElementResult virtual functions definitions: {{{*/ 39 39 ElementResult* SpawnTriaElementResult(int* indices); 40 40 double GetTime(void){return time;}; … … 44 44 void PatchFill(int row, Patch* patch); 45 45 /*}}}*/ 46 /*TriaP1ElementResult management: {{{ 1*/46 /*TriaP1ElementResult management: {{{*/ 47 47 int InstanceEnum(); 48 48 void GetVectorFromResults(Vector* vector,int* doflist,int* connectivitylist,int numdofs); -
TabularUnified issm/trunk-jpl/src/c/objects/Elements/Element.h ¶
r11994 r12365 10 10 11 11 /*Headers:*/ 12 /*{{{ 1*/12 /*{{{*/ 13 13 #include "../Object.h" 14 14 -
TabularUnified issm/trunk-jpl/src/c/objects/Elements/Penta.cpp ¶
r12326 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 24 24 25 25 /*Constructors/destructor/copy*/ 26 /*FUNCTION Penta::Penta(){{{ 1*/26 /*FUNCTION Penta::Penta(){{{*/ 27 27 Penta::Penta(){ 28 28 … … 39 39 } 40 40 /*}}}*/ 41 /*FUNCTION Penta::~Penta(){{{ 1*/41 /*FUNCTION Penta::~Penta(){{{*/ 42 42 Penta::~Penta(){ 43 43 delete inputs; … … 46 46 } 47 47 /*}}}*/ 48 /*FUNCTION Penta::Penta(int id, int index, IoModel* iomodel,int nummodels) {{{ 1*/48 /*FUNCTION Penta::Penta(int id, int index, IoModel* iomodel,int nummodels) {{{*/ 49 49 Penta::Penta(int penta_id, int penta_sid, int index, IoModel* iomodel,int nummodels) 50 50 :PentaRef(nummodels) … … 56 56 57 57 /*Checks in debugging mode*/ 58 /*{{{ 2*/58 /*{{{*/ 59 59 _assert_(iomodel->Data(MeshUpperelementsEnum)); 60 60 _assert_(iomodel->Data(MeshLowerelementsEnum)); … … 90 90 } 91 91 /*}}}*/ 92 /*FUNCTION Penta::copy {{{ 1*/92 /*FUNCTION Penta::copy {{{*/ 93 93 Object* Penta::copy() { 94 94 … … 144 144 145 145 /*Other*/ 146 /*FUNCTION Penta::AverageOntoPartition {{{ 1*/146 /*FUNCTION Penta::AverageOntoPartition {{{*/ 147 147 void Penta::AverageOntoPartition(Vector* partition_contributions,Vector* partition_areas,double* vertex_response,double* qmu_part){ 148 148 _error_("Not supported yet!"); 149 149 } 150 150 /*}}}*/ 151 /*FUNCTION Penta::BedNormal {{{ 1*/151 /*FUNCTION Penta::BedNormal {{{*/ 152 152 void Penta::BedNormal(double* bed_normal, double xyz_list[3][3]){ 153 153 … … 173 173 } 174 174 /*}}}*/ 175 /*FUNCTION Penta::BasalFrictionCreateInput {{{ 1*/175 /*FUNCTION Penta::BasalFrictionCreateInput {{{*/ 176 176 void Penta::BasalFrictionCreateInput(void){ 177 177 … … 225 225 } 226 226 /*}}}*/ 227 /*FUNCTION Penta::ComputeBasalStress {{{ 1*/227 /*FUNCTION Penta::ComputeBasalStress {{{*/ 228 228 void Penta::ComputeBasalStress(Vector* sigma_b){ 229 229 … … 315 315 } 316 316 /*}}}*/ 317 /*FUNCTION Penta::ComputeStrainRate {{{ 1*/317 /*FUNCTION Penta::ComputeStrainRate {{{*/ 318 318 void Penta::ComputeStrainRate(Vector* eps){ 319 319 … … 322 322 } 323 323 /*}}}*/ 324 /*FUNCTION Penta::ComputeStressTensor {{{ 1*/324 /*FUNCTION Penta::ComputeStressTensor {{{*/ 325 325 void Penta::ComputeStressTensor(){ 326 326 … … 377 377 } 378 378 /*}}}*/ 379 /*FUNCTION Penta::Configure {{{ 1*/379 /*FUNCTION Penta::Configure {{{*/ 380 380 void Penta::Configure(Elements* elementsin, Loads* loadsin, DataSet* nodesin, Materials* materialsin, Parameters* parametersin){ 381 381 … … 409 409 } 410 410 /*}}}*/ 411 /*FUNCTION Penta::CreateKMatrix {{{ 1*/411 /*FUNCTION Penta::CreateKMatrix {{{*/ 412 412 void Penta::CreateKMatrix(Matrix* Kff, Matrix* Kfs,Vector* df){ 413 413 … … 418 418 parameters->FindParam(&analysis_type,AnalysisTypeEnum); 419 419 420 /*Checks in debugging {{{ 2*/420 /*Checks in debugging {{{*/ 421 421 _assert_(this->nodes && this->matice && this->matpar && this->verticalneighbors && this->parameters && this->inputs); 422 422 /*}}}*/ … … 479 479 } 480 480 /*}}}*/ 481 /*FUNCTION Penta::CreateKMatrixPrognostic {{{ 1*/481 /*FUNCTION Penta::CreateKMatrixPrognostic {{{*/ 482 482 ElementMatrix* Penta::CreateKMatrixPrognostic(void){ 483 483 … … 500 500 } 501 501 /*}}}*/ 502 /*FUNCTION Penta::CreateKMatrixSlope {{{ 1*/502 /*FUNCTION Penta::CreateKMatrixSlope {{{*/ 503 503 ElementMatrix* Penta::CreateKMatrixSlope(void){ 504 504 … … 513 513 } 514 514 /*}}}*/ 515 /*FUNCTION Penta::CreatePVector {{{ 1*/515 /*FUNCTION Penta::CreatePVector {{{*/ 516 516 void Penta::CreatePVector(Vector* pf){ 517 517 … … 521 521 parameters->FindParam(&analysis_type,AnalysisTypeEnum); 522 522 523 /*if debugging mode, check that all pointers exist {{{ 2*/523 /*if debugging mode, check that all pointers exist {{{*/ 524 524 _assert_(this->nodes && this->matice && this->matpar && this->verticalneighbors && this->parameters && this->inputs); 525 525 /*}}}*/ … … 579 579 } 580 580 /*}}}*/ 581 /*FUNCTION Penta::CreatePVectorPrognostic {{{ 1*/581 /*FUNCTION Penta::CreatePVectorPrognostic {{{*/ 582 582 ElementVector* Penta::CreatePVectorPrognostic(void){ 583 583 … … 601 601 } 602 602 /*}}}*/ 603 /*FUNCTION Penta::CreatePVectorSlope {{{ 1*/603 /*FUNCTION Penta::CreatePVectorSlope {{{*/ 604 604 ElementVector* Penta::CreatePVectorSlope(void){ 605 605 … … 615 615 } 616 616 /*}}}*/ 617 /*FUNCTION Penta::CreateJacobianMatrix{{{ 1*/617 /*FUNCTION Penta::CreateJacobianMatrix{{{*/ 618 618 void Penta::CreateJacobianMatrix(Matrix* Jff){ 619 619 … … 623 623 parameters->FindParam(&analysis_type,AnalysisTypeEnum); 624 624 625 /*Checks in debugging {{{ 2*/625 /*Checks in debugging {{{*/ 626 626 _assert_(this->nodes && this->matice && this->matpar && this->verticalneighbors && this->parameters && this->inputs); 627 627 /*}}}*/ … … 648 648 } 649 649 /*}}}*/ 650 /*FUNCTION Penta::DeepEcho{{{ 1*/650 /*FUNCTION Penta::DeepEcho{{{*/ 651 651 void Penta::DeepEcho(void){ 652 652 … … 676 676 } 677 677 /*}}}*/ 678 /*FUNCTION Penta::DeleteResults {{{ 1*/678 /*FUNCTION Penta::DeleteResults {{{*/ 679 679 void Penta::DeleteResults(void){ 680 680 … … 685 685 } 686 686 /*}}}*/ 687 /*FUNCTION Penta::Echo{{{ 1*/687 /*FUNCTION Penta::Echo{{{*/ 688 688 689 689 void Penta::Echo(void){ … … 691 691 } 692 692 /*}}}*/ 693 /*FUNCTION Penta::ObjectEnum{{{ 1*/693 /*FUNCTION Penta::ObjectEnum{{{*/ 694 694 int Penta::ObjectEnum(void){ 695 695 … … 698 698 } 699 699 /*}}}*/ 700 /*FUNCTION Penta::GetBasalElement{{{ 1*/700 /*FUNCTION Penta::GetBasalElement{{{*/ 701 701 Penta* Penta::GetBasalElement(void){ 702 702 … … 719 719 } 720 720 /*}}}*/ 721 /*FUNCTION Penta::GetDofList {{{ 1*/721 /*FUNCTION Penta::GetDofList {{{*/ 722 722 void Penta::GetDofList(int** pdoflist,int approximation_enum,int setenum){ 723 723 … … 743 743 } 744 744 /*}}}*/ 745 /*FUNCTION Penta::GetDofList1 {{{ 1*/745 /*FUNCTION Penta::GetDofList1 {{{*/ 746 746 void Penta::GetDofList1(int* doflist){ 747 747 … … 751 751 } 752 752 /*}}}*/ 753 /*FUNCTION Penta::GetConnectivityList {{{ 1*/753 /*FUNCTION Penta::GetConnectivityList {{{*/ 754 754 void Penta::GetConnectivityList(int* connectivity){ 755 755 for(int i=0;i<NUMVERTICES;i++) connectivity[i]=nodes[i]->GetConnectivity(); 756 756 } 757 757 /*}}}*/ 758 /*FUNCTION Penta::GetElementType {{{ 1*/758 /*FUNCTION Penta::GetElementType {{{*/ 759 759 int Penta::GetElementType(){ 760 760 … … 763 763 } 764 764 /*}}}*/ 765 /*FUNCTION Penta::GetElementSizes{{{ 1*/765 /*FUNCTION Penta::GetElementSizes{{{*/ 766 766 void Penta::GetElementSizes(double* hx,double* hy,double* hz){ 767 767 … … 790 790 } 791 791 /*}}}*/ 792 /*FUNCTION Penta::GetHorizontalNeighboorSids {{{ 1*/792 /*FUNCTION Penta::GetHorizontalNeighboorSids {{{*/ 793 793 int* Penta::GetHorizontalNeighboorSids(){ 794 794 … … 798 798 } 799 799 /*}}}*/ 800 /*FUNCTION Penta::GetLowerElement{{{ 1*/800 /*FUNCTION Penta::GetLowerElement{{{*/ 801 801 Penta* Penta::GetLowerElement(void){ 802 802 … … 808 808 } 809 809 /*}}}*/ 810 /*FUNCTION Penta::GetNodeIndex {{{ 1*/810 /*FUNCTION Penta::GetNodeIndex {{{*/ 811 811 int Penta::GetNodeIndex(Node* node){ 812 812 … … 820 820 } 821 821 /*}}}*/ 822 /*FUNCTION Penta::GetInputListOnVertices(double* pvalue,int enumtype) {{{ 1*/822 /*FUNCTION Penta::GetInputListOnVertices(double* pvalue,int enumtype) {{{*/ 823 823 void Penta::GetInputListOnVertices(double* pvalue,int enumtype){ 824 824 … … 845 845 } 846 846 /*}}}*/ 847 /*FUNCTION Penta::GetInputListOnVertices(double* pvalue,int enumtype,double defaultvalue) {{{ 1*/847 /*FUNCTION Penta::GetInputListOnVertices(double* pvalue,int enumtype,double defaultvalue) {{{*/ 848 848 void Penta::GetInputListOnVertices(double* pvalue,int enumtype,double defaultvalue){ 849 849 … … 874 874 } 875 875 /*}}}*/ 876 /*FUNCTION Penta::GetInputValue(double* pvalue,Node* node,int enumtype) {{{ 1*/876 /*FUNCTION Penta::GetInputValue(double* pvalue,Node* node,int enumtype) {{{*/ 877 877 void Penta::GetInputValue(double* pvalue,Node* node,int enumtype){ 878 878 … … 887 887 } 888 888 /*}}}*/ 889 /*FUNCTION Penta::GetPhi {{{ 1*/889 /*FUNCTION Penta::GetPhi {{{*/ 890 890 void Penta::GetPhi(double* phi, double* epsilon, double viscosity){ 891 891 /*Compute deformational heating from epsilon and viscosity */ … … 925 925 } 926 926 /*}}}*/ 927 /*FUNCTION Penta::GetSidList{{{ 1*/927 /*FUNCTION Penta::GetSidList{{{*/ 928 928 void Penta::GetSidList(int* sidlist){ 929 929 … … 933 933 } 934 934 /*}}}*/ 935 /*FUNCTION Penta::GetSolutionFromInputs{{{ 1*/935 /*FUNCTION Penta::GetSolutionFromInputs{{{*/ 936 936 void Penta::GetSolutionFromInputs(Vector* solution){ 937 937 … … 977 977 } 978 978 /*}}}*/ 979 /*FUNCTION Penta::GetStabilizationParameter {{{ 1*/979 /*FUNCTION Penta::GetStabilizationParameter {{{*/ 980 980 double Penta::GetStabilizationParameter(double u, double v, double w, double diameter, double kappa){ 981 981 /*Compute stabilization parameter*/ … … 995 995 } 996 996 /*}}}*/ 997 /*FUNCTION Penta::GetStrainRate3dPattyn{{{ 1*/997 /*FUNCTION Penta::GetStrainRate3dPattyn{{{*/ 998 998 void Penta::GetStrainRate3dPattyn(double* epsilon,double* xyz_list, GaussPenta* gauss, Input* vx_input, Input* vy_input){ 999 999 /*Compute the 3d Blatter/PattynStrain Rate (5 components): … … 1024 1024 } 1025 1025 /*}}}*/ 1026 /*FUNCTION Penta::GetStrainRate3d{{{ 1*/1026 /*FUNCTION Penta::GetStrainRate3d{{{*/ 1027 1027 void Penta::GetStrainRate3d(double* epsilon,double* xyz_list, GaussPenta* gauss, Input* vx_input, Input* vy_input, Input* vz_input){ 1028 1028 /*Compute the 3d Strain Rate (6 components): … … 1050 1050 } 1051 1051 /*}}}*/ 1052 /*FUNCTION Penta::GetUpperElement{{{ 1*/1052 /*FUNCTION Penta::GetUpperElement{{{*/ 1053 1053 Penta* Penta::GetUpperElement(void){ 1054 1054 … … 1060 1060 } 1061 1061 /*}}}*/ 1062 /*FUNCTION Penta::GetVectorFromInputs{{{ 1*/1062 /*FUNCTION Penta::GetVectorFromInputs{{{*/ 1063 1063 void Penta::GetVectorFromInputs(Vector* vector,int input_enum){ 1064 1064 … … 1079 1079 } 1080 1080 /*}}}*/ 1081 /*FUNCTION Penta::GetVectorFromResults{{{ 1*/1081 /*FUNCTION Penta::GetVectorFromResults{{{*/ 1082 1082 void Penta::GetVectorFromResults(Vector* vector,int offset,int interp){ 1083 1083 … … 1099 1099 } 1100 1100 /*}}}*/ 1101 /*FUNCTION Penta::GetZcoord {{{ 1*/1101 /*FUNCTION Penta::GetZcoord {{{*/ 1102 1102 double Penta::GetZcoord(GaussPenta* gauss){ 1103 1103 … … 1114 1114 } 1115 1115 /*}}}*/ 1116 /*FUNCTION Penta::Sid {{{ 1*/1116 /*FUNCTION Penta::Sid {{{*/ 1117 1117 int Penta::Sid(){ 1118 1118 … … 1121 1121 } 1122 1122 /*}}}*/ 1123 /*FUNCTION Penta::Id {{{ 1*/1123 /*FUNCTION Penta::Id {{{*/ 1124 1124 int Penta::Id(void){ 1125 1125 return id; 1126 1126 } 1127 1127 /*}}}*/ 1128 /*FUNCTION Penta::InputArtificialNoise{{{ 1*/1128 /*FUNCTION Penta::InputArtificialNoise{{{*/ 1129 1129 void Penta::InputArtificialNoise(int enum_type,double min,double max){ 1130 1130 … … 1139 1139 } 1140 1140 /*}}}*/ 1141 /*FUNCTION Penta::InputConvergence{{{ 1*/1141 /*FUNCTION Penta::InputConvergence{{{*/ 1142 1142 bool Penta::InputConvergence(double* eps, int* enums,int num_enums,int* criterionenums,double* criterionvalues,int num_criterionenums){ 1143 1143 … … 1171 1171 } 1172 1172 /*}}}*/ 1173 /*FUNCTION Penta::InputCreate(double scalar,int enum,int code);{{{ 1*/1173 /*FUNCTION Penta::InputCreate(double scalar,int enum,int code);{{{*/ 1174 1174 void Penta::InputCreate(double scalar,int name,int code){ 1175 1175 … … 1190 1190 } 1191 1191 /*}}}*/ 1192 /*FUNCTION Penta::InputCreate(double* vector,int index,IoModel* iomodel,int M,int N,int vector_type,int vector_enum,int code){{{ 1*/1192 /*FUNCTION Penta::InputCreate(double* vector,int index,IoModel* iomodel,int M,int N,int vector_type,int vector_enum,int code){{{*/ 1193 1193 void Penta::InputCreate(double* vector, int index,IoModel* iomodel,int M,int N,int vector_type,int vector_enum,int code){//index into elements 1194 1194 … … 1280 1280 } 1281 1281 /*}}}*/ 1282 /*FUNCTION Penta::InputDepthAverageAtBase{{{ 1*/1282 /*FUNCTION Penta::InputDepthAverageAtBase{{{*/ 1283 1283 void Penta::InputDepthAverageAtBase(int enum_type,int average_enum_type,int object_enum){ 1284 1284 … … 1377 1377 } 1378 1378 /*}}}*/ 1379 /*FUNCTION Penta::InputDuplicate{{{ 1*/1379 /*FUNCTION Penta::InputDuplicate{{{*/ 1380 1380 void Penta::InputDuplicate(int original_enum,int new_enum){ 1381 1381 … … 1385 1385 } 1386 1386 /*}}}*/ 1387 /*FUNCTION Penta::InputExtrude {{{ 1*/1387 /*FUNCTION Penta::InputExtrude {{{*/ 1388 1388 void Penta::InputExtrude(int enum_type,int object_type){ 1389 1389 … … 1457 1457 } 1458 1458 /*}}}*/ 1459 /*FUNCTION Penta::InputScale{{{ 1*/1459 /*FUNCTION Penta::InputScale{{{*/ 1460 1460 void Penta::InputScale(int enum_type,double scale_factor){ 1461 1461 … … 1470 1470 } 1471 1471 /*}}}*/ 1472 /*FUNCTION Penta::InputToResult{{{ 1*/1472 /*FUNCTION Penta::InputToResult{{{*/ 1473 1473 void Penta::InputToResult(int enum_type,int step,double time){ 1474 1474 … … 1495 1495 } 1496 1496 /*}}}*/ 1497 /*FUNCTION Penta::InputUpdateFromConstant(bool value, int name);{{{ 1*/1497 /*FUNCTION Penta::InputUpdateFromConstant(bool value, int name);{{{*/ 1498 1498 void Penta::InputUpdateFromConstant(bool constant, int name){ 1499 1499 … … 1505 1505 } 1506 1506 /*}}}*/ 1507 /*FUNCTION Penta::InputUpdateFromConstant(double value, int name);{{{ 1*/1507 /*FUNCTION Penta::InputUpdateFromConstant(double value, int name);{{{*/ 1508 1508 void Penta::InputUpdateFromConstant(double constant, int name){ 1509 1509 /*Check that name is an element input*/ … … 1514 1514 } 1515 1515 /*}}}*/ 1516 /*FUNCTION Penta::InputUpdateFromConstant(int value, int name);{{{ 1*/1516 /*FUNCTION Penta::InputUpdateFromConstant(int value, int name);{{{*/ 1517 1517 void Penta::InputUpdateFromConstant(int constant, int name){ 1518 1518 /*Check that name is an element input*/ … … 1523 1523 } 1524 1524 /*}}}*/ 1525 /*FUNCTION Penta::InputUpdateFromIoModel {{{ 1*/1525 /*FUNCTION Penta::InputUpdateFromIoModel {{{*/ 1526 1526 void Penta::InputUpdateFromIoModel(int index,IoModel* iomodel){ 1527 1527 … … 1545 1545 1546 1546 /*Checks if debuging*/ 1547 /*{{{ 2*/1547 /*{{{*/ 1548 1548 _assert_(iomodel->Data(MeshElementsEnum)); 1549 1549 /*}}}*/ … … 1646 1646 } 1647 1647 /*}}}*/ 1648 /*FUNCTION Penta::InputUpdateFromSolution {{{ 1*/1648 /*FUNCTION Penta::InputUpdateFromSolution {{{*/ 1649 1649 void Penta::InputUpdateFromSolution(double* solution){ 1650 1650 … … 1715 1715 } 1716 1716 /*}}}*/ 1717 /*FUNCTION Penta::InputUpdateFromSolutionPrognostic{{{ 1*/1717 /*FUNCTION Penta::InputUpdateFromSolutionPrognostic{{{*/ 1718 1718 void Penta::InputUpdateFromSolutionPrognostic(double* solution){ 1719 1719 … … 1798 1798 } 1799 1799 /*}}}*/ 1800 /*FUNCTION Penta::InputUpdateFromSolutionOneDof{{{ 1*/1800 /*FUNCTION Penta::InputUpdateFromSolutionOneDof{{{*/ 1801 1801 void Penta::InputUpdateFromSolutionOneDof(double* solution,int enum_type){ 1802 1802 … … 1822 1822 } 1823 1823 /*}}}*/ 1824 /*FUNCTION Penta::InputUpdateFromSolutionOneDofCollpased{{{ 1*/1824 /*FUNCTION Penta::InputUpdateFromSolutionOneDofCollpased{{{*/ 1825 1825 void Penta::InputUpdateFromSolutionOneDofCollapsed(double* solution,int enum_type){ 1826 1826 … … 1862 1862 } 1863 1863 /*}}}*/ 1864 /*FUNCTION Penta::InputUpdateFromVector(double* vector, int name, int type);{{{ 1*/1864 /*FUNCTION Penta::InputUpdateFromVector(double* vector, int name, int type);{{{*/ 1865 1865 void Penta::InputUpdateFromVector(double* vector, int name, int type){ 1866 1866 … … 1892 1892 } 1893 1893 /*}}}*/ 1894 /*FUNCTION Penta::InputUpdateFromVector(int* vector, int name, int type);{{{ 1*/1894 /*FUNCTION Penta::InputUpdateFromVector(int* vector, int name, int type);{{{*/ 1895 1895 void Penta::InputUpdateFromVector(int* vector, int name, int type){ 1896 1896 _error_(" not supported yet!"); 1897 1897 } 1898 1898 /*}}}*/ 1899 /*FUNCTION Penta::InputUpdateFromVector(bool* vector, int name, int type);{{{ 1*/1899 /*FUNCTION Penta::InputUpdateFromVector(bool* vector, int name, int type);{{{*/ 1900 1900 void Penta::InputUpdateFromVector(bool* vector, int name, int type){ 1901 1901 _error_(" not supported yet!"); 1902 1902 } 1903 1903 /*}}}*/ 1904 /*FUNCTION Penta::IsOnBed{{{ 1*/1904 /*FUNCTION Penta::IsOnBed{{{*/ 1905 1905 bool Penta::IsOnBed(void){ 1906 1906 … … 1910 1910 } 1911 1911 /*}}}*/ 1912 /*FUNCTION Penta::IsInput{{{ 1*/1912 /*FUNCTION Penta::IsInput{{{*/ 1913 1913 bool Penta::IsInput(int name){ 1914 1914 if ( … … 1954 1954 } 1955 1955 /*}}}*/ 1956 /*FUNCTION Penta::IsFloating{{{ 1*/1956 /*FUNCTION Penta::IsFloating{{{*/ 1957 1957 bool Penta::IsFloating(){ 1958 1958 … … 1962 1962 } 1963 1963 /*}}}*/ 1964 /*FUNCTION Penta::IsNodeOnShelf {{{ 1*/1964 /*FUNCTION Penta::IsNodeOnShelf {{{*/ 1965 1965 bool Penta::IsNodeOnShelf(){ 1966 1966 … … 1977 1977 } 1978 1978 /*}}}*/ 1979 /*FUNCTION Penta::IsNodeOnShelfFromFlags {{{ 1*/1979 /*FUNCTION Penta::IsNodeOnShelfFromFlags {{{*/ 1980 1980 bool Penta::IsNodeOnShelfFromFlags(double* flags){ 1981 1981 … … 1992 1992 } 1993 1993 /*}}}*/ 1994 /*FUNCTION Penta::IsOnSurface{{{ 1*/1994 /*FUNCTION Penta::IsOnSurface{{{*/ 1995 1995 bool Penta::IsOnSurface(void){ 1996 1996 … … 2000 2000 } 2001 2001 /*}}}*/ 2002 /*FUNCTION Penta::IsOnWater {{{ 1*/2002 /*FUNCTION Penta::IsOnWater {{{*/ 2003 2003 bool Penta::IsOnWater(){ 2004 2004 … … 2059 2059 2060 2060 }/*}}}*/ 2061 /*FUNCTION Penta::MigrateGroundingLine{{{ 1*/2061 /*FUNCTION Penta::MigrateGroundingLine{{{*/ 2062 2062 void Penta::MigrateGroundingLine(double* old_floating_ice,double* sheet_ungrounding){ 2063 2063 … … 2142 2142 } 2143 2143 /*}}}*/ 2144 /*FUNCTION Penta::MinEdgeLength{{{ 1*/2144 /*FUNCTION Penta::MinEdgeLength{{{*/ 2145 2145 double Penta::MinEdgeLength(double xyz_list[6][3]){ 2146 2146 /*Return the minimum lenght of the nine egdes of the penta*/ … … 2164 2164 } 2165 2165 /*}}}*/ 2166 /*FUNCTION Penta::MyRank {{{ 1*/2166 /*FUNCTION Penta::MyRank {{{*/ 2167 2167 int Penta::MyRank(void){ 2168 2168 extern int my_rank; … … 2170 2170 } 2171 2171 /*}}}*/ 2172 /*FUNCTION Penta::NodalValue {{{ 1*/2172 /*FUNCTION Penta::NodalValue {{{*/ 2173 2173 int Penta::NodalValue(double* pvalue, int index, int natureofdataenum,bool process_units){ 2174 2174 … … 2201 2201 } 2202 2202 /*}}}*/ 2203 /*FUNCTION Penta::PatchFill{{{ 1*/2203 /*FUNCTION Penta::PatchFill{{{*/ 2204 2204 void Penta::PatchFill(int* pcount, Patch* patch){ 2205 2205 … … 2228 2228 *pcount=count; 2229 2229 }/*}}}*/ 2230 /*FUNCTION Penta::PatchSize{{{ 1*/2230 /*FUNCTION Penta::PatchSize{{{*/ 2231 2231 void Penta::PatchSize(int* pnumrows, int* pnumvertices,int* pnumnodes){ 2232 2232 … … 2252 2252 } 2253 2253 /*}}}*/ 2254 /*FUNCTION Penta::PositiveDegreeDay{{{ 1*/2254 /*FUNCTION Penta::PositiveDegreeDay{{{*/ 2255 2255 void Penta::PositiveDegreeDay(double* pdds,double* pds,double signorm){ 2256 2256 … … 2477 2477 } 2478 2478 /*}}}*/ 2479 /*FUNCTION Penta::PotentialSheetUngrounding{{{ 1*/2479 /*FUNCTION Penta::PotentialSheetUngrounding{{{*/ 2480 2480 void Penta::PotentialSheetUngrounding(Vector* potential_sheet_ungrounding){ 2481 2481 … … 2506 2506 } 2507 2507 /*}}}*/ 2508 /*FUNCTION Penta::ProcessResultsUnits{{{ 1*/2508 /*FUNCTION Penta::ProcessResultsUnits{{{*/ 2509 2509 void Penta::ProcessResultsUnits(void){ 2510 2510 … … 2517 2517 } 2518 2518 /*}}}*/ 2519 /*FUNCTION Penta::ReduceMatrixStokes {{{ 1*/2519 /*FUNCTION Penta::ReduceMatrixStokes {{{*/ 2520 2520 void Penta::ReduceMatrixStokes(double* Ke_reduced, double* Ke_temp){ 2521 2521 … … 2559 2559 } 2560 2560 /*}}}*/ 2561 /*FUNCTION Penta::ReduceVectorStokes {{{ 1*/2561 /*FUNCTION Penta::ReduceVectorStokes {{{*/ 2562 2562 void Penta::ReduceVectorStokes(double* Pe_reduced, double* Ke_temp, double* Pe_temp){ 2563 2563 … … 2594 2594 } 2595 2595 /*}}}*/ 2596 /*FUNCTION Penta::RequestedOutput{{{ 1*/2596 /*FUNCTION Penta::RequestedOutput{{{*/ 2597 2597 void Penta::RequestedOutput(int output_enum,int step,double time){ 2598 2598 … … 2645 2645 } 2646 2646 /*}}}*/ 2647 /*FUNCTION Penta::ResetCoordinateSystem{{{ 1*/2647 /*FUNCTION Penta::ResetCoordinateSystem{{{*/ 2648 2648 void Penta::ResetCoordinateSystem(void){ 2649 2649 … … 2673 2673 } 2674 2674 /*}}}*/ 2675 /*FUNCTION Penta::SetClone {{{ 1*/2675 /*FUNCTION Penta::SetClone {{{*/ 2676 2676 void Penta::SetClone(int* minranks){ 2677 2677 2678 2678 _error_("not implemented yet"); 2679 2679 } 2680 /*}}} 1*/2681 /*FUNCTION Penta::SetCurrentConfiguration {{{ 1*/2680 /*}}}*/ 2681 /*FUNCTION Penta::SetCurrentConfiguration {{{*/ 2682 2682 void Penta::SetCurrentConfiguration(Elements* elementsin, Loads* loadsin, DataSet* nodesin, Materials* materialsin, Parameters* parametersin){ 2683 2683 … … 2695 2695 } 2696 2696 /*}}}*/ 2697 /*FUNCTION Penta::SpawnTria {{{ 1*/2697 /*FUNCTION Penta::SpawnTria {{{*/ 2698 2698 Tria* Penta::SpawnTria(int g0, int g1, int g2){ 2699 2699 … … 2738 2738 } 2739 2739 /*}}}*/ 2740 /*FUNCTION Penta::SurfaceArea {{{ 1*/2740 /*FUNCTION Penta::SurfaceArea {{{*/ 2741 2741 double Penta::SurfaceArea(void){ 2742 2742 … … 2775 2775 } 2776 2776 /*}}}*/ 2777 /*FUNCTION Penta::SurfaceNormal {{{ 1*/2777 /*FUNCTION Penta::SurfaceNormal {{{*/ 2778 2778 void Penta::SurfaceNormal(double* surface_normal, double xyz_list[3][3]){ 2779 2779 … … 2799 2799 } 2800 2800 /*}}}*/ 2801 /*FUNCTION Penta::TimeAdapt{{{ 1*/2801 /*FUNCTION Penta::TimeAdapt{{{*/ 2802 2802 double Penta::TimeAdapt(void){ 2803 2803 … … 2843 2843 return dt; 2844 2844 } 2845 /*FUNCTION Penta::Update(int index,IoModel* iomodel,int analysis_counter,int analysis_type) {{{ 1*/2845 /*FUNCTION Penta::Update(int index,IoModel* iomodel,int analysis_counter,int analysis_type) {{{*/ 2846 2846 void Penta::Update(int index,IoModel* iomodel,int analysis_counter,int analysis_type){ 2847 2847 … … 2870 2870 2871 2871 /*Checks if debuging*/ 2872 /*{{{ 2*/2872 /*{{{*/ 2873 2873 _assert_(iomodel->Data(MeshElementsEnum)); 2874 2874 /*}}}*/ … … 2997 2997 } 2998 2998 /*}}}*/ 2999 /*FUNCTION Penta::UpdatePotentialSheetUngrounding{{{ 1*/2999 /*FUNCTION Penta::UpdatePotentialSheetUngrounding{{{*/ 3000 3000 int Penta::UpdatePotentialSheetUngrounding(double* vertices_potentially_ungrounding,Vector* vec_nodes_on_iceshelf,double* nodes_on_iceshelf){ 3001 3001 … … 3017 3017 } 3018 3018 /*}}}*/ 3019 /*FUNCTION Penta::ViscousHeatingCreateInput {{{ 1*/3019 /*FUNCTION Penta::ViscousHeatingCreateInput {{{*/ 3020 3020 void Penta::ViscousHeatingCreateInput(void){ 3021 3021 … … 3065 3065 } 3066 3066 /*}}}*/ 3067 /*FUNCTION Penta::SmearFunction {{{ 1*/3067 /*FUNCTION Penta::SmearFunction {{{*/ 3068 3068 void Penta::SmearFunction(Vector* smearedvector,double (*WeightFunction)(double distance,double radius),double radius){ 3069 3069 _error_("not implemented yet"); 3070 3070 } 3071 /*}}} 1*/3071 /*}}}*/ 3072 3072 3073 3073 #ifdef _HAVE_RESPONSES_ 3074 /*FUNCTION Penta::IceVolume {{{ 1*/3074 /*FUNCTION Penta::IceVolume {{{*/ 3075 3075 double Penta::IceVolume(void){ 3076 3076 … … 3095 3095 } 3096 3096 /*}}}*/ 3097 /*FUNCTION Penta::MinVel{{{ 1*/3097 /*FUNCTION Penta::MinVel{{{*/ 3098 3098 void Penta::MinVel(double* pminvel, bool process_units){ 3099 3099 … … 3108 3108 } 3109 3109 /*}}}*/ 3110 /*FUNCTION Penta::MinVx{{{ 1*/3110 /*FUNCTION Penta::MinVx{{{*/ 3111 3111 void Penta::MinVx(double* pminvx, bool process_units){ 3112 3112 … … 3121 3121 } 3122 3122 /*}}}*/ 3123 /*FUNCTION Penta::MinVy{{{ 1*/3123 /*FUNCTION Penta::MinVy{{{*/ 3124 3124 void Penta::MinVy(double* pminvy, bool process_units){ 3125 3125 … … 3134 3134 } 3135 3135 /*}}}*/ 3136 /*FUNCTION Penta::MinVz{{{ 1*/3136 /*FUNCTION Penta::MinVz{{{*/ 3137 3137 void Penta::MinVz(double* pminvz, bool process_units){ 3138 3138 … … 3147 3147 } 3148 3148 /*}}}*/ 3149 /*FUNCTION Penta::MassFlux {{{ 1*/3149 /*FUNCTION Penta::MassFlux {{{*/ 3150 3150 double Penta::MassFlux( double* segment,bool process_units){ 3151 3151 … … 3171 3171 } 3172 3172 /*}}}*/ 3173 /*FUNCTION Penta::MaxAbsVx{{{ 1*/3173 /*FUNCTION Penta::MaxAbsVx{{{*/ 3174 3174 void Penta::MaxAbsVx(double* pmaxabsvx, bool process_units){ 3175 3175 … … 3184 3184 } 3185 3185 /*}}}*/ 3186 /*FUNCTION Penta::MaxAbsVy{{{ 1*/3186 /*FUNCTION Penta::MaxAbsVy{{{*/ 3187 3187 void Penta::MaxAbsVy(double* pmaxabsvy, bool process_units){ 3188 3188 … … 3197 3197 } 3198 3198 /*}}}*/ 3199 /*FUNCTION Penta::MaxAbsVz{{{ 1*/3199 /*FUNCTION Penta::MaxAbsVz{{{*/ 3200 3200 void Penta::MaxAbsVz(double* pmaxabsvz, bool process_units){ 3201 3201 … … 3210 3210 } 3211 3211 /*}}}*/ 3212 /*FUNCTION Penta::MaxVel{{{ 1*/3212 /*FUNCTION Penta::MaxVel{{{*/ 3213 3213 void Penta::MaxVel(double* pmaxvel, bool process_units){ 3214 3214 … … 3224 3224 } 3225 3225 /*}}}*/ 3226 /*FUNCTION Penta::MaxVx{{{ 1*/3226 /*FUNCTION Penta::MaxVx{{{*/ 3227 3227 void Penta::MaxVx(double* pmaxvx, bool process_units){ 3228 3228 … … 3237 3237 } 3238 3238 /*}}}*/ 3239 /*FUNCTION Penta::MaxVy{{{ 1*/3239 /*FUNCTION Penta::MaxVy{{{*/ 3240 3240 void Penta::MaxVy(double* pmaxvy, bool process_units){ 3241 3241 … … 3250 3250 } 3251 3251 /*}}}*/ 3252 /*FUNCTION Penta::MaxVz{{{ 1*/3252 /*FUNCTION Penta::MaxVz{{{*/ 3253 3253 void Penta::MaxVz(double* pmaxvz, bool process_units){ 3254 3254 … … 3263 3263 } 3264 3264 /*}}}*/ 3265 /*FUNCTION Penta::ElementResponse{{{ 1*/3265 /*FUNCTION Penta::ElementResponse{{{*/ 3266 3266 void Penta::ElementResponse(double* presponse,int response_enum,bool process_units){ 3267 3267 … … 3293 3293 3294 3294 #ifdef _HAVE_THERMAL_ 3295 /*FUNCTION Penta::CreateKMatrixEnthalpy {{{ 1*/3295 /*FUNCTION Penta::CreateKMatrixEnthalpy {{{*/ 3296 3296 ElementMatrix* Penta::CreateKMatrixEnthalpy(void){ 3297 3297 … … 3307 3307 } 3308 3308 /*}}}*/ 3309 /*FUNCTION Penta::CreateKMatrixEnthalpyVolume {{{ 1*/3309 /*FUNCTION Penta::CreateKMatrixEnthalpyVolume {{{*/ 3310 3310 ElementMatrix* Penta::CreateKMatrixEnthalpyVolume(void){ 3311 3311 … … 3464 3464 } 3465 3465 /*}}}*/ 3466 /*FUNCTION Penta::CreateKMatrixEnthalpyShelf {{{ 1*/3466 /*FUNCTION Penta::CreateKMatrixEnthalpyShelf {{{*/ 3467 3467 ElementMatrix* Penta::CreateKMatrixEnthalpyShelf(void){ 3468 3468 … … 3518 3518 } 3519 3519 /*}}}*/ 3520 /*FUNCTION Penta::CreateKMatrixMelting {{{ 1*/3520 /*FUNCTION Penta::CreateKMatrixMelting {{{*/ 3521 3521 ElementMatrix* Penta::CreateKMatrixMelting(void){ 3522 3522 … … 3530 3530 } 3531 3531 /*}}}*/ 3532 /*FUNCTION Penta::CreateKMatrixThermal {{{ 1*/3532 /*FUNCTION Penta::CreateKMatrixThermal {{{*/ 3533 3533 ElementMatrix* Penta::CreateKMatrixThermal(void){ 3534 3534 … … 3544 3544 } 3545 3545 /*}}}*/ 3546 /*FUNCTION Penta::CreateKMatrixThermalVolume {{{ 1*/3546 /*FUNCTION Penta::CreateKMatrixThermalVolume {{{*/ 3547 3547 ElementMatrix* Penta::CreateKMatrixThermalVolume(void){ 3548 3548 … … 3696 3696 } 3697 3697 /*}}}*/ 3698 /*FUNCTION Penta::CreateKMatrixThermalShelf {{{ 1*/3698 /*FUNCTION Penta::CreateKMatrixThermalShelf {{{*/ 3699 3699 ElementMatrix* Penta::CreateKMatrixThermalShelf(void){ 3700 3700 … … 3751 3751 } 3752 3752 /*}}}*/ 3753 /*FUNCTION Penta::CreatePVectorEnthalpy {{{ 1*/3753 /*FUNCTION Penta::CreatePVectorEnthalpy {{{*/ 3754 3754 ElementVector* Penta::CreatePVectorEnthalpy(void){ 3755 3755 … … 3767 3767 } 3768 3768 /*}}}*/ 3769 /*FUNCTION Penta::CreatePVectorEnthalpyVolume {{{ 1*/3769 /*FUNCTION Penta::CreatePVectorEnthalpyVolume {{{*/ 3770 3770 ElementVector* Penta::CreatePVectorEnthalpyVolume(void){ 3771 3771 … … 3863 3863 } 3864 3864 /*}}}*/ 3865 /*FUNCTION Penta::CreatePVectorEnthalpyShelf {{{ 1*/3865 /*FUNCTION Penta::CreatePVectorEnthalpyShelf {{{*/ 3866 3866 ElementVector* Penta::CreatePVectorEnthalpyShelf(void){ 3867 3867 … … 3920 3920 } 3921 3921 /*}}}*/ 3922 /*FUNCTION Penta::CreatePVectorEnthalpySheet {{{ 1*/3922 /*FUNCTION Penta::CreatePVectorEnthalpySheet {{{*/ 3923 3923 ElementVector* Penta::CreatePVectorEnthalpySheet(void){ 3924 3924 … … 4009 4009 } 4010 4010 /*}}}*/ 4011 /*FUNCTION Penta::CreatePVectorMelting {{{ 1*/4011 /*FUNCTION Penta::CreatePVectorMelting {{{*/ 4012 4012 ElementVector* Penta::CreatePVectorMelting(void){ 4013 4013 return NULL; 4014 4014 } 4015 4015 /*}}}*/ 4016 /*FUNCTION Penta::CreatePVectorThermal {{{ 1*/4016 /*FUNCTION Penta::CreatePVectorThermal {{{*/ 4017 4017 ElementVector* Penta::CreatePVectorThermal(void){ 4018 4018 … … 4030 4030 } 4031 4031 /*}}}*/ 4032 /*FUNCTION Penta::CreatePVectorThermalVolume {{{ 1*/4032 /*FUNCTION Penta::CreatePVectorThermalVolume {{{*/ 4033 4033 ElementVector* Penta::CreatePVectorThermalVolume(void){ 4034 4034 … … 4117 4117 } 4118 4118 /*}}}*/ 4119 /*FUNCTION Penta::CreatePVectorThermalShelf {{{ 1*/4119 /*FUNCTION Penta::CreatePVectorThermalShelf {{{*/ 4120 4120 ElementVector* Penta::CreatePVectorThermalShelf(void){ 4121 4121 … … 4174 4174 } 4175 4175 /*}}}*/ 4176 /*FUNCTION Penta::CreatePVectorThermalSheet {{{ 1*/4176 /*FUNCTION Penta::CreatePVectorThermalSheet {{{*/ 4177 4177 ElementVector* Penta::CreatePVectorThermalSheet(void){ 4178 4178 … … 4241 4241 } 4242 4242 /*}}}*/ 4243 /*FUNCTION Penta::GetSolutionFromInputsThermal{{{ 1*/4243 /*FUNCTION Penta::GetSolutionFromInputsThermal{{{*/ 4244 4244 void Penta::GetSolutionFromInputsThermal(Vector* solution){ 4245 4245 … … 4272 4272 } 4273 4273 /*}}}*/ 4274 /*FUNCTION Penta::GetSolutionFromInputsEnthalpy{{{ 1*/4274 /*FUNCTION Penta::GetSolutionFromInputsEnthalpy{{{*/ 4275 4275 void Penta::GetSolutionFromInputsEnthalpy(Vector* solution){ 4276 4276 … … 4303 4303 } 4304 4304 /*}}}*/ 4305 /*FUNCTION Penta::InputUpdateFromSolutionThermal {{{ 1*/4305 /*FUNCTION Penta::InputUpdateFromSolutionThermal {{{*/ 4306 4306 void Penta::InputUpdateFromSolutionThermal(double* solution){ 4307 4307 … … 4374 4374 } 4375 4375 /*}}}*/ 4376 /*FUNCTION Penta::InputUpdateFromSolutionEnthalpy {{{ 1*/4376 /*FUNCTION Penta::InputUpdateFromSolutionEnthalpy {{{*/ 4377 4377 void Penta::InputUpdateFromSolutionEnthalpy(double* solution){ 4378 4378 … … 4455 4455 4456 4456 #ifdef _HAVE_CONTROL_ 4457 /*FUNCTION Penta::ControlInputGetGradient{{{ 1*/4457 /*FUNCTION Penta::ControlInputGetGradient{{{*/ 4458 4458 void Penta::ControlInputGetGradient(Vector* gradient,int enum_type,int control_index){ 4459 4459 … … 4475 4475 4476 4476 }/*}}}*/ 4477 /*FUNCTION Penta::ControlInputScaleGradient{{{ 1*/4477 /*FUNCTION Penta::ControlInputScaleGradient{{{*/ 4478 4478 void Penta::ControlInputScaleGradient(int enum_type,double scale){ 4479 4479 … … 4491 4491 ((ControlInput*)input)->ScaleGradient(scale); 4492 4492 }/*}}}*/ 4493 /*FUNCTION Penta::ControlInputSetGradient{{{ 1*/4493 /*FUNCTION Penta::ControlInputSetGradient{{{*/ 4494 4494 void Penta::ControlInputSetGradient(double* gradient,int enum_type,int control_index){ 4495 4495 … … 4514 4514 4515 4515 }/*}}}*/ 4516 /*FUNCTION Penta::CreateKMatrixAdjointHoriz{{{ 1*/4516 /*FUNCTION Penta::CreateKMatrixAdjointHoriz{{{*/ 4517 4517 ElementMatrix* Penta::CreateKMatrixAdjointHoriz(void){ 4518 4518 … … 4534 4534 } 4535 4535 /*}}}*/ 4536 /*FUNCTION Penta::CreateKMatrixAdjointMacAyeal2d{{{ 1*/4536 /*FUNCTION Penta::CreateKMatrixAdjointMacAyeal2d{{{*/ 4537 4537 ElementMatrix* Penta::CreateKMatrixAdjointMacAyeal2d(void){ 4538 4538 … … 4557 4557 } 4558 4558 /*}}}*/ 4559 /*FUNCTION Penta::CreateKMatrixAdjointPattyn{{{ 1*/4559 /*FUNCTION Penta::CreateKMatrixAdjointPattyn{{{*/ 4560 4560 ElementMatrix* Penta::CreateKMatrixAdjointPattyn(void){ 4561 4561 … … 4625 4625 } 4626 4626 /*}}}*/ 4627 /*FUNCTION Penta::CreateKMatrixAdjointStokes{{{ 1*/4627 /*FUNCTION Penta::CreateKMatrixAdjointStokes{{{*/ 4628 4628 ElementMatrix* Penta::CreateKMatrixAdjointStokes(void){ 4629 4629 … … 4704 4704 } 4705 4705 /*}}}*/ 4706 /*FUNCTION Penta::CreatePVectorAdjointHoriz{{{ 1*/4706 /*FUNCTION Penta::CreatePVectorAdjointHoriz{{{*/ 4707 4707 ElementVector* Penta::CreatePVectorAdjointHoriz(void){ 4708 4708 … … 4724 4724 } 4725 4725 /*}}}*/ 4726 /*FUNCTION Penta::CreatePVectorAdjointMacAyeal{{{ 1*/4726 /*FUNCTION Penta::CreatePVectorAdjointMacAyeal{{{*/ 4727 4727 ElementVector* Penta::CreatePVectorAdjointMacAyeal(){ 4728 4728 … … 4738 4738 } 4739 4739 /*}}}*/ 4740 /*FUNCTION Penta::CreatePVectorAdjointPattyn{{{ 1*/4740 /*FUNCTION Penta::CreatePVectorAdjointPattyn{{{*/ 4741 4741 ElementVector* Penta::CreatePVectorAdjointPattyn(void){ 4742 4742 … … 4752 4752 } 4753 4753 /*}}}*/ 4754 /*FUNCTION Penta::CreatePVectorAdjointStokes{{{ 1*/4754 /*FUNCTION Penta::CreatePVectorAdjointStokes{{{*/ 4755 4755 ElementVector* Penta::CreatePVectorAdjointStokes(void){ 4756 4756 … … 4766 4766 } 4767 4767 /*}}}*/ 4768 /*FUNCTION Penta::GradientIndexing{{{ 1*/4768 /*FUNCTION Penta::GradientIndexing{{{*/ 4769 4769 void Penta::GradientIndexing(int* indexing,int control_index){ 4770 4770 … … 4780 4780 } 4781 4781 /*}}}*/ 4782 /*FUNCTION Penta::Gradj {{{ 1*/4782 /*FUNCTION Penta::Gradj {{{*/ 4783 4783 void Penta::Gradj(Vector* gradient,int control_type,int control_index){ 4784 4784 /*dJ/dalpha = ∂L/∂alpha = ∂J/∂alpha + ∂/∂alpha(KU-F)*/ … … 4871 4871 } 4872 4872 /*}}}*/ 4873 /*FUNCTION Penta::GradjDragMacAyeal {{{ 1*/4873 /*FUNCTION Penta::GradjDragMacAyeal {{{*/ 4874 4874 void Penta::GradjDragMacAyeal(Vector* gradient,int control_index){ 4875 4875 … … 4883 4883 4884 4884 } /*}}}*/ 4885 /*FUNCTION Penta::GradjDragPattyn {{{ 1*/4885 /*FUNCTION Penta::GradjDragPattyn {{{*/ 4886 4886 void Penta::GradjDragPattyn(Vector* gradient,int control_index){ 4887 4887 … … 4954 4954 } 4955 4955 /*}}}*/ 4956 /*FUNCTION Penta::GradjDragStokes {{{ 1*/4956 /*FUNCTION Penta::GradjDragStokes {{{*/ 4957 4957 void Penta::GradjDragStokes(Vector* gradient,int control_index){ 4958 4958 … … 5046 5046 } 5047 5047 /*}}}*/ 5048 /*FUNCTION Penta::GradjBbarMacAyeal {{{ 1*/5048 /*FUNCTION Penta::GradjBbarMacAyeal {{{*/ 5049 5049 void Penta::GradjBbarMacAyeal(Vector* gradient,int control_index){ 5050 5050 … … 5064 5064 5065 5065 } /*}}}*/ 5066 /*FUNCTION Penta::GradjBbarPattyn {{{ 1*/5066 /*FUNCTION Penta::GradjBbarPattyn {{{*/ 5067 5067 void Penta::GradjBbarPattyn(Vector* gradient,int control_index){ 5068 5068 … … 5081 5081 this->matice->inputs->DeleteInput(MaterialsRheologyBbarEnum); 5082 5082 } /*}}}*/ 5083 /*FUNCTION Penta::GradjBbarStokes {{{ 1*/5083 /*FUNCTION Penta::GradjBbarStokes {{{*/ 5084 5084 void Penta::GradjBbarStokes(Vector* gradient,int control_index){ 5085 5085 … … 5098 5098 this->matice->inputs->DeleteInput(MaterialsRheologyBbarEnum); 5099 5099 } /*}}}*/ 5100 /*FUNCTION Penta::InputControlUpdate{{{ 1*/5100 /*FUNCTION Penta::InputControlUpdate{{{*/ 5101 5101 void Penta::InputControlUpdate(double scalar,bool save_parameter){ 5102 5102 … … 5136 5136 } 5137 5137 /*}}}*/ 5138 /*FUNCTION Penta::InputUpdateFromSolutionAdjointStokes {{{ 1*/5138 /*FUNCTION Penta::InputUpdateFromSolutionAdjointStokes {{{*/ 5139 5139 void Penta::InputUpdateFromSolutionAdjointStokes(double* solution){ 5140 5140 … … 5179 5179 } 5180 5180 /*}}}*/ 5181 /*FUNCTION Penta::InputUpdateFromSolutionAdjointHoriz {{{ 1*/5181 /*FUNCTION Penta::InputUpdateFromSolutionAdjointHoriz {{{*/ 5182 5182 void Penta::InputUpdateFromSolutionAdjointHoriz(double* solution){ 5183 5183 … … 5214 5214 } 5215 5215 /*}}}*/ 5216 /*FUNCTION Penta::SurfaceAverageVelMisfit {{{ 1*/5216 /*FUNCTION Penta::SurfaceAverageVelMisfit {{{*/ 5217 5217 double Penta::SurfaceAverageVelMisfit(bool process_units,int weight_index){ 5218 5218 … … 5251 5251 } 5252 5252 /*}}}*/ 5253 /*FUNCTION Penta::SurfaceAbsVelMisfit {{{ 1*/5253 /*FUNCTION Penta::SurfaceAbsVelMisfit {{{*/ 5254 5254 double Penta::SurfaceAbsVelMisfit(bool process_units,int weight_index){ 5255 5255 … … 5288 5288 } 5289 5289 /*}}}*/ 5290 /*FUNCTION Penta::SurfaceLogVelMisfit {{{ 1*/5290 /*FUNCTION Penta::SurfaceLogVelMisfit {{{*/ 5291 5291 double Penta::SurfaceLogVelMisfit(bool process_units,int weight_index){ 5292 5292 … … 5325 5325 } 5326 5326 /*}}}*/ 5327 /*FUNCTION Penta::SurfaceLogVxVyMisfit {{{ 1*/5327 /*FUNCTION Penta::SurfaceLogVxVyMisfit {{{*/ 5328 5328 double Penta::SurfaceLogVxVyMisfit(bool process_units,int weight_index){ 5329 5329 … … 5364 5364 } 5365 5365 /*}}}*/ 5366 /*FUNCTION Penta::SurfaceRelVelMisfit {{{ 1*/5366 /*FUNCTION Penta::SurfaceRelVelMisfit {{{*/ 5367 5367 double Penta::SurfaceRelVelMisfit(bool process_units,int weight_index){ 5368 5368 … … 5401 5401 } 5402 5402 /*}}}*/ 5403 /*FUNCTION Penta::ThicknessAbsGradient{{{ 1*/5403 /*FUNCTION Penta::ThicknessAbsGradient{{{*/ 5404 5404 double Penta::ThicknessAbsGradient(bool process_units,int weight_index){ 5405 5405 … … 5407 5407 } 5408 5408 /*}}}*/ 5409 /*FUNCTION Penta::ThicknessAbsMisfit {{{ 1*/5409 /*FUNCTION Penta::ThicknessAbsMisfit {{{*/ 5410 5410 double Penta::ThicknessAbsMisfit(bool process_units,int weight_index){ 5411 5411 … … 5427 5427 } 5428 5428 /*}}}*/ 5429 /*FUNCTION Penta::DragCoefficientAbsGradient{{{ 1*/5429 /*FUNCTION Penta::DragCoefficientAbsGradient{{{*/ 5430 5430 double Penta::DragCoefficientAbsGradient(bool process_units,int weight_index){ 5431 5431 … … 5442 5442 } 5443 5443 /*}}}*/ 5444 /*FUNCTION Penta::RheologyBbarAbsGradient{{{ 1*/5444 /*FUNCTION Penta::RheologyBbarAbsGradient{{{*/ 5445 5445 double Penta::RheologyBbarAbsGradient(bool process_units,int weight_index){ 5446 5446 … … 5457 5457 } 5458 5458 /*}}}*/ 5459 /*FUNCTION Penta::GetVectorFromControlInputs{{{ 1*/5459 /*FUNCTION Penta::GetVectorFromControlInputs{{{*/ 5460 5460 void Penta::GetVectorFromControlInputs(Vector* vector,int control_enum,int control_index,const char* data){ 5461 5461 … … 5480 5480 } 5481 5481 /*}}}*/ 5482 /*FUNCTION Penta::SetControlInputsFromVector{{{ 1*/5482 /*FUNCTION Penta::SetControlInputsFromVector{{{*/ 5483 5483 void Penta::SetControlInputsFromVector(double* vector,int control_enum,int control_index){ 5484 5484 … … 5518 5518 5519 5519 #ifdef _HAVE_DAKOTA_ 5520 /*FUNCTION Penta::InputUpdateFromVectorDakota(double* vector, int name, int type);{{{ 1*/5520 /*FUNCTION Penta::InputUpdateFromVectorDakota(double* vector, int name, int type);{{{*/ 5521 5521 void Penta::InputUpdateFromVectorDakota(double* vector, int name, int type){ 5522 5522 … … 5541 5541 switch(name){ 5542 5542 case ThicknessEnum: 5543 /*Update thickness + surface: assume bed is constant. On ice shelves, takes hydrostatic equilibrium {{{ 2*/5543 /*Update thickness + surface: assume bed is constant. On ice shelves, takes hydrostatic equilibrium {{{*/ 5544 5544 double thickness[6]; 5545 5545 double thickness_init[6]; … … 5620 5620 } 5621 5621 /*}}}*/ 5622 /*FUNCTION Penta::InputUpdateFromVectorDakota(int* vector, int name, int type);{{{ 1*/5622 /*FUNCTION Penta::InputUpdateFromVectorDakota(int* vector, int name, int type);{{{*/ 5623 5623 void Penta::InputUpdateFromVectorDakota(int* vector, int name, int type){ 5624 5624 _error_(" not supported yet!"); 5625 5625 } 5626 5626 /*}}}*/ 5627 /*FUNCTION Penta::InputUpdateFromVectorDakota(bool* vector, int name, int type);{{{ 1*/5627 /*FUNCTION Penta::InputUpdateFromVectorDakota(bool* vector, int name, int type);{{{*/ 5628 5628 void Penta::InputUpdateFromVectorDakota(bool* vector, int name, int type){ 5629 5629 _error_(" not supported yet!"); 5630 5630 } 5631 5631 /*}}}*/ 5632 /*FUNCTION Penta::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type);{{{ 1*/5632 /*FUNCTION Penta::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type);{{{*/ 5633 5633 void Penta::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type){ 5634 5634 … … 5678 5678 5679 5679 #ifdef _HAVE_DIAGNOSTIC_ 5680 /*FUNCTION Penta::CreateDVectorDiagnosticHoriz {{{ 1*/5680 /*FUNCTION Penta::CreateDVectorDiagnosticHoriz {{{*/ 5681 5681 ElementVector* Penta::CreateDVectorDiagnosticHoriz(void){ 5682 5682 … … 5692 5692 } 5693 5693 /*}}}*/ 5694 /*FUNCTION Penta::CreateDVectorDiagnosticStokes{{{ 1*/5694 /*FUNCTION Penta::CreateDVectorDiagnosticStokes{{{*/ 5695 5695 ElementVector* Penta::CreateDVectorDiagnosticStokes(void){ 5696 5696 … … 5717 5717 } 5718 5718 /*}}}*/ 5719 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealPattyn{{{ 1*/5719 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealPattyn{{{*/ 5720 5720 ElementMatrix* Penta::CreateKMatrixCouplingMacAyealPattyn(void){ 5721 5721 … … 5731 5731 } 5732 5732 /*}}}*/ 5733 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealPattynViscous{{{ 1*/5733 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealPattynViscous{{{*/ 5734 5734 ElementMatrix* Penta::CreateKMatrixCouplingMacAyealPattynViscous(void){ 5735 5735 … … 5824 5824 } 5825 5825 /*}}}*/ 5826 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealPattynFriction{{{ 1*/5826 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealPattynFriction{{{*/ 5827 5827 ElementMatrix* Penta::CreateKMatrixCouplingMacAyealPattynFriction(void){ 5828 5828 … … 5922 5922 } 5923 5923 /*}}}*/ 5924 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealStokes{{{ 1*/5924 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealStokes{{{*/ 5925 5925 ElementMatrix* Penta::CreateKMatrixCouplingMacAyealStokes(void){ 5926 5926 … … 5936 5936 } 5937 5937 /*}}}*/ 5938 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealStokesViscous{{{ 1*/5938 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealStokesViscous{{{*/ 5939 5939 ElementMatrix* Penta::CreateKMatrixCouplingMacAyealStokesViscous(void){ 5940 5940 … … 6040 6040 } 6041 6041 /*}}}*/ 6042 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealStokesFriction {{{ 1*/6042 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealStokesFriction {{{*/ 6043 6043 ElementMatrix* Penta::CreateKMatrixCouplingMacAyealStokesFriction(void){ 6044 6044 … … 6156 6156 } 6157 6157 /*}}}*/ 6158 /*FUNCTION Penta::CreateKMatrixCouplingPattynStokes{{{ 1*/6158 /*FUNCTION Penta::CreateKMatrixCouplingPattynStokes{{{*/ 6159 6159 ElementMatrix* Penta::CreateKMatrixCouplingPattynStokes(void){ 6160 6160 … … 6205 6205 } 6206 6206 /*}}}*/ 6207 /*FUNCTION Penta::CreateKMatrixDiagnosticHoriz {{{ 1*/6207 /*FUNCTION Penta::CreateKMatrixDiagnosticHoriz {{{*/ 6208 6208 ElementMatrix* Penta::CreateKMatrixDiagnosticHoriz(void){ 6209 6209 … … 6233 6233 } 6234 6234 /*}}}*/ 6235 /*FUNCTION Penta::CreateKMatrixDiagnosticHutter{{{ 1*/6235 /*FUNCTION Penta::CreateKMatrixDiagnosticHutter{{{*/ 6236 6236 ElementMatrix* Penta::CreateKMatrixDiagnosticHutter(void){ 6237 6237 … … 6296 6296 return Ke; 6297 6297 } 6298 /*FUNCTION Penta::CreateKMatrixDiagnosticMacAyeal2d{{{ 1*/6298 /*FUNCTION Penta::CreateKMatrixDiagnosticMacAyeal2d{{{*/ 6299 6299 ElementMatrix* Penta::CreateKMatrixDiagnosticMacAyeal2d(void){ 6300 6300 … … 6319 6319 } 6320 6320 /*}}}*/ 6321 /*FUNCTION Penta::CreateKMatrixDiagnosticMacAyeal3d{{{ 1*/6321 /*FUNCTION Penta::CreateKMatrixDiagnosticMacAyeal3d{{{*/ 6322 6322 ElementMatrix* Penta::CreateKMatrixDiagnosticMacAyeal3d(void){ 6323 6323 … … 6333 6333 } 6334 6334 /*}}}*/ 6335 /*FUNCTION Penta::CreateKMatrixDiagnosticMacAyeal3dViscous{{{ 1*/6335 /*FUNCTION Penta::CreateKMatrixDiagnosticMacAyeal3dViscous{{{*/ 6336 6336 ElementMatrix* Penta::CreateKMatrixDiagnosticMacAyeal3dViscous(void){ 6337 6337 … … 6421 6421 } 6422 6422 /*}}}*/ 6423 /*FUNCTION Penta::CreateKMatrixDiagnosticMacAyeal3dFriction{{{ 1*/6423 /*FUNCTION Penta::CreateKMatrixDiagnosticMacAyeal3dFriction{{{*/ 6424 6424 ElementMatrix* Penta::CreateKMatrixDiagnosticMacAyeal3dFriction(void){ 6425 6425 … … 6438 6438 } 6439 6439 /*}}}*/ 6440 /*FUNCTION Penta::CreateKMatrixDiagnosticMacAyealPattyn{{{ 1*/6440 /*FUNCTION Penta::CreateKMatrixDiagnosticMacAyealPattyn{{{*/ 6441 6441 ElementMatrix* Penta::CreateKMatrixDiagnosticMacAyealPattyn(void){ 6442 6442 … … 6454 6454 } 6455 6455 /*}}}*/ 6456 /*FUNCTION Penta::CreateKMatrixDiagnosticMacAyealStokes{{{ 1*/6456 /*FUNCTION Penta::CreateKMatrixDiagnosticMacAyealStokes{{{*/ 6457 6457 ElementMatrix* Penta::CreateKMatrixDiagnosticMacAyealStokes(void){ 6458 6458 … … 6470 6470 } 6471 6471 /*}}}*/ 6472 /*FUNCTION Penta::CreateKMatrixDiagnosticPattyn{{{ 1*/6472 /*FUNCTION Penta::CreateKMatrixDiagnosticPattyn{{{*/ 6473 6473 ElementMatrix* Penta::CreateKMatrixDiagnosticPattyn(void){ 6474 6474 … … 6485 6485 } 6486 6486 /*}}}*/ 6487 /*FUNCTION Penta::CreateKMatrixDiagnosticPattynViscous{{{ 1*/6487 /*FUNCTION Penta::CreateKMatrixDiagnosticPattynViscous{{{*/ 6488 6488 ElementMatrix* Penta::CreateKMatrixDiagnosticPattynViscous(void){ 6489 6489 … … 6550 6550 } 6551 6551 /*}}}*/ 6552 /*FUNCTION Penta::CreateKMatrixDiagnosticPattynFriction{{{ 1*/6552 /*FUNCTION Penta::CreateKMatrixDiagnosticPattynFriction{{{*/ 6553 6553 ElementMatrix* Penta::CreateKMatrixDiagnosticPattynFriction(void){ 6554 6554 … … 6625 6625 } 6626 6626 /*}}}*/ 6627 /*FUNCTION Penta::CreateKMatrixDiagnosticPattynStokes{{{ 1*/6627 /*FUNCTION Penta::CreateKMatrixDiagnosticPattynStokes{{{*/ 6628 6628 ElementMatrix* Penta::CreateKMatrixDiagnosticPattynStokes(void){ 6629 6629 … … 6641 6641 } 6642 6642 /*}}}*/ 6643 /*FUNCTION Penta::CreateKMatrixDiagnosticStokes{{{ 1*/6643 /*FUNCTION Penta::CreateKMatrixDiagnosticStokes{{{*/ 6644 6644 ElementMatrix* Penta::CreateKMatrixDiagnosticStokes(void){ 6645 6645 … … 6655 6655 } 6656 6656 /*}}}*/ 6657 /*FUNCTION Penta::CreateKMatrixDiagnosticStokesViscous {{{ 1*/6657 /*FUNCTION Penta::CreateKMatrixDiagnosticStokesViscous {{{*/ 6658 6658 ElementMatrix* Penta::CreateKMatrixDiagnosticStokesViscous(void){ 6659 6659 … … 6716 6716 } 6717 6717 /*}}}*/ 6718 /*FUNCTION Penta::CreateKMatrixDiagnosticStokesFriction{{{ 1*/6718 /*FUNCTION Penta::CreateKMatrixDiagnosticStokesFriction{{{*/ 6719 6719 ElementMatrix* Penta::CreateKMatrixDiagnosticStokesFriction(void){ 6720 6720 … … 6788 6788 } 6789 6789 /*}}}*/ 6790 /*FUNCTION Penta::CreateKMatrixDiagnosticVert {{{ 1*/6790 /*FUNCTION Penta::CreateKMatrixDiagnosticVert {{{*/ 6791 6791 ElementMatrix* Penta::CreateKMatrixDiagnosticVert(void){ 6792 6792 … … 6803 6803 } 6804 6804 /*}}}*/ 6805 /*FUNCTION Penta::CreateKMatrixDiagnosticVertVolume {{{ 1*/6805 /*FUNCTION Penta::CreateKMatrixDiagnosticVertVolume {{{*/ 6806 6806 ElementMatrix* Penta::CreateKMatrixDiagnosticVertVolume(void){ 6807 6807 … … 6847 6847 } 6848 6848 /*}}}*/ 6849 /*FUNCTION Penta::CreateKMatrixDiagnosticVertSurface {{{ 1*/6849 /*FUNCTION Penta::CreateKMatrixDiagnosticVertSurface {{{*/ 6850 6850 ElementMatrix* Penta::CreateKMatrixDiagnosticVertSurface(void){ 6851 6851 … … 6894 6894 } 6895 6895 /*}}}*/ 6896 /*FUNCTION Penta::CreatePVectorCouplingMacAyealStokes {{{ 1*/6896 /*FUNCTION Penta::CreatePVectorCouplingMacAyealStokes {{{*/ 6897 6897 ElementVector* Penta::CreatePVectorCouplingMacAyealStokes(void){ 6898 6898 … … 6908 6908 } 6909 6909 /*}}}*/ 6910 /*FUNCTION Penta::CreatePVectorCouplingMacAyealStokesViscous {{{ 1*/6910 /*FUNCTION Penta::CreatePVectorCouplingMacAyealStokesViscous {{{*/ 6911 6911 ElementVector* Penta::CreatePVectorCouplingMacAyealStokesViscous(void){ 6912 6912 … … 6970 6970 } 6971 6971 /*}}}*/ 6972 /*FUNCTION Penta::CreatePVectorCouplingMacAyealStokesFriction{{{ 1*/6972 /*FUNCTION Penta::CreatePVectorCouplingMacAyealStokesFriction{{{*/ 6973 6973 ElementVector* Penta::CreatePVectorCouplingMacAyealStokesFriction(void){ 6974 6974 … … 7045 7045 } 7046 7046 /*}}}*/ 7047 /*FUNCTION Penta::CreatePVectorCouplingPattynStokes {{{ 1*/7047 /*FUNCTION Penta::CreatePVectorCouplingPattynStokes {{{*/ 7048 7048 ElementVector* Penta::CreatePVectorCouplingPattynStokes(void){ 7049 7049 … … 7059 7059 } 7060 7060 /*}}}*/ 7061 /*FUNCTION Penta::CreatePVectorCouplingPattynStokesViscous {{{ 1*/7061 /*FUNCTION Penta::CreatePVectorCouplingPattynStokesViscous {{{*/ 7062 7062 ElementVector* Penta::CreatePVectorCouplingPattynStokesViscous(void){ 7063 7063 … … 7121 7121 } 7122 7122 /*}}}*/ 7123 /*FUNCTION Penta::CreatePVectorCouplingPattynStokesFriction{{{ 1*/7123 /*FUNCTION Penta::CreatePVectorCouplingPattynStokesFriction{{{*/ 7124 7124 ElementVector* Penta::CreatePVectorCouplingPattynStokesFriction(void){ 7125 7125 … … 7196 7196 } 7197 7197 /*}}}*/ 7198 /*FUNCTION Penta::CreatePVectorDiagnosticHoriz{{{ 1*/7198 /*FUNCTION Penta::CreatePVectorDiagnosticHoriz{{{*/ 7199 7199 ElementVector* Penta::CreatePVectorDiagnosticHoriz(void){ 7200 7200 … … 7224 7224 } 7225 7225 /*}}}*/ 7226 /*FUNCTION Penta::CreatePVectorDiagnosticMacAyealPattyn{{{ 1*/7226 /*FUNCTION Penta::CreatePVectorDiagnosticMacAyealPattyn{{{*/ 7227 7227 ElementVector* Penta::CreatePVectorDiagnosticMacAyealPattyn(void){ 7228 7228 … … 7238 7238 } 7239 7239 /*}}}*/ 7240 /*FUNCTION Penta::CreatePVectorDiagnosticMacAyealStokes{{{ 1*/7240 /*FUNCTION Penta::CreatePVectorDiagnosticMacAyealStokes{{{*/ 7241 7241 ElementVector* Penta::CreatePVectorDiagnosticMacAyealStokes(void){ 7242 7242 … … 7254 7254 } 7255 7255 /*}}}*/ 7256 /*FUNCTION Penta::CreatePVectorDiagnosticPattynStokes{{{ 1*/7256 /*FUNCTION Penta::CreatePVectorDiagnosticPattynStokes{{{*/ 7257 7257 ElementVector* Penta::CreatePVectorDiagnosticPattynStokes(void){ 7258 7258 … … 7270 7270 } 7271 7271 /*}}}*/ 7272 /*FUNCTION Penta::CreatePVectorDiagnosticHutter{{{ 1*/7272 /*FUNCTION Penta::CreatePVectorDiagnosticHutter{{{*/ 7273 7273 ElementVector* Penta::CreatePVectorDiagnosticHutter(void){ 7274 7274 … … 7358 7358 } 7359 7359 /*}}}*/ 7360 /*FUNCTION Penta::CreatePVectorDiagnosticMacAyeal{{{ 1*/7360 /*FUNCTION Penta::CreatePVectorDiagnosticMacAyeal{{{*/ 7361 7361 ElementVector* Penta::CreatePVectorDiagnosticMacAyeal(void){ 7362 7362 … … 7372 7372 } 7373 7373 /*}}}*/ 7374 /*FUNCTION Penta::CreatePVectorDiagnosticPattyn{{{ 1*/7374 /*FUNCTION Penta::CreatePVectorDiagnosticPattyn{{{*/ 7375 7375 ElementVector* Penta::CreatePVectorDiagnosticPattyn(void){ 7376 7376 … … 7420 7420 } 7421 7421 /*}}}*/ 7422 /*FUNCTION Penta::CreatePVectorDiagnosticStokes {{{ 1*/7422 /*FUNCTION Penta::CreatePVectorDiagnosticStokes {{{*/ 7423 7423 ElementVector* Penta::CreatePVectorDiagnosticStokes(void){ 7424 7424 … … 7434 7434 } 7435 7435 /*}}}*/ 7436 /*FUNCTION Penta::CreatePVectorDiagnosticStokesViscous {{{ 1*/7436 /*FUNCTION Penta::CreatePVectorDiagnosticStokesViscous {{{*/ 7437 7437 ElementVector* Penta::CreatePVectorDiagnosticStokesViscous(void){ 7438 7438 … … 7514 7514 } 7515 7515 /*}}}*/ 7516 /*FUNCTION Penta::CreatePVectorDiagnosticStokesShelf{{{ 1*/7516 /*FUNCTION Penta::CreatePVectorDiagnosticStokesShelf{{{*/ 7517 7517 ElementVector* Penta::CreatePVectorDiagnosticStokesShelf(void){ 7518 7518 … … 7582 7582 } 7583 7583 /*}}}*/ 7584 /*FUNCTION Penta::CreatePVectorDiagnosticVert {{{ 1*/7584 /*FUNCTION Penta::CreatePVectorDiagnosticVert {{{*/ 7585 7585 ElementVector* Penta::CreatePVectorDiagnosticVert(void){ 7586 7586 … … 7596 7596 } 7597 7597 /*}}}*/ 7598 /*FUNCTION Penta::CreatePVectorDiagnosticVertVolume {{{ 1*/7598 /*FUNCTION Penta::CreatePVectorDiagnosticVertVolume {{{*/ 7599 7599 ElementVector* Penta::CreatePVectorDiagnosticVertVolume(void){ 7600 7600 … … 7652 7652 } 7653 7653 /*}}}*/ 7654 /*FUNCTION Penta::CreatePVectorDiagnosticVertBase {{{ 1*/7654 /*FUNCTION Penta::CreatePVectorDiagnosticVertBase {{{*/ 7655 7655 ElementVector* Penta::CreatePVectorDiagnosticVertBase(void){ 7656 7656 … … 7717 7717 } 7718 7718 /*}}}*/ 7719 /*FUNCTION Penta::CreateJacobianDiagnosticHoriz{{{ 1*/7719 /*FUNCTION Penta::CreateJacobianDiagnosticHoriz{{{*/ 7720 7720 ElementMatrix* Penta::CreateJacobianDiagnosticHoriz(void){ 7721 7721 … … 7737 7737 } 7738 7738 /*}}}*/ 7739 /*FUNCTION Penta::CreateJacobianDiagnosticMacayeal2d{{{ 1*/7739 /*FUNCTION Penta::CreateJacobianDiagnosticMacayeal2d{{{*/ 7740 7740 ElementMatrix* Penta::CreateJacobianDiagnosticMacayeal2d(void){ 7741 7741 … … 7760 7760 } 7761 7761 /*}}}*/ 7762 /*FUNCTION Penta::CreateJacobianDiagnosticPattyn{{{ 1*/7762 /*FUNCTION Penta::CreateJacobianDiagnosticPattyn{{{*/ 7763 7763 ElementMatrix* Penta::CreateJacobianDiagnosticPattyn(void){ 7764 7764 … … 7825 7825 } 7826 7826 /*}}}*/ 7827 /*FUNCTION Penta::CreateJacobianDiagnosticStokes{{{ 1*/7827 /*FUNCTION Penta::CreateJacobianDiagnosticStokes{{{*/ 7828 7828 ElementMatrix* Penta::CreateJacobianDiagnosticStokes(void){ 7829 7829 … … 7901 7901 } 7902 7902 /*}}}*/ 7903 /*FUNCTION Penta::GetSolutionFromInputsDiagnosticHoriz{{{ 1*/7903 /*FUNCTION Penta::GetSolutionFromInputsDiagnosticHoriz{{{*/ 7904 7904 void Penta::GetSolutionFromInputsDiagnosticHoriz(Vector* solution){ 7905 7905 … … 7943 7943 } 7944 7944 /*}}}*/ 7945 /*FUNCTION Penta::GetSolutionFromInputsDiagnosticHutter{{{ 1*/7945 /*FUNCTION Penta::GetSolutionFromInputsDiagnosticHutter{{{*/ 7946 7946 void Penta::GetSolutionFromInputsDiagnosticHutter(Vector* solution){ 7947 7947 … … 7979 7979 } 7980 7980 /*}}}*/ 7981 /*FUNCTION Penta::GetSolutionFromInputsDiagnosticVert{{{ 1*/7981 /*FUNCTION Penta::GetSolutionFromInputsDiagnosticVert{{{*/ 7982 7982 void Penta::GetSolutionFromInputsDiagnosticVert(Vector* solution){ 7983 7983 … … 8012 8012 } 8013 8013 /*}}}*/ 8014 /*FUNCTION Penta::GetSolutionFromInputsDiagnosticStokes{{{ 1*/8014 /*FUNCTION Penta::GetSolutionFromInputsDiagnosticStokes{{{*/ 8015 8015 void Penta::GetSolutionFromInputsDiagnosticStokes(Vector* solution){ 8016 8016 … … 8057 8057 } 8058 8058 /*}}}*/ 8059 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticHoriz {{{ 1*/8059 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticHoriz {{{*/ 8060 8060 void Penta::InputUpdateFromSolutionDiagnosticHoriz(double* solution){ 8061 8061 … … 8093 8093 } 8094 8094 /*}}}*/ 8095 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticMacAyeal {{{ 1*/8095 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticMacAyeal {{{*/ 8096 8096 void Penta::InputUpdateFromSolutionDiagnosticMacAyeal(double* solution){ 8097 8097 … … 8174 8174 } 8175 8175 /*}}}*/ 8176 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticMacAyealPattyn {{{ 1*/8176 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticMacAyealPattyn {{{*/ 8177 8177 void Penta::InputUpdateFromSolutionDiagnosticMacAyealPattyn(double* solution){ 8178 8178 … … 8258 8258 } 8259 8259 /*}}}*/ 8260 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticMacAyealStokes {{{ 1*/8260 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticMacAyealStokes {{{*/ 8261 8261 void Penta::InputUpdateFromSolutionDiagnosticMacAyealStokes(double* solution){ 8262 8262 … … 8358 8358 } 8359 8359 /*}}}*/ 8360 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticPattyn {{{ 1*/8360 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticPattyn {{{*/ 8361 8361 void Penta::InputUpdateFromSolutionDiagnosticPattyn(double* solution){ 8362 8362 … … 8432 8432 } 8433 8433 /*}}}*/ 8434 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticPattynStokes {{{ 1*/8434 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticPattynStokes {{{*/ 8435 8435 void Penta::InputUpdateFromSolutionDiagnosticPattynStokes(double* solution){ 8436 8436 … … 8526 8526 } 8527 8527 /*}}}*/ 8528 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticHutter {{{ 1*/8528 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticHutter {{{*/ 8529 8529 void Penta::InputUpdateFromSolutionDiagnosticHutter(double* solution){ 8530 8530 … … 8589 8589 } 8590 8590 /*}}}*/ 8591 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticVert {{{ 1*/8591 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticVert {{{*/ 8592 8592 void Penta::InputUpdateFromSolutionDiagnosticVert(double* solution){ 8593 8593 … … 8693 8693 } 8694 8694 /*}}}*/ 8695 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticStokes {{{ 1*/8695 /*FUNCTION Penta::InputUpdateFromSolutionDiagnosticStokes {{{*/ 8696 8696 void Penta::InputUpdateFromSolutionDiagnosticStokes(double* solution){ 8697 8697 … … 8757 8757 8758 8758 #ifdef _HAVE_BALANCED_ 8759 /*FUNCTION Penta::CreateKMatrixBalancethickness {{{ 1*/8759 /*FUNCTION Penta::CreateKMatrixBalancethickness {{{*/ 8760 8760 ElementMatrix* Penta::CreateKMatrixBalancethickness(void){ 8761 8761 … … 8782 8782 } 8783 8783 /*}}}*/ 8784 /*FUNCTION Penta::CreatePVectorBalancethickness {{{ 1*/8784 /*FUNCTION Penta::CreatePVectorBalancethickness {{{*/ 8785 8785 ElementVector* Penta::CreatePVectorBalancethickness(void){ 8786 8786 -
TabularUnified issm/trunk-jpl/src/c/objects/Elements/Penta.h ¶
r12014 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "./Element.h" 11 11 #include "./PentaHook.h" … … 44 44 Results *results; 45 45 46 /*Penta constructors and destructor: {{{ 1*/46 /*Penta constructors and destructor: {{{*/ 47 47 Penta(); 48 48 Penta(int penta_id,int penta_sid,int i, IoModel* iomodel,int nummodels); 49 49 ~Penta(); 50 50 /*}}}*/ 51 /*Object virtual functions definitions: {{{ 1*/51 /*Object virtual functions definitions: {{{*/ 52 52 Object* copy(); 53 53 void DeepEcho(); … … 57 57 int MyRank(); 58 58 /*}}}*/ 59 /*Update virtual functions definitions: {{{ 1*/59 /*Update virtual functions definitions: {{{*/ 60 60 void InputUpdateFromConstant(bool constant, int name); 61 61 void InputUpdateFromConstant(double constant, int name); … … 73 73 void InputUpdateFromIoModel(int index, IoModel* iomodel); 74 74 /*}}}*/ 75 /*Element virtual functions definitions: {{{ 1*/75 /*Element virtual functions definitions: {{{*/ 76 76 void AverageOntoPartition(Vector* partition_contributions,Vector* partition_areas,double* vertex_response,double* qmu_part); 77 77 void BasalFrictionCreateInput(void); … … 162 162 #endif 163 163 /*}}}*/ 164 /*Penta specific routines:{{{ 1*/164 /*Penta specific routines:{{{*/ 165 165 void BedNormal(double* bed_normal, double xyz_list[3][3]); 166 166 ElementMatrix* CreateKMatrixPrognostic(void); -
TabularUnified issm/trunk-jpl/src/c/objects/Elements/PentaHook.cpp ¶
r9725 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Object constructors and destructor*/ 23 /*FUNCTION PentaHook::PentaHook(){{{ 1*/23 /*FUNCTION PentaHook::PentaHook(){{{*/ 24 24 PentaHook::PentaHook(){ 25 25 numanalyses=UNDEF; … … 30 30 } 31 31 /*}}}*/ 32 /*FUNCTION PentaHook::~PentaHook(){{{ 1*/32 /*FUNCTION PentaHook::~PentaHook(){{{*/ 33 33 PentaHook::~PentaHook(){ 34 34 … … 44 44 } 45 45 /*}}}*/ 46 /*FUNCTION PentaHook::PentaHook(int in_numanalyses,int matice_id, int matpar_id){{{ 1*/46 /*FUNCTION PentaHook::PentaHook(int in_numanalyses,int matice_id, int matpar_id){{{*/ 47 47 PentaHook::PentaHook(int in_numanalyses,int matice_id, IoModel* iomodel){ 48 48 … … 67 67 /*}}}*/ 68 68 69 /*FUNCTION PentaHook::SetHookNodes{{{ 1*/69 /*FUNCTION PentaHook::SetHookNodes{{{*/ 70 70 void PentaHook::SetHookNodes(int* node_ids,int analysis_counter){ 71 71 this->hnodes[analysis_counter]= new Hook(node_ids,6); … … 73 73 } 74 74 /*}}}*/ 75 /*FUNCTION PentaHook::InitHookNeighbors{{{ 1*/75 /*FUNCTION PentaHook::InitHookNeighbors{{{*/ 76 76 void PentaHook::InitHookNeighbors(int* element_ids){ 77 77 this->hneighbors=new Hook(element_ids,2); … … 79 79 } 80 80 /*}}}*/ 81 /*FUNCTION PentaHook::SpawnTriaHook{{{ 1*/81 /*FUNCTION PentaHook::SpawnTriaHook{{{*/ 82 82 void PentaHook::SpawnTriaHook(TriaHook* triahook,int* indices){ 83 83 -
TabularUnified issm/trunk-jpl/src/c/objects/Elements/PentaHook.h ¶
r9356 r12365 19 19 Hook* hneighbors; // 2 elements, first down, second up 20 20 21 /*FUNCTION constructors, destructors {{{ 1*/21 /*FUNCTION constructors, destructors {{{*/ 22 22 PentaHook(); 23 23 PentaHook(int in_numanalyses,int matice_id, IoModel* iomodel); -
TabularUnified issm/trunk-jpl/src/c/objects/Elements/PentaRef.cpp ¶
r10628 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 26 26 27 27 /*Object constructors and destructor*/ 28 /*FUNCTION PentaRef::PentaRef(){{{ 1*/28 /*FUNCTION PentaRef::PentaRef(){{{*/ 29 29 PentaRef::PentaRef(){ 30 30 this->element_type_list=NULL; 31 31 } 32 32 /*}}}*/ 33 /*FUNCTION PentaRef::PentaRef(int* types,int nummodels){{{ 1*/33 /*FUNCTION PentaRef::PentaRef(int* types,int nummodels){{{*/ 34 34 PentaRef::PentaRef(const int nummodels){ 35 35 … … 39 39 } 40 40 /*}}}*/ 41 /*FUNCTION PentaRef::~PentaRef(){{{ 1*/41 /*FUNCTION PentaRef::~PentaRef(){{{*/ 42 42 PentaRef::~PentaRef(){ 43 43 xfree((void**)&element_type_list); … … 46 46 47 47 /*Management*/ 48 /*FUNCTION PentaRef::SetElementType{{{ 1*/48 /*FUNCTION PentaRef::SetElementType{{{*/ 49 49 void PentaRef::SetElementType(int type,int type_counter){ 50 50 … … 57 57 58 58 /*Reference Element numerics*/ 59 /*FUNCTION PentaRef::GetBMacAyealPattyn {{{ 1*/59 /*FUNCTION PentaRef::GetBMacAyealPattyn {{{*/ 60 60 void PentaRef::GetBMacAyealPattyn(double* B, double* xyz_list, GaussPenta* gauss){ 61 61 /*Compute B matrix. B=[B1 B2 B3 B4 B5 B6] where Bi is of size 5*NDOF2. … … 88 88 } 89 89 /*}}}*/ 90 /*FUNCTION PentaRef::GetBMacAyealStokes{{{ 1*/90 /*FUNCTION PentaRef::GetBMacAyealStokes{{{*/ 91 91 void PentaRef::GetBMacAyealStokes(double* B, double* xyz_list, GaussPenta* gauss){ 92 92 /*Compute B matrix. B=[B1 B2 B3 B4 B5 B6] where Bi is of size 5*NDOF2. … … 134 134 } 135 135 /*}}}*/ 136 /*FUNCTION PentaRef::GetBPattyn {{{ 1*/136 /*FUNCTION PentaRef::GetBPattyn {{{*/ 137 137 void PentaRef::GetBPattyn(double* B, double* xyz_list, GaussPenta* gauss){ 138 138 /*Compute B matrix. B=[B1 B2 B3 B4 B5 B6] where Bi is of size 5*NDOF2. … … 174 174 } 175 175 /*}}}*/ 176 /*FUNCTION PentaRef::GetBprimePattyn {{{ 1*/176 /*FUNCTION PentaRef::GetBprimePattyn {{{*/ 177 177 void PentaRef::GetBprimePattyn(double* B, double* xyz_list, GaussPenta* gauss_coord){ 178 178 /*Compute B prime matrix. B=[B1 B2 B3 B4 B5 B6] where Bi is of size 5*NDOF2. … … 212 212 } 213 213 /*}}}*/ 214 /*FUNCTION PentaRef::GetBprimeMacAyealStokes{{{ 1*/214 /*FUNCTION PentaRef::GetBprimeMacAyealStokes{{{*/ 215 215 void PentaRef::GetBprimeMacAyealStokes(double* Bprime, double* xyz_list, GaussPenta* gauss){ 216 216 /*Compute Bprime matrix. Bprime=[Bprime1 Bprime2 Bprime3 Bprime4 Bprime5 Bprime6] where Bprimei is of size 5*NDOF2. … … 252 252 } 253 253 /*}}}*/ 254 /*FUNCTION PentaRef::GetBStokes {{{ 1*/254 /*FUNCTION PentaRef::GetBStokes {{{*/ 255 255 void PentaRef::GetBStokes(double* B, double* xyz_list, GaussPenta* gauss){ 256 256 … … 319 319 } 320 320 /*}}}*/ 321 /*FUNCTION PentaRef::GetBprimeStokes {{{ 1*/321 /*FUNCTION PentaRef::GetBprimeStokes {{{*/ 322 322 void PentaRef::GetBprimeStokes(double* B_prime, double* xyz_list, GaussPenta* gauss){ 323 323 /* Compute B' matrix. B'=[B1' B2' B3' B4' B5' B6' Bb'] where Bi' is of size 3*NDOF2. … … 386 386 } 387 387 /*}}}*/ 388 /*FUNCTION PentaRef::GetBAdvec{{{ 1*/388 /*FUNCTION PentaRef::GetBAdvec{{{*/ 389 389 void PentaRef::GetBAdvec(double* B_advec, double* xyz_list, GaussPenta* gauss){ 390 390 /*Compute B matrix. B=[B1 B2 B3 B4 B5 B6] where Bi is of size 5*NDOF1. … … 413 413 } 414 414 /*}}}*/ 415 /*FUNCTION PentaRef::GetBConduct{{{ 1*/415 /*FUNCTION PentaRef::GetBConduct{{{*/ 416 416 void PentaRef::GetBConduct(double* B_conduct, double* xyz_list, GaussPenta* gauss){ 417 417 /*Compute B matrix. B=[B1 B2 B3 B4 B5 B6] where Bi is of size 5*NDOF1. … … 440 440 } 441 441 /*}}}*/ 442 /*FUNCTION PentaRef::GetBVert{{{ 1*/442 /*FUNCTION PentaRef::GetBVert{{{*/ 443 443 void PentaRef::GetBVert(double* B, double* xyz_list, GaussPenta* gauss){ 444 444 /* Compute B matrix. B=[dh1/dz dh2/dz dh3/dz dh4/dz dh5/dz dh6/dz]; … … 458 458 } 459 459 /*}}}*/ 460 /*FUNCTION PentaRef::GetBprimeAdvec{{{ 1*/460 /*FUNCTION PentaRef::GetBprimeAdvec{{{*/ 461 461 void PentaRef::GetBprimeAdvec(double* Bprime_advec, double* xyz_list, GaussPenta* gauss){ 462 462 /*Compute B matrix. B=[B1 B2 B3 B4 B5 B6] where Bi is of size 5*NDOF1. … … 485 485 } 486 486 /*}}}*/ 487 /*FUNCTION PentaRef::GetBprimeVert{{{ 1*/487 /*FUNCTION PentaRef::GetBprimeVert{{{*/ 488 488 void PentaRef::GetBprimeVert(double* B, double* xyz_list, GaussPenta* gauss){ 489 489 /* Compute Bprime matrix. Bprime=[L1 L2 L3 L4 L5 L6] where Li is the nodal function for node i*/ … … 493 493 } 494 494 /*}}}*/ 495 /*FUNCTION PentaRef::GetL{{{ 1*/495 /*FUNCTION PentaRef::GetL{{{*/ 496 496 void PentaRef::GetL(double* L, GaussPenta* gauss, int numdof){ 497 497 /*Compute L matrix. L=[L1 L2 L3] where Li is square and of size numdof. … … 530 530 } 531 531 /*}}}*/ 532 /*FUNCTION PentaRef::GetLStokes{{{ 1*/532 /*FUNCTION PentaRef::GetLStokes{{{*/ 533 533 void PentaRef::GetLStokes(double* LStokes, GaussPenta* gauss){ 534 534 /* … … 565 565 } 566 566 /*}}}*/ 567 /*FUNCTION PentaRef::GetLprimeStokes {{{ 1*/567 /*FUNCTION PentaRef::GetLprimeStokes {{{*/ 568 568 void PentaRef::GetLprimeStokes(double* LprimeStokes, double* xyz_list, GaussPenta* gauss){ 569 569 … … 677 677 } 678 678 /*}}}*/ 679 /*FUNCTION PentaRef::GetLMacAyealStokes {{{ 1*/679 /*FUNCTION PentaRef::GetLMacAyealStokes {{{*/ 680 680 void PentaRef::GetLMacAyealStokes(double* LStokes, GaussPenta* gauss){ 681 681 /* … … 727 727 } 728 728 /*}}}*/ 729 /*FUNCTION PentaRef::GetLprimeMacAyealStokes {{{ 1*/729 /*FUNCTION PentaRef::GetLprimeMacAyealStokes {{{*/ 730 730 void PentaRef::GetLprimeMacAyealStokes(double* LprimeStokes, double* xyz_list, GaussPenta* gauss){ 731 731 … … 794 794 } 795 795 /*}}}*/ 796 /*FUNCTION PentaRef::GetLStokesMacAyeal {{{ 1*/796 /*FUNCTION PentaRef::GetLStokesMacAyeal {{{*/ 797 797 void PentaRef::GetLStokesMacAyeal(double* LStokes, GaussPenta* gauss){ 798 798 /* … … 840 840 } 841 841 /*}}}*/ 842 /*FUNCTION PentaRef::GetLprimeStokesMacAyeal {{{ 1*/842 /*FUNCTION PentaRef::GetLprimeStokesMacAyeal {{{*/ 843 843 void PentaRef::GetLprimeStokesMacAyeal(double* LprimeStokes, double* xyz_list, GaussPenta* gauss){ 844 844 … … 879 879 } 880 880 /*}}}*/ 881 /*FUNCTION PentaRef::GetJacobian {{{ 1*/881 /*FUNCTION PentaRef::GetJacobian {{{*/ 882 882 void PentaRef::GetJacobian(double* J, double* xyz_list,GaussPenta* gauss){ 883 883 … … 938 938 } 939 939 /*}}}*/ 940 /*FUNCTION PentaRef::GetJacobianDeterminant {{{ 1*/940 /*FUNCTION PentaRef::GetJacobianDeterminant {{{*/ 941 941 void PentaRef::GetJacobianDeterminant(double* Jdet, double* xyz_list,GaussPenta* gauss){ 942 942 /*On a penta, Jacobian varies according to coordinates. We need to get the Jacobian, and take … … 953 953 } 954 954 /*}}}*/ 955 /*FUNCTION PentaRef::GetTriaJacobianDeterminant{{{ 1*/955 /*FUNCTION PentaRef::GetTriaJacobianDeterminant{{{*/ 956 956 void PentaRef::GetTriaJacobianDeterminant(double* Jdet, double* xyz_list,GaussPenta* gauss){ 957 957 /*The Jacobian determinant is constant over the element, discard the gaussian points. … … 975 975 } 976 976 /*}}}*/ 977 /*FUNCTION PentaRef::GetSegmentJacobianDeterminant{{{ 1*/977 /*FUNCTION PentaRef::GetSegmentJacobianDeterminant{{{*/ 978 978 void PentaRef::GetSegmentJacobianDeterminant(double* Jdet, double* xyz_list,GaussPenta* gauss){ 979 979 /*The Jacobian determinant is constant over the element, discard the gaussian points. … … 994 994 } 995 995 /*}}}*/ 996 /*FUNCTION PentaRef::GetJacobianInvert {{{ 1*/996 /*FUNCTION PentaRef::GetJacobianInvert {{{*/ 997 997 void PentaRef::GetJacobianInvert(double* Jinv, double* xyz_list,GaussPenta* gauss){ 998 998 … … 1007 1007 } 1008 1008 /*}}}*/ 1009 /*FUNCTION PentaRef::GetNodalFunctionsMINI{{{ 1*/1009 /*FUNCTION PentaRef::GetNodalFunctionsMINI{{{*/ 1010 1010 void PentaRef::GetNodalFunctionsMINI(double* l1l7, GaussPenta* gauss){ 1011 1011 /*This routine returns the values of the nodal functions at the gaussian point.*/ … … 1021 1021 } 1022 1022 /*}}}*/ 1023 /*FUNCTION PentaRef::GetNodalFunctionsMINIDerivatives{{{ 1*/1023 /*FUNCTION PentaRef::GetNodalFunctionsMINIDerivatives{{{*/ 1024 1024 void PentaRef::GetNodalFunctionsMINIDerivatives(double* dh1dh7,double* xyz_list, GaussPenta* gauss){ 1025 1025 … … 1052 1052 } 1053 1053 /*}}}*/ 1054 /*FUNCTION PentaRef::GetNodalFunctionsMINIDerivativesReference{{{ 1*/1054 /*FUNCTION PentaRef::GetNodalFunctionsMINIDerivativesReference{{{*/ 1055 1055 void PentaRef::GetNodalFunctionsMINIDerivativesReference(double* dl1dl7,GaussPenta* gauss){ 1056 1056 … … 1098 1098 } 1099 1099 /*}}}*/ 1100 /*FUNCTION PentaRef::GetNodalFunctionsP1 {{{ 1*/1100 /*FUNCTION PentaRef::GetNodalFunctionsP1 {{{*/ 1101 1101 void PentaRef::GetNodalFunctionsP1(double* l1l6, GaussPenta* gauss){ 1102 1102 /*This routine returns the values of the nodal functions at the gaussian point.*/ … … 1111 1111 } 1112 1112 /*}}}*/ 1113 /*FUNCTION PentaRef::GetNodalFunctionsP1Derivatives {{{ 1*/1113 /*FUNCTION PentaRef::GetNodalFunctionsP1Derivatives {{{*/ 1114 1114 void PentaRef::GetNodalFunctionsP1Derivatives(double* dh1dh6,double* xyz_list, GaussPenta* gauss){ 1115 1115 … … 1140 1140 } 1141 1141 /*}}}*/ 1142 /*FUNCTION PentaRef::GetNodalFunctionsP1DerivativesReference {{{ 1*/1142 /*FUNCTION PentaRef::GetNodalFunctionsP1DerivativesReference {{{*/ 1143 1143 void PentaRef::GetNodalFunctionsP1DerivativesReference(double* dl1dl6,GaussPenta* gauss){ 1144 1144 … … 1184 1184 } 1185 1185 /*}}}*/ 1186 /*FUNCTION PentaRef::GetQuadNodalFunctions {{{ 1*/1186 /*FUNCTION PentaRef::GetQuadNodalFunctions {{{*/ 1187 1187 void PentaRef::GetQuadNodalFunctions(double* l1l4,GaussPenta* gauss,int index1,int index2,int index3,int index4){ 1188 1188 /*This routine returns the values of the nodal functions at the gaussian point.*/ … … 1204 1204 } 1205 1205 /*}}}*/ 1206 /*FUNCTION PentaRef::GetQuadJacobianDeterminant{{{ 1*/1206 /*FUNCTION PentaRef::GetQuadJacobianDeterminant{{{*/ 1207 1207 void PentaRef::GetQuadJacobianDeterminant(double* Jdet,double xyz_list[4][3],GaussPenta* gauss){ 1208 1208 /*This routine returns the values of the nodal functions at the gaussian point.*/ … … 1230 1230 } 1231 1231 /*}}}*/ 1232 /*FUNCTION PentaRef::GetInputValue{{{ 1*/1232 /*FUNCTION PentaRef::GetInputValue{{{*/ 1233 1233 void PentaRef::GetInputValue(double* pvalue,double* plist,GaussPenta* gauss){ 1234 1234 /*P1 interpolation on Gauss point*/ … … 1245 1245 } 1246 1246 /*}}}*/ 1247 /*FUNCTION PentaRef::GetInputDerivativeValue{{{ 1*/1247 /*FUNCTION PentaRef::GetInputDerivativeValue{{{*/ 1248 1248 void PentaRef::GetInputDerivativeValue(double* p, double* plist,double* xyz_list, GaussPenta* gauss){ 1249 1249 /*From node values of parameter p (p_list[0], p_list[1], p_list[2], p_list[3], p_list[4] and p_list[4]), return parameter derivative value at gaussian point specified by gauss_coord: -
TabularUnified issm/trunk-jpl/src/c/objects/Elements/Tria.cpp ¶
r12326 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 23 23 24 24 /*Constructors/destructor/copy*/ 25 /*FUNCTION Tria::Tria(){{{ 1*/25 /*FUNCTION Tria::Tria(){{{*/ 26 26 Tria::Tria(){ 27 27 … … 38 38 } 39 39 /*}}}*/ 40 /*FUNCTION Tria::Tria(int id, int sid,int index, IoModel* iomodel,int nummodels){{{ 1*/40 /*FUNCTION Tria::Tria(int id, int sid,int index, IoModel* iomodel,int nummodels){{{*/ 41 41 Tria::Tria(int tria_id, int tria_sid, int index, IoModel* iomodel,int nummodels) 42 42 :TriaRef(nummodels) … … 66 66 } 67 67 /*}}}*/ 68 /*FUNCTION Tria::~Tria(){{{ 1*/68 /*FUNCTION Tria::~Tria(){{{*/ 69 69 Tria::~Tria(){ 70 70 delete inputs; … … 73 73 } 74 74 /*}}}*/ 75 /*FUNCTION Tria::copy {{{ 1*/75 /*FUNCTION Tria::copy {{{*/ 76 76 Object* Tria::copy() { 77 77 … … 124 124 125 125 /*Other*/ 126 /*FUNCTION Tria::AverageOntoPartition {{{ 1*/126 /*FUNCTION Tria::AverageOntoPartition {{{*/ 127 127 void Tria::AverageOntoPartition(Vector* partition_contributions,Vector* partition_areas,double* vertex_response,double* qmu_part){ 128 128 … … 164 164 } 165 165 /*}}}*/ 166 /*FUNCTION Tria::CreateKMatrix {{{ 1*/166 /*FUNCTION Tria::CreateKMatrix {{{*/ 167 167 void Tria::CreateKMatrix(Matrix* Kff, Matrix* Kfs,Vector* df){ 168 168 … … 172 172 parameters->FindParam(&analysis_type,AnalysisTypeEnum); 173 173 174 /*Checks in debugging mode{{{ 2*/174 /*Checks in debugging mode{{{*/ 175 175 _assert_(this->nodes && this->matice && this->matpar && this->parameters && this->inputs); 176 176 /*}}}*/ … … 224 224 } 225 225 /*}}}*/ 226 /*FUNCTION Tria::CreateKMatrixMelting {{{ 1*/226 /*FUNCTION Tria::CreateKMatrixMelting {{{*/ 227 227 ElementMatrix* Tria::CreateKMatrixMelting(void){ 228 228 … … 268 268 } 269 269 /*}}}*/ 270 /*FUNCTION Tria::CreateKMatrixPrognostic {{{ 1*/270 /*FUNCTION Tria::CreateKMatrixPrognostic {{{*/ 271 271 ElementMatrix* Tria::CreateKMatrixPrognostic(void){ 272 272 … … 282 282 } 283 283 /*}}}*/ 284 /*FUNCTION Tria::CreateKMatrixPrognostic_CG {{{ 1*/284 /*FUNCTION Tria::CreateKMatrixPrognostic_CG {{{*/ 285 285 ElementMatrix* Tria::CreateKMatrixPrognostic_CG(void){ 286 286 … … 402 402 } 403 403 /*}}}*/ 404 /*FUNCTION Tria::CreateKMatrixPrognostic_DG {{{ 1*/404 /*FUNCTION Tria::CreateKMatrixPrognostic_DG {{{*/ 405 405 ElementMatrix* Tria::CreateKMatrixPrognostic_DG(void){ 406 406 … … 477 477 } 478 478 /*}}}*/ 479 /*FUNCTION Tria::CreateKMatrixSlope {{{ 1*/479 /*FUNCTION Tria::CreateKMatrixSlope {{{*/ 480 480 ElementMatrix* Tria::CreateKMatrixSlope(void){ 481 481 … … 517 517 } 518 518 /*}}}*/ 519 /*FUNCTION Tria::CreatePVector {{{ 1*/519 /*FUNCTION Tria::CreatePVector {{{*/ 520 520 void Tria::CreatePVector(Vector* pf){ 521 521 … … 578 578 } 579 579 /*}}}*/ 580 /*FUNCTION Tria::CreatePVectorPrognostic{{{ 1*/580 /*FUNCTION Tria::CreatePVectorPrognostic{{{*/ 581 581 ElementVector* Tria::CreatePVectorPrognostic(void){ 582 582 … … 591 591 } 592 592 /*}}}*/ 593 /*FUNCTION Tria::CreatePVectorPrognostic_CG {{{ 1*/593 /*FUNCTION Tria::CreatePVectorPrognostic_CG {{{*/ 594 594 ElementVector* Tria::CreatePVectorPrognostic_CG(void){ 595 595 … … 642 642 } 643 643 /*}}}*/ 644 /*FUNCTION Tria::CreatePVectorPrognostic_DG {{{ 1*/644 /*FUNCTION Tria::CreatePVectorPrognostic_DG {{{*/ 645 645 ElementVector* Tria::CreatePVectorPrognostic_DG(void){ 646 646 … … 687 687 } 688 688 /*}}}*/ 689 /*FUNCTION Tria::CreatePVectorSlope {{{ 1*/689 /*FUNCTION Tria::CreatePVectorSlope {{{*/ 690 690 ElementVector* Tria::CreatePVectorSlope(void){ 691 691 … … 740 740 } 741 741 /*}}}*/ 742 /*FUNCTION Tria::CreateJacobianMatrix{{{ 1*/742 /*FUNCTION Tria::CreateJacobianMatrix{{{*/ 743 743 void Tria::CreateJacobianMatrix(Matrix* Jff){ 744 744 … … 748 748 parameters->FindParam(&analysis_type,AnalysisTypeEnum); 749 749 750 /*Checks in debugging {{{ 2*/750 /*Checks in debugging {{{*/ 751 751 _assert_(this->nodes && this->matice && this->matpar && this->parameters && this->inputs); 752 752 /*}}}*/ … … 773 773 } 774 774 /*}}}*/ 775 /*FUNCTION Tria::ComputeBasalStress {{{ 1*/775 /*FUNCTION Tria::ComputeBasalStress {{{*/ 776 776 void Tria::ComputeBasalStress(Vector* eps){ 777 777 _error_("Not Implemented yet"); 778 778 } 779 779 /*}}}*/ 780 /*FUNCTION Tria::ComputeStrainRate {{{ 1*/780 /*FUNCTION Tria::ComputeStrainRate {{{*/ 781 781 void Tria::ComputeStrainRate(Vector* eps){ 782 782 _error_("Not Implemented yet"); 783 783 } 784 784 /*}}}*/ 785 /*FUNCTION Tria::ComputeStressTensor {{{ 1*/785 /*FUNCTION Tria::ComputeStressTensor {{{*/ 786 786 void Tria::ComputeStressTensor(){ 787 787 … … 834 834 } 835 835 /*}}}*/ 836 /*FUNCTION Tria::Configure {{{ 1*/836 /*FUNCTION Tria::Configure {{{*/ 837 837 void Tria::Configure(Elements* elementsin, Loads* loadsin, DataSet* nodesin, Materials* materialsin, Parameters* parametersin){ 838 838 … … 864 864 } 865 865 /*}}}*/ 866 /*FUNCTION Tria::DeepEcho{{{ 1*/866 /*FUNCTION Tria::DeepEcho{{{*/ 867 867 void Tria::DeepEcho(void){ 868 868 … … 899 899 } 900 900 /*}}}*/ 901 /*FUNCTION Tria::DeleteResults {{{ 1*/901 /*FUNCTION Tria::DeleteResults {{{*/ 902 902 void Tria::DeleteResults(void){ 903 903 … … 908 908 } 909 909 /*}}}*/ 910 /*FUNCTION Tria::Echo{{{ 1*/910 /*FUNCTION Tria::Echo{{{*/ 911 911 void Tria::Echo(void){ 912 912 printf("Tria:\n"); … … 940 940 } 941 941 /*}}}*/ 942 /*FUNCTION Tria::ObjectEnum{{{ 1*/942 /*FUNCTION Tria::ObjectEnum{{{*/ 943 943 int Tria::ObjectEnum(void){ 944 944 … … 947 947 } 948 948 /*}}}*/ 949 /*FUNCTION Tria::GetArea {{{ 1*/949 /*FUNCTION Tria::GetArea {{{*/ 950 950 double Tria::GetArea(void){ 951 951 … … 964 964 } 965 965 /*}}}*/ 966 /*FUNCTION Tria::GetDofList {{{ 1*/966 /*FUNCTION Tria::GetDofList {{{*/ 967 967 void Tria::GetDofList(int** pdoflist, int approximation_enum,int setenum){ 968 968 … … 987 987 } 988 988 /*}}}*/ 989 /*FUNCTION Tria::GetDofList1 {{{ 1*/989 /*FUNCTION Tria::GetDofList1 {{{*/ 990 990 void Tria::GetDofList1(int* doflist){ 991 991 … … 995 995 } 996 996 /*}}}*/ 997 /*FUNCTION Tria::GetElementType {{{ 1*/997 /*FUNCTION Tria::GetElementType {{{*/ 998 998 int Tria::GetElementType(){ 999 999 … … 1003 1003 } 1004 1004 /*}}}*/ 1005 /*FUNCTION Tria::GetHorizontalNeighboorSids {{{ 1*/1005 /*FUNCTION Tria::GetHorizontalNeighboorSids {{{*/ 1006 1006 int* Tria::GetHorizontalNeighboorSids(){ 1007 1007 … … 1011 1011 } 1012 1012 /*}}}*/ 1013 /*FUNCTION Tria::GetNodeIndex {{{ 1*/1013 /*FUNCTION Tria::GetNodeIndex {{{*/ 1014 1014 int Tria::GetNodeIndex(Node* node){ 1015 1015 … … 1022 1022 } 1023 1023 /*}}}*/ 1024 /*FUNCTION Tria::GetInputListOnVertices(double* pvalue,int enumtype) {{{ 1*/1024 /*FUNCTION Tria::GetInputListOnVertices(double* pvalue,int enumtype) {{{*/ 1025 1025 void Tria::GetInputListOnVertices(double* pvalue,int enumtype){ 1026 1026 … … 1047 1047 } 1048 1048 /*}}}*/ 1049 /*FUNCTION Tria::GetInputListOnVertices(double* pvalue,int enumtype,double defaultvalue) {{{ 1*/1049 /*FUNCTION Tria::GetInputListOnVertices(double* pvalue,int enumtype,double defaultvalue) {{{*/ 1050 1050 void Tria::GetInputListOnVertices(double* pvalue,int enumtype,double defaultvalue){ 1051 1051 … … 1073 1073 } 1074 1074 /*}}}*/ 1075 /*FUNCTION Tria::GetInputListOnVertices(double* pvalue,int enumtype,double defaultvalue,int index) TO BE REMOVED{{{ 1*/1075 /*FUNCTION Tria::GetInputListOnVertices(double* pvalue,int enumtype,double defaultvalue,int index) TO BE REMOVED{{{*/ 1076 1076 void Tria::GetInputListOnVertices(double* pvalue,int enumtype,double defaultvalue,int index){ 1077 1077 … … 1099 1099 } 1100 1100 /*}}}*/ 1101 /*FUNCTION Tria::GetInputValue(double* pvalue,Node* node,int enumtype) {{{ 1*/1101 /*FUNCTION Tria::GetInputValue(double* pvalue,Node* node,int enumtype) {{{*/ 1102 1102 void Tria::GetInputValue(double* pvalue,Node* node,int enumtype){ 1103 1103 … … 1112 1112 } 1113 1113 /*}}}*/ 1114 /*FUNCTION Tria::GetSidList {{{ 1*/1114 /*FUNCTION Tria::GetSidList {{{*/ 1115 1115 void Tria::GetSidList(int* sidlist){ 1116 1116 for(int i=0;i<NUMVERTICES;i++) sidlist[i]=nodes[i]->GetSidList(); 1117 1117 } 1118 1118 /*}}}*/ 1119 /*FUNCTION Tria::GetConnectivityList {{{ 1*/1119 /*FUNCTION Tria::GetConnectivityList {{{*/ 1120 1120 void Tria::GetConnectivityList(int* connectivity){ 1121 1121 for(int i=0;i<NUMVERTICES;i++) connectivity[i]=nodes[i]->GetConnectivity(); 1122 1122 } 1123 1123 /*}}}*/ 1124 /*FUNCTION Tria::GetSolutionFromInputs{{{ 1*/1124 /*FUNCTION Tria::GetSolutionFromInputs{{{*/ 1125 1125 void Tria::GetSolutionFromInputs(Vector* solution){ 1126 1126 … … 1150 1150 } 1151 1151 /*}}}*/ 1152 /*FUNCTION Tria::GetStrainRate2d(double* epsilon,double* xyz_list, GaussTria* gauss, Input* vx_input, Input* vy_input){{{ 1*/1152 /*FUNCTION Tria::GetStrainRate2d(double* epsilon,double* xyz_list, GaussTria* gauss, Input* vx_input, Input* vy_input){{{*/ 1153 1153 void Tria::GetStrainRate2d(double* epsilon,double* xyz_list, GaussTria* gauss, Input* vx_input, Input* vy_input){ 1154 1154 /*Compute the 2d Strain Rate (3 components): … … 1172 1172 } 1173 1173 /*}}}*/ 1174 /*FUNCTION Tria::GetVectorFromInputs{{{ 1*/1174 /*FUNCTION Tria::GetVectorFromInputs{{{*/ 1175 1175 void Tria::GetVectorFromInputs(Vector* vector,int input_enum){ 1176 1176 … … 1191 1191 } 1192 1192 /*}}}*/ 1193 /*FUNCTION Tria::GetVectorFromResults{{{ 1*/1193 /*FUNCTION Tria::GetVectorFromResults{{{*/ 1194 1194 void Tria::GetVectorFromResults(Vector* vector,int offset,int interp){ 1195 1195 … … 1211 1211 } 1212 1212 /*}}}*/ 1213 /*FUNCTION Tria::Id {{{ 1*/1213 /*FUNCTION Tria::Id {{{*/ 1214 1214 int Tria::Id(){ 1215 1215 … … 1218 1218 } 1219 1219 /*}}}*/ 1220 /*FUNCTION Tria::Sid {{{ 1*/1220 /*FUNCTION Tria::Sid {{{*/ 1221 1221 int Tria::Sid(){ 1222 1222 … … 1225 1225 } 1226 1226 /*}}}*/ 1227 /*FUNCTION Tria::InputArtificialNoise{{{ 1*/1227 /*FUNCTION Tria::InputArtificialNoise{{{*/ 1228 1228 void Tria::InputArtificialNoise(int enum_type,double min,double max){ 1229 1229 … … 1238 1238 } 1239 1239 /*}}}*/ 1240 /*FUNCTION Tria::InputConvergence{{{ 1*/1240 /*FUNCTION Tria::InputConvergence{{{*/ 1241 1241 bool Tria::InputConvergence(double* eps, int* enums,int num_enums,int* criterionenums,double* criterionvalues,int num_criterionenums){ 1242 1242 … … 1268 1268 } 1269 1269 /*}}}*/ 1270 /*FUNCTION Tria::InputDepthAverageAtBase {{{ 1*/1270 /*FUNCTION Tria::InputDepthAverageAtBase {{{*/ 1271 1271 void Tria::InputDepthAverageAtBase(int enum_type,int average_enum_type,int object_enum){ 1272 1272 … … 1297 1297 } 1298 1298 /*}}}*/ 1299 /*FUNCTION Tria::InputDuplicate{{{ 1*/1299 /*FUNCTION Tria::InputDuplicate{{{*/ 1300 1300 void Tria::InputDuplicate(int original_enum,int new_enum){ 1301 1301 … … 1305 1305 } 1306 1306 /*}}}*/ 1307 /*FUNCTION Tria::InputScale{{{ 1*/1307 /*FUNCTION Tria::InputScale{{{*/ 1308 1308 void Tria::InputScale(int enum_type,double scale_factor){ 1309 1309 … … 1318 1318 } 1319 1319 /*}}}*/ 1320 /*FUNCTION Tria::InputToResult{{{ 1*/1320 /*FUNCTION Tria::InputToResult{{{*/ 1321 1321 void Tria::InputToResult(int enum_type,int step,double time){ 1322 1322 … … 1341 1341 } 1342 1342 /*}}}*/ 1343 /*FUNCTION Tria::InputUpdateFromConstant(int value, int name);{{{ 1*/1343 /*FUNCTION Tria::InputUpdateFromConstant(int value, int name);{{{*/ 1344 1344 void Tria::InputUpdateFromConstant(int constant, int name){ 1345 1345 /*Check that name is an element input*/ … … 1350 1350 } 1351 1351 /*}}}*/ 1352 /*FUNCTION Tria::InputUpdateFromConstant(double value, int name);{{{ 1*/1352 /*FUNCTION Tria::InputUpdateFromConstant(double value, int name);{{{*/ 1353 1353 void Tria::InputUpdateFromConstant(double constant, int name){ 1354 1354 /*Check that name is an element input*/ … … 1359 1359 } 1360 1360 /*}}}*/ 1361 /*FUNCTION Tria::InputUpdateFromConstant(bool value, int name);{{{ 1*/1361 /*FUNCTION Tria::InputUpdateFromConstant(bool value, int name);{{{*/ 1362 1362 void Tria::InputUpdateFromConstant(bool constant, int name){ 1363 1363 /*Check that name is an element input*/ … … 1368 1368 } 1369 1369 /*}}}*/ 1370 /*FUNCTION Tria::InputUpdateFromIoModel{{{ 1*/1370 /*FUNCTION Tria::InputUpdateFromIoModel{{{*/ 1371 1371 void Tria::InputUpdateFromIoModel(int index, IoModel* iomodel){ //i is the element index 1372 1372 … … 1454 1454 } 1455 1455 /*}}}*/ 1456 /*FUNCTION Tria::InputUpdateFromSolution {{{ 1*/1456 /*FUNCTION Tria::InputUpdateFromSolution {{{*/ 1457 1457 void Tria::InputUpdateFromSolution(double* solution){ 1458 1458 … … 1509 1509 } 1510 1510 /*}}}*/ 1511 /*FUNCTION Tria::InputUpdateFromSolutionOneDof{{{ 1*/1511 /*FUNCTION Tria::InputUpdateFromSolutionOneDof{{{*/ 1512 1512 void Tria::InputUpdateFromSolutionOneDof(double* solution,int enum_type){ 1513 1513 … … 1533 1533 } 1534 1534 /*}}}*/ 1535 /*FUNCTION Tria::InputUpdateFromSolutionPrognostic{{{ 1*/1535 /*FUNCTION Tria::InputUpdateFromSolutionPrognostic{{{*/ 1536 1536 void Tria::InputUpdateFromSolutionPrognostic(double* solution){ 1537 1537 … … 1600 1600 } 1601 1601 /*}}}*/ 1602 /*FUNCTION Tria::InputUpdateFromVector(double* vector, int name, int type);{{{ 1*/1602 /*FUNCTION Tria::InputUpdateFromVector(double* vector, int name, int type);{{{*/ 1603 1603 void Tria::InputUpdateFromVector(double* vector, int name, int type){ 1604 1604 … … 1632 1632 } 1633 1633 /*}}}*/ 1634 /*FUNCTION Tria::InputUpdateFromVector(int* vector, int name, int type);{{{ 1*/1634 /*FUNCTION Tria::InputUpdateFromVector(int* vector, int name, int type);{{{*/ 1635 1635 void Tria::InputUpdateFromVector(int* vector, int name, int type){ 1636 1636 _error_(" not supported yet!"); 1637 1637 } 1638 1638 /*}}}*/ 1639 /*FUNCTION Tria::InputUpdateFromVector(bool* vector, int name, int type);{{{ 1*/1639 /*FUNCTION Tria::InputUpdateFromVector(bool* vector, int name, int type);{{{*/ 1640 1640 void Tria::InputUpdateFromVector(bool* vector, int name, int type){ 1641 1641 _error_(" not supported yet!"); 1642 1642 } 1643 1643 /*}}}*/ 1644 /*FUNCTION Tria::InputCreate(double scalar,int enum,int code);{{{ 1*/1644 /*FUNCTION Tria::InputCreate(double scalar,int enum,int code);{{{*/ 1645 1645 void Tria::InputCreate(double scalar,int name,int code){ 1646 1646 … … 1661 1661 } 1662 1662 /*}}}*/ 1663 /*FUNCTION Tria::InputCreate(double* vector,int index,IoModel* iomodel,int M,int N,int vector_type,int vector_enum,int code){{{ 1*/1663 /*FUNCTION Tria::InputCreate(double* vector,int index,IoModel* iomodel,int M,int N,int vector_type,int vector_enum,int code){{{*/ 1664 1664 void Tria::InputCreate(double* vector, int index,IoModel* iomodel,int M,int N,int vector_type,int vector_enum,int code){//index into elements 1665 1665 … … 1751 1751 } 1752 1752 /*}}}*/ 1753 /*FUNCTION Tria::IsInput{{{ 1*/1753 /*FUNCTION Tria::IsInput{{{*/ 1754 1754 bool Tria::IsInput(int name){ 1755 1755 if ( … … 1785 1785 } 1786 1786 /*}}}*/ 1787 /*FUNCTION Tria::IsOnBed {{{ 1*/1787 /*FUNCTION Tria::IsOnBed {{{*/ 1788 1788 bool Tria::IsOnBed(){ 1789 1789 … … 1793 1793 } 1794 1794 /*}}}*/ 1795 /*FUNCTION Tria::IsFloating {{{ 1*/1795 /*FUNCTION Tria::IsFloating {{{*/ 1796 1796 bool Tria::IsFloating(){ 1797 1797 … … 1801 1801 } 1802 1802 /*}}}*/ 1803 /*FUNCTION Tria::IsNodeOnShelf {{{ 1*/1803 /*FUNCTION Tria::IsNodeOnShelf {{{*/ 1804 1804 bool Tria::IsNodeOnShelf(){ 1805 1805 … … 1816 1816 } 1817 1817 /*}}}*/ 1818 /*FUNCTION Tria::IsNodeOnShelfFromFlags {{{ 1*/1818 /*FUNCTION Tria::IsNodeOnShelfFromFlags {{{*/ 1819 1819 bool Tria::IsNodeOnShelfFromFlags(double* flags){ 1820 1820 … … 1831 1831 } 1832 1832 /*}}}*/ 1833 /*FUNCTION Tria::IsOnWater {{{ 1*/1833 /*FUNCTION Tria::IsOnWater {{{*/ 1834 1834 bool Tria::IsOnWater(){ 1835 1835 … … 1890 1890 1891 1891 }/*}}}*/ 1892 /*FUNCTION Tria::MigrateGroundingLine{{{ 1*/1892 /*FUNCTION Tria::MigrateGroundingLine{{{*/ 1893 1893 void Tria::MigrateGroundingLine(double* old_floating_ice,double* sheet_ungrounding){ 1894 1894 … … 1966 1966 } 1967 1967 /*}}}*/ 1968 /*FUNCTION Tria::MyRank {{{ 1*/1968 /*FUNCTION Tria::MyRank {{{*/ 1969 1969 int Tria::MyRank(void){ 1970 1970 extern int my_rank; … … 1972 1972 } 1973 1973 /*}}}*/ 1974 /*FUNCTION Tria::NodalValue {{{ 1*/1974 /*FUNCTION Tria::NodalValue {{{*/ 1975 1975 int Tria::NodalValue(double* pvalue, int index, int natureofdataenum,bool process_units){ 1976 1976 … … 2003 2003 } 2004 2004 /*}}}*/ 2005 /*FUNCTION Tria::PatchFill{{{ 1*/2005 /*FUNCTION Tria::PatchFill{{{*/ 2006 2006 void Tria::PatchFill(int* prow, Patch* patch){ 2007 2007 … … 2030 2030 } 2031 2031 /*}}}*/ 2032 /*FUNCTION Tria::PatchSize{{{ 1*/2032 /*FUNCTION Tria::PatchSize{{{*/ 2033 2033 void Tria::PatchSize(int* pnumrows, int* pnumvertices,int* pnumnodes){ 2034 2034 … … 2054 2054 } 2055 2055 /*}}}*/ 2056 /*FUNCTION Tria::PotentialSheetUngrounding{{{ 1*/2056 /*FUNCTION Tria::PotentialSheetUngrounding{{{*/ 2057 2057 void Tria::PotentialSheetUngrounding(Vector* potential_sheet_ungrounding){ 2058 2058 … … 2083 2083 } 2084 2084 /*}}}*/ 2085 /*FUNCTION Tria::PositiveDegreeDay{{{ 1*/2085 /*FUNCTION Tria::PositiveDegreeDay{{{*/ 2086 2086 void Tria::PositiveDegreeDay(double* pdds,double* pds,double signorm){ 2087 2087 … … 2318 2318 } 2319 2319 /*}}}*/ 2320 /*FUNCTION Tria::ProcessResultsUnits{{{ 1*/2320 /*FUNCTION Tria::ProcessResultsUnits{{{*/ 2321 2321 void Tria::ProcessResultsUnits(void){ 2322 2322 … … 2329 2329 } 2330 2330 /*}}}*/ 2331 /*FUNCTION Tria::RequestedOutput{{{ 1*/2331 /*FUNCTION Tria::RequestedOutput{{{*/ 2332 2332 void Tria::RequestedOutput(int output_enum,int step,double time){ 2333 2333 … … 2357 2357 } 2358 2358 /*}}}*/ 2359 /*FUNCTION Tria::SetClone {{{ 1*/2359 /*FUNCTION Tria::SetClone {{{*/ 2360 2360 void Tria::SetClone(int* minranks){ 2361 2361 2362 2362 _error_("not implemented yet"); 2363 2363 } 2364 /*}}} 1*/2365 /*FUNCTION Tria::SmearFunction {{{ 1*/2364 /*}}}*/ 2365 /*FUNCTION Tria::SmearFunction {{{*/ 2366 2366 void Tria::SmearFunction(Vector* smearedvector,double (*WeightFunction)(double distance,double radius),double radius){ 2367 2367 _error_("not implemented yet"); 2368 2368 2369 2369 } 2370 /*}}} 1*/2371 /*FUNCTION Tria::SetCurrentConfiguration {{{ 1*/2370 /*}}}*/ 2371 /*FUNCTION Tria::SetCurrentConfiguration {{{*/ 2372 2372 void Tria::SetCurrentConfiguration(Elements* elementsin, Loads* loadsin, DataSet* nodesin, Materials* materialsin, Parameters* parametersin){ 2373 2373 … … 2385 2385 } 2386 2386 /*}}}*/ 2387 /*FUNCTION Tria::SurfaceArea {{{ 1*/2387 /*FUNCTION Tria::SurfaceArea {{{*/ 2388 2388 double Tria::SurfaceArea(void){ 2389 2389 … … 2414 2414 } 2415 2415 /*}}}*/ 2416 /*FUNCTION Tria::SurfaceNormal{{{ 1*/2416 /*FUNCTION Tria::SurfaceNormal{{{*/ 2417 2417 void Tria::SurfaceNormal(double* surface_normal, double xyz_list[3][3]){ 2418 2418 … … 2438 2438 } 2439 2439 /*}}}*/ 2440 /*FUNCTION Tria::TimeAdapt{{{ 1*/2440 /*FUNCTION Tria::TimeAdapt{{{*/ 2441 2441 double Tria::TimeAdapt(void){ 2442 2442 … … 2484 2484 } 2485 2485 /*}}}*/ 2486 /*FUNCTION Tria::Update(int index, IoModel* iomodel,int analysis_counter,int analysis_type){{{ 1*/2486 /*FUNCTION Tria::Update(int index, IoModel* iomodel,int analysis_counter,int analysis_type){{{*/ 2487 2487 void Tria::Update(int index, IoModel* iomodel,int analysis_counter,int analysis_type){ //i is the element index 2488 2488 … … 2498 2498 2499 2499 /*Checks if debuging*/ 2500 /*{{{ 2*/2500 /*{{{*/ 2501 2501 _assert_(iomodel->Data(MeshElementsEnum)); 2502 2502 /*}}}*/ … … 2584 2584 } 2585 2585 /*}}}*/ 2586 /*FUNCTION Tria::UpdatePotentialSheetUngrounding{{{ 1*/2586 /*FUNCTION Tria::UpdatePotentialSheetUngrounding{{{*/ 2587 2587 int Tria::UpdatePotentialSheetUngrounding(double* vertices_potentially_ungrounding,Vector* vec_nodes_on_iceshelf,double* nodes_on_iceshelf){ 2588 2588 … … 2606 2606 2607 2607 #ifdef _HAVE_RESPONSES_ 2608 /*FUNCTION Tria::IceVolume {{{ 1*/2608 /*FUNCTION Tria::IceVolume {{{*/ 2609 2609 double Tria::IceVolume(void){ 2610 2610 … … 2632 2632 } 2633 2633 /*}}}*/ 2634 /*FUNCTION Tria::MassFlux {{{ 1*/2634 /*FUNCTION Tria::MassFlux {{{*/ 2635 2635 double Tria::MassFlux( double* segment,bool process_units){ 2636 2636 … … 2704 2704 } 2705 2705 /*}}}*/ 2706 /*FUNCTION Tria::MaxAbsVx{{{ 1*/2706 /*FUNCTION Tria::MaxAbsVx{{{*/ 2707 2707 void Tria::MaxAbsVx(double* pmaxabsvx, bool process_units){ 2708 2708 … … 2717 2717 } 2718 2718 /*}}}*/ 2719 /*FUNCTION Tria::MaxAbsVy{{{ 1*/2719 /*FUNCTION Tria::MaxAbsVy{{{*/ 2720 2720 void Tria::MaxAbsVy(double* pmaxabsvy, bool process_units){ 2721 2721 … … 2730 2730 } 2731 2731 /*}}}*/ 2732 /*FUNCTION Tria::MaxAbsVz{{{ 1*/2732 /*FUNCTION Tria::MaxAbsVz{{{*/ 2733 2733 void Tria::MaxAbsVz(double* pmaxabsvz, bool process_units){ 2734 2734 … … 2743 2743 } 2744 2744 /*}}}*/ 2745 /*FUNCTION Tria::MaxVel{{{ 1*/2745 /*FUNCTION Tria::MaxVel{{{*/ 2746 2746 void Tria::MaxVel(double* pmaxvel, bool process_units){ 2747 2747 … … 2756 2756 } 2757 2757 /*}}}*/ 2758 /*FUNCTION Tria::MaxVx{{{ 1*/2758 /*FUNCTION Tria::MaxVx{{{*/ 2759 2759 void Tria::MaxVx(double* pmaxvx, bool process_units){ 2760 2760 … … 2769 2769 } 2770 2770 /*}}}*/ 2771 /*FUNCTION Tria::MaxVy{{{ 1*/2771 /*FUNCTION Tria::MaxVy{{{*/ 2772 2772 void Tria::MaxVy(double* pmaxvy, bool process_units){ 2773 2773 … … 2783 2783 } 2784 2784 /*}}}*/ 2785 /*FUNCTION Tria::MaxVz{{{ 1*/2785 /*FUNCTION Tria::MaxVz{{{*/ 2786 2786 void Tria::MaxVz(double* pmaxvz, bool process_units){ 2787 2787 … … 2796 2796 } 2797 2797 /*}}}*/ 2798 /*FUNCTION Tria::MinVel{{{ 1*/2798 /*FUNCTION Tria::MinVel{{{*/ 2799 2799 void Tria::MinVel(double* pminvel, bool process_units){ 2800 2800 … … 2809 2809 } 2810 2810 /*}}}*/ 2811 /*FUNCTION Tria::MinVx{{{ 1*/2811 /*FUNCTION Tria::MinVx{{{*/ 2812 2812 void Tria::MinVx(double* pminvx, bool process_units){ 2813 2813 … … 2822 2822 } 2823 2823 /*}}}*/ 2824 /*FUNCTION Tria::MinVy{{{ 1*/2824 /*FUNCTION Tria::MinVy{{{*/ 2825 2825 void Tria::MinVy(double* pminvy, bool process_units){ 2826 2826 … … 2835 2835 } 2836 2836 /*}}}*/ 2837 /*FUNCTION Tria::MinVz{{{ 1*/2837 /*FUNCTION Tria::MinVz{{{*/ 2838 2838 void Tria::MinVz(double* pminvz, bool process_units){ 2839 2839 … … 2848 2848 } 2849 2849 /*}}}*/ 2850 /*FUNCTION Tria::ElementResponse{{{ 1*/2850 /*FUNCTION Tria::ElementResponse{{{*/ 2851 2851 void Tria::ElementResponse(double* presponse,int response_enum,bool process_units){ 2852 2852 … … 2878 2878 2879 2879 #ifdef _HAVE_DIAGNOSTIC_ 2880 /*FUNCTION Tria::CreateKMatrixDiagnosticMacAyeal {{{ 1*/2880 /*FUNCTION Tria::CreateKMatrixDiagnosticMacAyeal {{{*/ 2881 2881 ElementMatrix* Tria::CreateKMatrixDiagnosticMacAyeal(void){ 2882 2882 … … 2892 2892 } 2893 2893 /*}}}*/ 2894 /*FUNCTION Tria::CreateKMatrixDiagnosticMacAyealViscous{{{ 1*/2894 /*FUNCTION Tria::CreateKMatrixDiagnosticMacAyealViscous{{{*/ 2895 2895 ElementMatrix* Tria::CreateKMatrixDiagnosticMacAyealViscous(void){ 2896 2896 … … 2956 2956 } 2957 2957 /*}}}*/ 2958 /*FUNCTION Tria::CreateKMatrixDiagnosticMacAyealFriction {{{ 1*/2958 /*FUNCTION Tria::CreateKMatrixDiagnosticMacAyealFriction {{{*/ 2959 2959 ElementMatrix* Tria::CreateKMatrixDiagnosticMacAyealFriction(void){ 2960 2960 … … 3025 3025 } 3026 3026 /*}}}*/ 3027 /*FUNCTION Tria::CreateKMatrixDiagnosticHutter{{{ 1*/3027 /*FUNCTION Tria::CreateKMatrixDiagnosticHutter{{{*/ 3028 3028 ElementMatrix* Tria::CreateKMatrixDiagnosticHutter(void){ 3029 3029 … … 3046 3046 } 3047 3047 /*}}}*/ 3048 /*FUNCTION Tria::CreatePVectorDiagnosticMacAyeal {{{ 1*/3048 /*FUNCTION Tria::CreatePVectorDiagnosticMacAyeal {{{*/ 3049 3049 ElementVector* Tria::CreatePVectorDiagnosticMacAyeal(){ 3050 3050 … … 3100 3100 } 3101 3101 /*}}}*/ 3102 /*FUNCTION Tria::CreatePVectorDiagnosticHutter{{{ 1*/3102 /*FUNCTION Tria::CreatePVectorDiagnosticHutter{{{*/ 3103 3103 ElementVector* Tria::CreatePVectorDiagnosticHutter(void){ 3104 3104 … … 3150 3150 } 3151 3151 /*}}}*/ 3152 /*FUNCTION Tria::CreateJacobianDiagnosticMacayeal{{{ 1*/3152 /*FUNCTION Tria::CreateJacobianDiagnosticMacayeal{{{*/ 3153 3153 ElementMatrix* Tria::CreateJacobianDiagnosticMacayeal(void){ 3154 3154 … … 3216 3216 } 3217 3217 /*}}}*/ 3218 /*FUNCTION Tria::GetSolutionFromInputsDiagnosticHoriz{{{ 1*/3218 /*FUNCTION Tria::GetSolutionFromInputsDiagnosticHoriz{{{*/ 3219 3219 void Tria::GetSolutionFromInputsDiagnosticHoriz(Vector* solution){ 3220 3220 … … 3255 3255 } 3256 3256 /*}}}*/ 3257 /*FUNCTION Tria::GetSolutionFromInputsDiagnosticHutter{{{ 1*/3257 /*FUNCTION Tria::GetSolutionFromInputsDiagnosticHutter{{{*/ 3258 3258 void Tria::GetSolutionFromInputsDiagnosticHutter(Vector* solution){ 3259 3259 … … 3294 3294 } 3295 3295 /*}}}*/ 3296 /*FUNCTION Tria::InputUpdateFromSolutionDiagnosticHoriz {{{ 1*/3296 /*FUNCTION Tria::InputUpdateFromSolutionDiagnosticHoriz {{{*/ 3297 3297 void Tria::InputUpdateFromSolutionDiagnosticHoriz(double* solution){ 3298 3298 … … 3357 3357 } 3358 3358 /*}}}*/ 3359 /*FUNCTION Tria::InputUpdateFromSolutionDiagnosticHutter {{{ 1*/3359 /*FUNCTION Tria::InputUpdateFromSolutionDiagnosticHutter {{{*/ 3360 3360 void Tria::InputUpdateFromSolutionDiagnosticHutter(double* solution){ 3361 3361 … … 3419 3419 3420 3420 #ifdef _HAVE_CONTROL_ 3421 /*FUNCTION Tria::InputControlUpdate{{{ 1*/3421 /*FUNCTION Tria::InputControlUpdate{{{*/ 3422 3422 void Tria::InputControlUpdate(double scalar,bool save_parameter){ 3423 3423 … … 3454 3454 } 3455 3455 /*}}}*/ 3456 /*FUNCTION Tria::ControlInputGetGradient{{{ 1*/3456 /*FUNCTION Tria::ControlInputGetGradient{{{*/ 3457 3457 void Tria::ControlInputGetGradient(Vector* gradient,int enum_type,int control_index){ 3458 3458 … … 3473 3473 3474 3474 }/*}}}*/ 3475 /*FUNCTION Tria::ControlInputScaleGradient{{{ 1*/3475 /*FUNCTION Tria::ControlInputScaleGradient{{{*/ 3476 3476 void Tria::ControlInputScaleGradient(int enum_type,double scale){ 3477 3477 … … 3489 3489 ((ControlInput*)input)->ScaleGradient(scale); 3490 3490 }/*}}}*/ 3491 /*FUNCTION Tria::ControlInputSetGradient{{{ 1*/3491 /*FUNCTION Tria::ControlInputSetGradient{{{*/ 3492 3492 void Tria::ControlInputSetGradient(double* gradient,int enum_type,int control_index){ 3493 3493 … … 3513 3513 3514 3514 }/*}}}*/ 3515 /*FUNCTION Tria::Gradj {{{ 1*/3515 /*FUNCTION Tria::Gradj {{{*/ 3516 3516 void Tria::Gradj(Vector* gradient,int control_type,int control_index){ 3517 3517 /*dJ/dalpha = ∂L/∂alpha = ∂J/∂alpha + ∂/∂alpha(KU-F)*/ … … 3572 3572 } 3573 3573 /*}}}*/ 3574 /*FUNCTION Tria::GradjBGradient{{{ 1*/3574 /*FUNCTION Tria::GradjBGradient{{{*/ 3575 3575 void Tria::GradjBGradient(Vector* gradient,int weight_index,int control_index){ 3576 3576 … … 3612 3612 } 3613 3613 /*}}}*/ 3614 /*FUNCTION Tria::GradjBMacAyeal{{{ 1*/3614 /*FUNCTION Tria::GradjBMacAyeal{{{*/ 3615 3615 void Tria::GradjBMacAyeal(Vector* gradient,int control_index){ 3616 3616 … … 3669 3669 } 3670 3670 /*}}}*/ 3671 /*FUNCTION Tria::GradjDragMacAyeal {{{ 1*/3671 /*FUNCTION Tria::GradjDragMacAyeal {{{*/ 3672 3672 void Tria::GradjDragMacAyeal(Vector* gradient,int control_index){ 3673 3673 … … 3757 3757 } 3758 3758 /*}}}*/ 3759 /*FUNCTION Tria::GradjDragGradient{{{ 1*/3759 /*FUNCTION Tria::GradjDragGradient{{{*/ 3760 3760 void Tria::GradjDragGradient(Vector* gradient, int weight_index,int control_index){ 3761 3761 … … 3801 3801 } 3802 3802 /*}}}*/ 3803 /*FUNCTION Tria::GradjDhDtBalancedthickness{{{ 1*/3803 /*FUNCTION Tria::GradjDhDtBalancedthickness{{{*/ 3804 3804 void Tria::GradjDhDtBalancedthickness(Vector* gradient,int control_index){ 3805 3805 … … 3817 3817 } 3818 3818 /*}}}*/ 3819 /*FUNCTION Tria::GradjVxBalancedthickness{{{ 1*/3819 /*FUNCTION Tria::GradjVxBalancedthickness{{{*/ 3820 3820 void Tria::GradjVxBalancedthickness(Vector* gradient,int control_index){ 3821 3821 … … 3860 3860 } 3861 3861 /*}}}*/ 3862 /*FUNCTION Tria::GradjVyBalancedthickness{{{ 1*/3862 /*FUNCTION Tria::GradjVyBalancedthickness{{{*/ 3863 3863 void Tria::GradjVyBalancedthickness(Vector* gradient,int control_index){ 3864 3864 … … 3902 3902 } 3903 3903 /*}}}*/ 3904 /*FUNCTION Tria::GradientIndexing{{{ 1*/3904 /*FUNCTION Tria::GradientIndexing{{{*/ 3905 3905 void Tria::GradientIndexing(int* indexing,int control_index){ 3906 3906 … … 3916 3916 } 3917 3917 /*}}}*/ 3918 /*FUNCTION Tria::RheologyBbarAbsGradient{{{ 1*/3918 /*FUNCTION Tria::RheologyBbarAbsGradient{{{*/ 3919 3919 double Tria::RheologyBbarAbsGradient(bool process_units,int weight_index){ 3920 3920 … … 3960 3960 } 3961 3961 /*}}}*/ 3962 /*FUNCTION Tria::SurfaceAverageVelMisfit {{{ 1*/3962 /*FUNCTION Tria::SurfaceAverageVelMisfit {{{*/ 3963 3963 double Tria::SurfaceAverageVelMisfit(bool process_units,int weight_index){ 3964 3964 … … 4021 4021 } 4022 4022 /*}}}*/ 4023 /*FUNCTION Tria::SurfaceLogVelMisfit {{{ 1*/4023 /*FUNCTION Tria::SurfaceLogVelMisfit {{{*/ 4024 4024 double Tria::SurfaceLogVelMisfit(bool process_units,int weight_index){ 4025 4025 … … 4086 4086 } 4087 4087 /*}}}*/ 4088 /*FUNCTION Tria::SurfaceLogVxVyMisfit {{{ 1*/4088 /*FUNCTION Tria::SurfaceLogVxVyMisfit {{{*/ 4089 4089 double Tria::SurfaceLogVxVyMisfit(bool process_units,int weight_index){ 4090 4090 … … 4152 4152 } 4153 4153 /*}}}*/ 4154 /*FUNCTION Tria::SurfaceAbsVelMisfit {{{ 1*/4154 /*FUNCTION Tria::SurfaceAbsVelMisfit {{{*/ 4155 4155 double Tria::SurfaceAbsVelMisfit(bool process_units,int weight_index){ 4156 4156 … … 4213 4213 } 4214 4214 /*}}}*/ 4215 /*FUNCTION Tria::SurfaceRelVelMisfit {{{ 1*/4215 /*FUNCTION Tria::SurfaceRelVelMisfit {{{*/ 4216 4216 double Tria::SurfaceRelVelMisfit(bool process_units,int weight_index){ 4217 4217 const int numdof=2*NUMVERTICES; … … 4277 4277 } 4278 4278 /*}}}*/ 4279 /*FUNCTION Tria::ThicknessAbsGradient{{{ 1*/4279 /*FUNCTION Tria::ThicknessAbsGradient{{{*/ 4280 4280 double Tria::ThicknessAbsGradient(bool process_units,int weight_index){ 4281 4281 … … 4321 4321 } 4322 4322 /*}}}*/ 4323 /*FUNCTION Tria::ThicknessAbsMisfit {{{ 1*/4323 /*FUNCTION Tria::ThicknessAbsMisfit {{{*/ 4324 4324 double Tria::ThicknessAbsMisfit(bool process_units,int weight_index){ 4325 4325 … … 4366 4366 } 4367 4367 /*}}}*/ 4368 /*FUNCTION Tria::CreatePVectorAdjointBalancethickness{{{ 1*/4368 /*FUNCTION Tria::CreatePVectorAdjointBalancethickness{{{*/ 4369 4369 ElementVector* Tria::CreatePVectorAdjointBalancethickness(void){ 4370 4370 … … 4432 4432 } 4433 4433 /*}}}*/ 4434 /*FUNCTION Tria::CreatePVectorAdjointHoriz{{{ 1*/4434 /*FUNCTION Tria::CreatePVectorAdjointHoriz{{{*/ 4435 4435 ElementVector* Tria::CreatePVectorAdjointHoriz(void){ 4436 4436 … … 4611 4611 } 4612 4612 /*}}}*/ 4613 /*FUNCTION Tria::CreatePVectorAdjointStokes{{{ 1*/4613 /*FUNCTION Tria::CreatePVectorAdjointStokes{{{*/ 4614 4614 ElementVector* Tria::CreatePVectorAdjointStokes(void){ 4615 4615 … … 4788 4788 } 4789 4789 /*}}}*/ 4790 /*FUNCTION Tria::DragCoefficientAbsGradient{{{ 1*/4790 /*FUNCTION Tria::DragCoefficientAbsGradient{{{*/ 4791 4791 double Tria::DragCoefficientAbsGradient(bool process_units,int weight_index){ 4792 4792 … … 4832 4832 } 4833 4833 /*}}}*/ 4834 /*FUNCTION Tria::CreateKMatrixAdjointBalancethickness {{{ 1*/4834 /*FUNCTION Tria::CreateKMatrixAdjointBalancethickness {{{*/ 4835 4835 ElementMatrix* Tria::CreateKMatrixAdjointBalancethickness(void){ 4836 4836 … … 4854 4854 } 4855 4855 /*}}}*/ 4856 /*FUNCTION Tria::CreateKMatrixAdjointMacAyeal{{{ 1*/4856 /*FUNCTION Tria::CreateKMatrixAdjointMacAyeal{{{*/ 4857 4857 ElementMatrix* Tria::CreateKMatrixAdjointMacAyeal(void){ 4858 4858 … … 4924 4924 } 4925 4925 /*}}}*/ 4926 /*FUNCTION Tria::InputUpdateFromSolutionAdjointHoriz {{{ 1*/4926 /*FUNCTION Tria::InputUpdateFromSolutionAdjointHoriz {{{*/ 4927 4927 void Tria::InputUpdateFromSolutionAdjointHoriz(double* solution){ 4928 4928 … … 4960 4960 /*}}}*/ 4961 4961 4962 /*FUNCTION Tria::InputUpdateFromSolutionAdjointBalancethickness {{{ 1*/4962 /*FUNCTION Tria::InputUpdateFromSolutionAdjointBalancethickness {{{*/ 4963 4963 void Tria::InputUpdateFromSolutionAdjointBalancethickness(double* solution){ 4964 4964 … … 4989 4989 } 4990 4990 /*}}}*/ 4991 /*FUNCTION Tria::GetVectorFromControlInputs{{{ 1*/4991 /*FUNCTION Tria::GetVectorFromControlInputs{{{*/ 4992 4992 void Tria::GetVectorFromControlInputs(Vector* vector,int control_enum,int control_index,const char* data){ 4993 4993 … … 5017 5017 } 5018 5018 /*}}}*/ 5019 /*FUNCTION Tria::SetControlInputsFromVector{{{ 1*/5019 /*FUNCTION Tria::SetControlInputsFromVector{{{*/ 5020 5020 void Tria::SetControlInputsFromVector(double* vector,int control_enum,int control_index){ 5021 5021 … … 5054 5054 5055 5055 #ifdef _HAVE_HYDROLOGY_ 5056 /*FUNCTION Tria::CreateHydrologyWaterVelocityInput {{{ 1*/5056 /*FUNCTION Tria::CreateHydrologyWaterVelocityInput {{{*/ 5057 5057 void Tria::CreateHydrologyWaterVelocityInput(void){ 5058 5058 … … 5109 5109 } 5110 5110 /*}}}*/ 5111 /*FUNCTION Tria::CreateKMatrixHydrology{{{ 1*/5111 /*FUNCTION Tria::CreateKMatrixHydrology{{{*/ 5112 5112 ElementMatrix* Tria::CreateKMatrixHydrology(void){ 5113 5113 … … 5214 5214 } 5215 5215 /*}}}*/ 5216 /*FUNCTION Tria::CreatePVectorHydrology {{{ 1*/5216 /*FUNCTION Tria::CreatePVectorHydrology {{{*/ 5217 5217 ElementVector* Tria::CreatePVectorHydrology(void){ 5218 5218 … … 5263 5263 } 5264 5264 /*}}}*/ 5265 /*FUNCTION Tria::GetSolutionFromInputsHydrology{{{ 1*/5265 /*FUNCTION Tria::GetSolutionFromInputsHydrology{{{*/ 5266 5266 void Tria::GetSolutionFromInputsHydrology(Vector* solution){ 5267 5267 … … 5299 5299 } 5300 5300 /*}}}*/ 5301 /*FUNCTION Tria::InputUpdateFromSolutionHydrology{{{ 1*/5301 /*FUNCTION Tria::InputUpdateFromSolutionHydrology{{{*/ 5302 5302 void Tria::InputUpdateFromSolutionHydrology(double* solution){ 5303 5303 … … 5330 5330 5331 5331 #ifdef _HAVE_DAKOTA_ 5332 /*FUNCTION Tria::InputUpdateFromVectorDakota(double* vector, int name, int type);{{{ 1*/5332 /*FUNCTION Tria::InputUpdateFromVectorDakota(double* vector, int name, int type);{{{*/ 5333 5333 void Tria::InputUpdateFromVectorDakota(double* vector, int name, int type){ 5334 5334 … … 5353 5353 switch(name){ 5354 5354 case ThicknessEnum: 5355 /*Update thickness + surface: assume bed is constant. On ice shelves, takes hydrostatic equilibrium {{{ 2*/5355 /*Update thickness + surface: assume bed is constant. On ice shelves, takes hydrostatic equilibrium {{{*/ 5356 5356 double thickness[3]; 5357 5357 double thickness_init[3]; … … 5432 5432 } 5433 5433 /*}}}*/ 5434 /*FUNCTION Tria::InputUpdateFromVectorDakota(int* vector, int name, int type);{{{ 1*/5434 /*FUNCTION Tria::InputUpdateFromVectorDakota(int* vector, int name, int type);{{{*/ 5435 5435 void Tria::InputUpdateFromVectorDakota(int* vector, int name, int type){ 5436 5436 _error_(" not supported yet!"); 5437 5437 } 5438 5438 /*}}}*/ 5439 /*FUNCTION Tria::InputUpdateFromVectorDakota(bool* vector, int name, int type);{{{ 1*/5439 /*FUNCTION Tria::InputUpdateFromVectorDakota(bool* vector, int name, int type);{{{*/ 5440 5440 void Tria::InputUpdateFromVectorDakota(bool* vector, int name, int type){ 5441 5441 _error_(" not supported yet!"); 5442 5442 } 5443 5443 /*}}}*/ 5444 /*FUNCTION Tria::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type);{{{ 1*/5444 /*FUNCTION Tria::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type);{{{*/ 5445 5445 void Tria::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type){ 5446 5446 … … 5489 5489 5490 5490 #ifdef _HAVE_BALANCED_ 5491 /*FUNCTION Tria::CreateKMatrixBalancethickness {{{ 1*/5491 /*FUNCTION Tria::CreateKMatrixBalancethickness {{{*/ 5492 5492 ElementMatrix* Tria::CreateKMatrixBalancethickness(void){ 5493 5493 … … 5503 5503 } 5504 5504 /*}}}*/ 5505 /*FUNCTION Tria::CreateKMatrixBalancethickness_CG {{{ 1*/5505 /*FUNCTION Tria::CreateKMatrixBalancethickness_CG {{{*/ 5506 5506 ElementMatrix* Tria::CreateKMatrixBalancethickness_CG(void){ 5507 5507 … … 5613 5613 } 5614 5614 /*}}}*/ 5615 /*FUNCTION Tria::CreateKMatrixBalancethickness_DG {{{ 1*/5615 /*FUNCTION Tria::CreateKMatrixBalancethickness_DG {{{*/ 5616 5616 ElementMatrix* Tria::CreateKMatrixBalancethickness_DG(void){ 5617 5617 … … 5667 5667 } 5668 5668 /*}}}*/ 5669 /*FUNCTION Tria::CreatePVectorBalancethickness{{{ 1*/5669 /*FUNCTION Tria::CreatePVectorBalancethickness{{{*/ 5670 5670 ElementVector* Tria::CreatePVectorBalancethickness(void){ 5671 5671 … … 5681 5681 } 5682 5682 /*}}}*/ 5683 /*FUNCTION Tria::CreatePVectorBalancethickness_CG{{{ 1*/5683 /*FUNCTION Tria::CreatePVectorBalancethickness_CG{{{*/ 5684 5684 ElementVector* Tria::CreatePVectorBalancethickness_CG(void){ 5685 5685 … … 5724 5724 } 5725 5725 /*}}}*/ 5726 /*FUNCTION Tria::CreatePVectorBalancethickness_DG {{{ 1*/5726 /*FUNCTION Tria::CreatePVectorBalancethickness_DG {{{*/ 5727 5727 ElementVector* Tria::CreatePVectorBalancethickness_DG(void){ 5728 5728 -
TabularUnified issm/trunk-jpl/src/c/objects/Elements/Tria.h ¶
r12014 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "./Element.h" 11 11 #include "./TriaHook.h" … … 41 41 Results *results; 42 42 43 /*Tria constructors, destructors {{{ 1*/43 /*Tria constructors, destructors {{{*/ 44 44 Tria(); 45 45 Tria(int tria_id,int tria_sid,int i, IoModel* iomodel,int nummodels); 46 46 ~Tria(); 47 47 /*}}}*/ 48 /*Object virtual functions definitions:{{{ 1*/48 /*Object virtual functions definitions:{{{ */ 49 49 void Echo(); 50 50 void DeepEcho(); … … 54 54 Object* copy(); 55 55 /*}}}*/ 56 /*Update virtual functions resolution: {{{ 1*/56 /*Update virtual functions resolution: {{{*/ 57 57 void InputUpdateFromSolution(double* solutiong); 58 58 void InputUpdateFromVector(double* vector, int name, int type); … … 70 70 void InputUpdateFromIoModel(int index, IoModel* iomodel); 71 71 /*}}}*/ 72 /*Element virtual functions definitions: {{{ 1*/72 /*Element virtual functions definitions: {{{*/ 73 73 void AverageOntoPartition(Vector* partition_contributions,Vector* partition_areas,double* vertex_response,double* qmu_part); 74 74 void ComputeBasalStress(Vector* sigma_b); … … 164 164 165 165 /*}}}*/ 166 /*Tria specific routines:{{{ 1*/166 /*Tria specific routines:{{{*/ 167 167 ElementMatrix* CreateKMatrixBalancethickness(void); 168 168 ElementMatrix* CreateKMatrixBalancethickness_DG(void); -
TabularUnified issm/trunk-jpl/src/c/objects/Elements/TriaHook.cpp ¶
r9725 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Object constructors and destructor*/ 23 /*FUNCTION TriaHook::TriaHook(){{{ 1*/23 /*FUNCTION TriaHook::TriaHook(){{{*/ 24 24 TriaHook::TriaHook(){ 25 25 numanalyses=UNDEF; … … 29 29 } 30 30 /*}}}*/ 31 /*FUNCTION TriaHook::~TriaHook(){{{ 1*/31 /*FUNCTION TriaHook::~TriaHook(){{{*/ 32 32 TriaHook::~TriaHook(){ 33 33 int i; … … 42 42 } 43 43 /*}}}*/ 44 /*FUNCTION TriaHook::TriaHook(int in_numanalyses,int matice_id, int matpar_id){{{ 1*/44 /*FUNCTION TriaHook::TriaHook(int in_numanalyses,int matice_id, int matpar_id){{{*/ 45 45 TriaHook::TriaHook(int in_numanalyses,int matice_id, IoModel* iomodel){ 46 46 … … 64 64 /*}}}*/ 65 65 66 /*FUNCTION TriaHook::SetHookNodes{{{ 1*/66 /*FUNCTION TriaHook::SetHookNodes{{{*/ 67 67 void TriaHook::SetHookNodes(int* node_ids,int analysis_counter){ 68 68 -
TabularUnified issm/trunk-jpl/src/c/objects/Elements/TriaHook.h ¶
r9356 r12365 18 18 19 19 20 /*FUNCTION constructors, destructors {{{ 1*/20 /*FUNCTION constructors, destructors {{{*/ 21 21 TriaHook(); 22 22 TriaHook(int in_numanalyses,int matice_id, IoModel* iomodel); -
TabularUnified issm/trunk-jpl/src/c/objects/Elements/TriaRef.cpp ¶
r10135 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 24 24 25 25 /*Object constructors and destructor*/ 26 /*FUNCTION TriaRef::TriaRef(){{{ 1*/26 /*FUNCTION TriaRef::TriaRef(){{{*/ 27 27 TriaRef::TriaRef(){ 28 28 this->element_type_list=NULL; 29 29 } 30 30 /*}}}*/ 31 /*FUNCTION TriaRef::TriaRef(int* types,int nummodels){{{ 1*/31 /*FUNCTION TriaRef::TriaRef(int* types,int nummodels){{{*/ 32 32 33 33 TriaRef::TriaRef(const int nummodels){ … … 38 38 } 39 39 /*}}}*/ 40 /*FUNCTION TriaRef::~TriaRef(){{{ 1*/40 /*FUNCTION TriaRef::~TriaRef(){{{*/ 41 41 TriaRef::~TriaRef(){ 42 42 xfree((void**)&element_type_list); … … 45 45 46 46 /*Management*/ 47 /*FUNCTION TriaRef::SetElementType{{{ 1*/47 /*FUNCTION TriaRef::SetElementType{{{*/ 48 48 void TriaRef::SetElementType(int type,int type_counter){ 49 49 … … 56 56 57 57 /*Reference Element numerics*/ 58 /*FUNCTION TriaRef::GetBMacAyeal {{{ 1*/58 /*FUNCTION TriaRef::GetBMacAyeal {{{*/ 59 59 void TriaRef::GetBMacAyeal(double* B, double* xyz_list, GaussTria* gauss){ 60 60 /*Compute B matrix. B=[B1 B2 B3] where Bi is of size 3*NDOF2. … … 86 86 } 87 87 /*}}}*/ 88 /*FUNCTION TriaRef::GetBMacAyealStokes {{{ 1*/88 /*FUNCTION TriaRef::GetBMacAyealStokes {{{*/ 89 89 void TriaRef::GetBMacAyealStokes(double* B, double* xyz_list, GaussTria* gauss){ 90 90 … … 117 117 } 118 118 /*}}}*/ 119 /*FUNCTION TriaRef::GetSegmentBFlux{{{ 1*/119 /*FUNCTION TriaRef::GetSegmentBFlux{{{*/ 120 120 void TriaRef::GetSegmentBFlux(double* B,GaussTria* gauss, int index1,int index2){ 121 121 /*Compute B matrix. B=[phi1 phi2 -phi3 -phi4] … … 136 136 } 137 137 /*}}}*/ 138 /*FUNCTION TriaRef::GetSegmentBprimeFlux{{{ 1*/138 /*FUNCTION TriaRef::GetSegmentBprimeFlux{{{*/ 139 139 void TriaRef::GetSegmentBprimeFlux(double* Bprime,GaussTria* gauss, int index1,int index2){ 140 140 /*Compute Bprime matrix. Bprime=[phi1 phi2 phi3 phi4] … … 155 155 } 156 156 /*}}}*/ 157 /*FUNCTION TriaRef::GetBPrognostic{{{ 1*/157 /*FUNCTION TriaRef::GetBPrognostic{{{*/ 158 158 void TriaRef::GetBPrognostic(double* B_prog, double* xyz_list, GaussTria* gauss){ 159 159 /*Compute B matrix. B=[B1 B2 B3] where Bi is of size 3*NDOF2. … … 179 179 } 180 180 /*}}}*/ 181 /*FUNCTION TriaRef::GetBprimeMacAyeal {{{ 1*/181 /*FUNCTION TriaRef::GetBprimeMacAyeal {{{*/ 182 182 void TriaRef::GetBprimeMacAyeal(double* Bprime, double* xyz_list, GaussTria* gauss){ 183 183 … … 210 210 } 211 211 /*}}}*/ 212 /*FUNCTION TriaRef::GetBprimeMacAyealStokes {{{ 1*/212 /*FUNCTION TriaRef::GetBprimeMacAyealStokes {{{*/ 213 213 void TriaRef::GetBprimeMacAyealStokes(double* Bprime, double* xyz_list, GaussTria* gauss){ 214 214 … … 244 244 } 245 245 /*}}}*/ 246 /*FUNCTION TriaRef::GetBprimePrognostic{{{ 1*/246 /*FUNCTION TriaRef::GetBprimePrognostic{{{*/ 247 247 void TriaRef::GetBprimePrognostic(double* Bprime_prog, double* xyz_list, GaussTria* gauss){ 248 248 /*Compute B' matrix. B'=[B1' B2' B3'] where Bi' is of size 3*NDOF2. … … 269 269 } 270 270 /*}}}*/ 271 /*FUNCTION TriaRef::GetL{{{ 1*/271 /*FUNCTION TriaRef::GetL{{{*/ 272 272 void TriaRef::GetL(double* L, double* xyz_list,GaussTria* gauss,int numdof){ 273 273 /*Compute L matrix. L=[L1 L2 L3] where Li is square and of size numdof. … … 306 306 } 307 307 /*}}}*/ 308 /*FUNCTION TriaRef::GetJacobian{{{ 1*/308 /*FUNCTION TriaRef::GetJacobian{{{*/ 309 309 void TriaRef::GetJacobian(double* J, double* xyz_list,GaussTria* gauss){ 310 310 /*The Jacobian is constant over the element, discard the gaussian points. … … 326 326 } 327 327 /*}}}*/ 328 /*FUNCTION TriaRef::GetSegmentJacobianDeterminant{{{ 1*/328 /*FUNCTION TriaRef::GetSegmentJacobianDeterminant{{{*/ 329 329 void TriaRef::GetSegmentJacobianDeterminant(double* Jdet, double* xyz_list,GaussTria* gauss){ 330 330 /*The Jacobian determinant is constant over the element, discard the gaussian points. … … 342 342 } 343 343 /*}}}*/ 344 /*FUNCTION TriaRef::GetJacobianDeterminant2d{{{ 1*/344 /*FUNCTION TriaRef::GetJacobianDeterminant2d{{{*/ 345 345 void TriaRef::GetJacobianDeterminant2d(double* Jdet, double* xyz_list,GaussTria* gauss){ 346 346 /*The Jacobian determinant is constant over the element, discard the gaussian points. … … 357 357 } 358 358 /*}}}*/ 359 /*FUNCTION TriaRef::GetJacobianDeterminant3d {{{ 1*/359 /*FUNCTION TriaRef::GetJacobianDeterminant3d {{{*/ 360 360 void TriaRef::GetJacobianDeterminant3d(double* Jdet, double* xyz_list,GaussTria* gauss){ 361 361 /*The Jacobian determinant is constant over the element, discard the gaussian points. … … 379 379 } 380 380 /*}}}*/ 381 /*FUNCTION TriaRef::GetJacobianInvert{{{ 1*/381 /*FUNCTION TriaRef::GetJacobianInvert{{{*/ 382 382 void TriaRef::GetJacobianInvert(double* Jinv, double* xyz_list,GaussTria* gauss){ 383 383 … … 393 393 } 394 394 /*}}}*/ 395 /*FUNCTION TriaRef::GetNodalFunctions{{{ 1*/395 /*FUNCTION TriaRef::GetNodalFunctions{{{*/ 396 396 void TriaRef::GetNodalFunctions(double* basis,GaussTria* gauss){ 397 397 /*This routine returns the values of the nodal functions at the gaussian point.*/ … … 403 403 } 404 404 /*}}}*/ 405 /*FUNCTION TriaRef::GetSegmentNodalFunctions{{{ 1*/405 /*FUNCTION TriaRef::GetSegmentNodalFunctions{{{*/ 406 406 void TriaRef::GetSegmentNodalFunctions(double* basis,GaussTria* gauss,int index1,int index2){ 407 407 /*This routine returns the values of the nodal functions at the gaussian point.*/ … … 417 417 } 418 418 /*}}}*/ 419 /*FUNCTION TriaRef::GetNodalFunctionsDerivatives{{{ 1*/419 /*FUNCTION TriaRef::GetNodalFunctionsDerivatives{{{*/ 420 420 void TriaRef::GetNodalFunctionsDerivatives(double* dbasis,double* xyz_list, GaussTria* gauss){ 421 421 … … 444 444 } 445 445 /*}}}*/ 446 /*FUNCTION TriaRef::GetNodalFunctionsDerivativesReference{{{ 1*/446 /*FUNCTION TriaRef::GetNodalFunctionsDerivativesReference{{{*/ 447 447 void TriaRef::GetNodalFunctionsDerivativesReference(double* dl1dl3,GaussTria* gauss){ 448 448 /*This routine returns the values of the nodal functions derivatives (with respect to the … … 463 463 } 464 464 /*}}}*/ 465 /*FUNCTION TriaRef::GetInputDerivativeValue{{{ 1*/465 /*FUNCTION TriaRef::GetInputDerivativeValue{{{*/ 466 466 void TriaRef::GetInputDerivativeValue(double* p, double* plist,double* xyz_list, GaussTria* gauss){ 467 467 … … 486 486 } 487 487 /*}}}*/ 488 /*FUNCTION TriaRef::GetInputValue{{{ 1*/488 /*FUNCTION TriaRef::GetInputValue{{{*/ 489 489 void TriaRef::GetInputValue(double* p, double* plist, GaussTria* gauss){ 490 490 -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/BoolExternalResult.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*BoolExternalResult constructors and destructor*/ 23 /*FUNCTION BoolExternalResult::BoolExternalResult(){{{ 1*/23 /*FUNCTION BoolExternalResult::BoolExternalResult(){{{*/ 24 24 BoolExternalResult::BoolExternalResult(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION BoolExternalResult::BoolExternalResult(int enum_type,bool value){{{ 1*/28 /*FUNCTION BoolExternalResult::BoolExternalResult(int enum_type,bool value){{{*/ 29 29 BoolExternalResult::BoolExternalResult(int in_id, int in_enum_type,bool in_value,int in_step, double in_time){ 30 30 … … 36 36 } 37 37 /*}}}*/ 38 /*FUNCTION BoolExternalResult::~BoolExternalResult(){{{ 1*/38 /*FUNCTION BoolExternalResult::~BoolExternalResult(){{{*/ 39 39 BoolExternalResult::~BoolExternalResult(){ 40 40 return; … … 43 43 44 44 /*Object virtual functions definitions:*/ 45 /*FUNCTION BoolExternalResult::Echo {{{ 1*/45 /*FUNCTION BoolExternalResult::Echo {{{*/ 46 46 void BoolExternalResult::Echo(void){ 47 47 this->DeepEcho(); 48 48 } 49 49 /*}}}*/ 50 /*FUNCTION BoolExternalResult::DeepEcho{{{ 1*/50 /*FUNCTION BoolExternalResult::DeepEcho{{{*/ 51 51 void BoolExternalResult::DeepEcho(void){ 52 52 … … 59 59 } 60 60 /*}}}*/ 61 /*FUNCTION BoolExternalResult::Id{{{ 1*/61 /*FUNCTION BoolExternalResult::Id{{{*/ 62 62 int BoolExternalResult::Id(void){ return -1; } 63 63 /*}}}*/ 64 /*FUNCTION BoolExternalResult::MyRank{{{ 1*/64 /*FUNCTION BoolExternalResult::MyRank{{{*/ 65 65 int BoolExternalResult::MyRank(void){ 66 66 extern int my_rank; … … 68 68 } 69 69 /*}}}*/ 70 /*FUNCTION BoolExternalResult::ObjectEnum{{{ 1*/70 /*FUNCTION BoolExternalResult::ObjectEnum{{{*/ 71 71 int BoolExternalResult::ObjectEnum(void){ 72 72 … … 75 75 } 76 76 /*}}}*/ 77 /*FUNCTION BoolExternalResult::copy{{{ 1*/77 /*FUNCTION BoolExternalResult::copy{{{*/ 78 78 Object* BoolExternalResult::copy() { 79 79 … … 84 84 85 85 /*BoolExternalResult management: */ 86 /*FUNCTION BoolExternalResult::WriteData{{{ 1*/86 /*FUNCTION BoolExternalResult::WriteData{{{*/ 87 87 void BoolExternalResult::WriteData(FILE* fid,bool io_gather){ 88 88 … … 119 119 120 120 } 121 /*}}} 1*/122 /*FUNCTION BoolExternalResult::GetResultName{{{ 1*/121 /*}}}*/ 122 /*FUNCTION BoolExternalResult::GetResultName{{{*/ 123 123 void BoolExternalResult::GetResultName(char** pname){ 124 124 EnumToStringx(pname,this->enum_type); 125 125 } 126 126 /*}}}*/ 127 /*FUNCTION BoolExternalResult::GetStep{{{ 1*/127 /*FUNCTION BoolExternalResult::GetStep{{{*/ 128 128 int BoolExternalResult::GetStep(void){ 129 129 -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/BoolExternalResult.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 12 12 #ifdef HAVE_CONFIG_H … … 32 32 double time; 33 33 34 /*BoolExternalResult constructors, destructors: {{{ 1*/34 /*BoolExternalResult constructors, destructors: {{{*/ 35 35 BoolExternalResult(); 36 36 BoolExternalResult(int id, int enum_type,bool value,int step,double time); 37 37 ~BoolExternalResult(); 38 38 /*}}}*/ 39 /*Object virtual functions definitions:{{{ 1*/39 /*Object virtual functions definitions:{{{ */ 40 40 void Echo(); 41 41 void DeepEcho(); … … 45 45 Object* copy(); 46 46 /*}}}*/ 47 /*ExternalResult management: {{{ 1*/47 /*ExternalResult management: {{{*/ 48 48 int InstanceEnum(){return enum_type;} 49 49 void WriteData(FILE* fid,bool io_gather); -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/DoubleExternalResult.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*DoubleExternalResult constructors and destructor*/ 23 /*FUNCTION DoubleExternalResult::DoubleExternalResult(){{{ 1*/23 /*FUNCTION DoubleExternalResult::DoubleExternalResult(){{{*/ 24 24 DoubleExternalResult::DoubleExternalResult(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION DoubleExternalResult::DoubleExternalResult(int enum_type,double value){{{ 1*/28 /*FUNCTION DoubleExternalResult::DoubleExternalResult(int enum_type,double value){{{*/ 29 29 DoubleExternalResult::DoubleExternalResult(int in_id, int in_enum_type,double in_value,int in_step, double in_time){ 30 30 … … 36 36 } 37 37 /*}}}*/ 38 /*FUNCTION DoubleExternalResult::~DoubleExternalResult(){{{ 1*/38 /*FUNCTION DoubleExternalResult::~DoubleExternalResult(){{{*/ 39 39 DoubleExternalResult::~DoubleExternalResult(){ 40 40 return; … … 43 43 44 44 /*Object virtual functions definitions:*/ 45 /*FUNCTION DoubleExternalResult::Echo {{{ 1*/45 /*FUNCTION DoubleExternalResult::Echo {{{*/ 46 46 void DoubleExternalResult::Echo(void){ 47 47 this->DeepEcho(); 48 48 } 49 49 /*}}}*/ 50 /*FUNCTION DoubleExternalResult::DeepEcho{{{ 1*/50 /*FUNCTION DoubleExternalResult::DeepEcho{{{*/ 51 51 void DoubleExternalResult::DeepEcho(void){ 52 52 … … 59 59 } 60 60 /*}}}*/ 61 /*FUNCTION DoubleExternalResult::Id{{{ 1*/61 /*FUNCTION DoubleExternalResult::Id{{{*/ 62 62 int DoubleExternalResult::Id(void){ return -1; } 63 63 /*}}}*/ 64 /*FUNCTION DoubleExternalResult::MyRank{{{ 1*/64 /*FUNCTION DoubleExternalResult::MyRank{{{*/ 65 65 int DoubleExternalResult::MyRank(void){ 66 66 extern int my_rank; … … 68 68 } 69 69 /*}}}*/ 70 /*FUNCTION DoubleExternalResult::ObjectEnum{{{ 1*/70 /*FUNCTION DoubleExternalResult::ObjectEnum{{{*/ 71 71 int DoubleExternalResult::ObjectEnum(void){ 72 72 … … 75 75 } 76 76 /*}}}*/ 77 /*FUNCTION DoubleExternalResult::copy{{{ 1*/77 /*FUNCTION DoubleExternalResult::copy{{{*/ 78 78 Object* DoubleExternalResult::copy() { 79 79 … … 84 84 85 85 /*DoubleExternalResult management: */ 86 /*FUNCTION DoubleExternalResult::WriteData{{{ 1*/86 /*FUNCTION DoubleExternalResult::WriteData{{{*/ 87 87 void DoubleExternalResult::WriteData(FILE* fid,bool io_gather){ 88 88 … … 115 115 116 116 } 117 /*}}} 1*/118 /*FUNCTION DoubleExternalResult::GetResultName{{{ 1*/117 /*}}}*/ 118 /*FUNCTION DoubleExternalResult::GetResultName{{{*/ 119 119 void DoubleExternalResult::GetResultName(char** pname){ 120 120 EnumToStringx(pname,this->enum_type); 121 121 } 122 122 /*}}}*/ 123 /*FUNCTION DoubleExternalResult::GetStep{{{ 1*/123 /*FUNCTION DoubleExternalResult::GetStep{{{*/ 124 124 int DoubleExternalResult::GetStep(void){ 125 125 -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/DoubleExternalResult.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 12 12 #ifdef HAVE_CONFIG_H … … 34 34 35 35 36 /*DoubleExternalResult constructors, destructors: {{{ 1*/36 /*DoubleExternalResult constructors, destructors: {{{*/ 37 37 DoubleExternalResult(); 38 38 DoubleExternalResult(int id,int enum_type,double value,int step,double time); 39 39 ~DoubleExternalResult(); 40 40 /*}}}*/ 41 /*Object virtual functions definitions:{{{ 1*/41 /*Object virtual functions definitions:{{{ */ 42 42 void Echo(); 43 43 void DeepEcho(); … … 47 47 Object* copy(); 48 48 /*}}}*/ 49 /*ExternalResult management: {{{ 1*/49 /*ExternalResult management: {{{*/ 50 50 int InstanceEnum(){return enum_type;} 51 51 void WriteData(FILE* fid,bool io_gather); -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/DoubleMatExternalResult.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*DoubleMatExternalResult constructors and destructor*/ 23 /*FUNCTION DoubleMatExternalResult::DoubleMatExternalResult(){{{ 1*/23 /*FUNCTION DoubleMatExternalResult::DoubleMatExternalResult(){{{*/ 24 24 DoubleMatExternalResult::DoubleMatExternalResult(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION DoubleMatExternalResult::DoubleMatExternalResult(int in_id, int enum_type,IssmDoubleMat values,int M,int N,int in_step,double in_time){{{ 1*/28 /*FUNCTION DoubleMatExternalResult::DoubleMatExternalResult(int in_id, int enum_type,IssmDoubleMat values,int M,int N,int in_step,double in_time){{{*/ 29 29 DoubleMatExternalResult::DoubleMatExternalResult(int in_id, int in_enum_type,double* in_values, int in_M,int in_N,int in_step,double in_time){ 30 30 … … 45 45 } 46 46 /*}}}*/ 47 /*FUNCTION DoubleMatExternalResult::~DoubleMatExternalResult(){{{ 1*/47 /*FUNCTION DoubleMatExternalResult::~DoubleMatExternalResult(){{{*/ 48 48 DoubleMatExternalResult::~DoubleMatExternalResult(){ 49 49 … … 54 54 55 55 /*Object virtual functions definitions:*/ 56 /*FUNCTION DoubleMatExternalResult::Echo {{{ 1*/56 /*FUNCTION DoubleMatExternalResult::Echo {{{*/ 57 57 void DoubleMatExternalResult::Echo(void){ 58 58 … … 65 65 } 66 66 /*}}}*/ 67 /*FUNCTION DoubleMatExternalResult::DeepEcho{{{ 1*/67 /*FUNCTION DoubleMatExternalResult::DeepEcho{{{*/ 68 68 void DoubleMatExternalResult::DeepEcho(void){ 69 69 … … 87 87 } 88 88 /*}}}*/ 89 /*FUNCTION DoubleMatExternalResult::Id{{{ 1*/89 /*FUNCTION DoubleMatExternalResult::Id{{{*/ 90 90 int DoubleMatExternalResult::Id(void){ return -1; } 91 91 /*}}}*/ 92 /*FUNCTION DoubleMatExternalResult::MyRank{{{ 1*/92 /*FUNCTION DoubleMatExternalResult::MyRank{{{*/ 93 93 int DoubleMatExternalResult::MyRank(void){ 94 94 extern int my_rank; … … 96 96 } 97 97 /*}}}*/ 98 /*FUNCTION DoubleMatExternalResult::ObjectEnum{{{ 1*/98 /*FUNCTION DoubleMatExternalResult::ObjectEnum{{{*/ 99 99 int DoubleMatExternalResult::ObjectEnum(void){ 100 100 … … 103 103 } 104 104 /*}}}*/ 105 /*FUNCTION DoubleMatExternalResult::copy{{{ 1*/105 /*FUNCTION DoubleMatExternalResult::copy{{{*/ 106 106 Object* DoubleMatExternalResult::copy() { 107 107 … … 112 112 113 113 /*DoubleMatExternalResult management: */ 114 /*FUNCTION DoubleMatExternalResult::WriteData{{{ 1*/114 /*FUNCTION DoubleMatExternalResult::WriteData{{{*/ 115 115 void DoubleMatExternalResult::WriteData(FILE* fid,bool io_gather){ 116 116 … … 147 147 148 148 } 149 /*}}} 1*/150 /*FUNCTION DoubleMatExternalResult::GetResultName{{{ 1*/149 /*}}}*/ 150 /*FUNCTION DoubleMatExternalResult::GetResultName{{{*/ 151 151 void DoubleMatExternalResult::GetResultName(char** pname){ 152 152 EnumToStringx(pname,this->enum_type); 153 153 } 154 154 /*}}}*/ 155 /*FUNCTION DoubleMatExternalResult::GetStep{{{ 1*/155 /*FUNCTION DoubleMatExternalResult::GetStep{{{*/ 156 156 int DoubleMatExternalResult::GetStep(void){ 157 157 -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/DoubleMatExternalResult.h ¶
r12014 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 11 11 #ifdef HAVE_CONFIG_H … … 34 34 35 35 public: 36 /*DoubleMatExternalResult constructors, destructors: {{{ 1*/36 /*DoubleMatExternalResult constructors, destructors: {{{*/ 37 37 DoubleMatExternalResult(); 38 38 DoubleMatExternalResult(int id,int enum_type,double* values,int M,int N,int step, double time); 39 39 ~DoubleMatExternalResult(); 40 40 /*}}}*/ 41 /*Object virtual functions definitions:{{{ 1*/41 /*Object virtual functions definitions:{{{ */ 42 42 void Echo(); 43 43 void DeepEcho(); … … 47 47 Object* copy(); 48 48 /*}}}*/ 49 /*ExternalResult managemnet: {{{ 1*/49 /*ExternalResult managemnet: {{{*/ 50 50 int InstanceEnum(){return enum_type;} 51 51 void WriteData(FILE* fid,bool io_gather); -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/DoubleVecExternalResult.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*DoubleVecExternalResult constructors and destructor*/ 23 /*FUNCTION DoubleVecExternalResult::DoubleVecExternalResult(){{{ 1*/23 /*FUNCTION DoubleVecExternalResult::DoubleVecExternalResult(){{{*/ 24 24 DoubleVecExternalResult::DoubleVecExternalResult(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION DoubleVecExternalResult::DoubleVecExternalResult(int enum_type,IssmDoubleVec values,int M,int in_step,double in_time){{{ 1*/28 /*FUNCTION DoubleVecExternalResult::DoubleVecExternalResult(int enum_type,IssmDoubleVec values,int M,int in_step,double in_time){{{*/ 29 29 DoubleVecExternalResult::DoubleVecExternalResult(int in_id, int in_enum_type,double* in_values, int in_M,int in_step,double in_time){ 30 30 … … 43 43 } 44 44 /*}}}*/ 45 /*FUNCTION DoubleVecExternalResult::~DoubleVecExternalResult(){{{ 1*/45 /*FUNCTION DoubleVecExternalResult::~DoubleVecExternalResult(){{{*/ 46 46 DoubleVecExternalResult::~DoubleVecExternalResult(){ 47 47 xfree((void**)&values); … … 51 51 52 52 /*Object virtual functions definitions:*/ 53 /*FUNCTION DoubleVecExternalResult::Echo {{{ 1*/53 /*FUNCTION DoubleVecExternalResult::Echo {{{*/ 54 54 void DoubleVecExternalResult::Echo(void){ 55 55 … … 62 62 } 63 63 /*}}}*/ 64 /*FUNCTION DoubleVecExternalResult::DeepEcho{{{ 1*/64 /*FUNCTION DoubleVecExternalResult::DeepEcho{{{*/ 65 65 void DoubleVecExternalResult::DeepEcho(void){ 66 66 … … 78 78 } 79 79 /*}}}*/ 80 /*FUNCTION DoubleVecExternalResult::Id{{{ 1*/80 /*FUNCTION DoubleVecExternalResult::Id{{{*/ 81 81 int DoubleVecExternalResult::Id(void){ return -1; } 82 82 /*}}}*/ 83 /*FUNCTION DoubleVecExternalResult::MyRank{{{ 1*/83 /*FUNCTION DoubleVecExternalResult::MyRank{{{*/ 84 84 int DoubleVecExternalResult::MyRank(void){ 85 85 extern int my_rank; … … 87 87 } 88 88 /*}}}*/ 89 /*FUNCTION DoubleVecExternalResult::ObjectEnum{{{ 1*/89 /*FUNCTION DoubleVecExternalResult::ObjectEnum{{{*/ 90 90 int DoubleVecExternalResult::ObjectEnum(void){ 91 91 … … 94 94 } 95 95 /*}}}*/ 96 /*FUNCTION DoubleVecExternalResult::copy{{{ 1*/96 /*FUNCTION DoubleVecExternalResult::copy{{{*/ 97 97 Object* DoubleVecExternalResult::copy() { 98 98 … … 103 103 104 104 /*DoubleVecExternalResult management: */ 105 /*FUNCTION DoubleVecExternalResult::WriteData{{{ 1*/105 /*FUNCTION DoubleVecExternalResult::WriteData{{{*/ 106 106 void DoubleVecExternalResult::WriteData(FILE* fid,bool io_gather){ 107 107 … … 134 134 135 135 } 136 /*}}} 1*/137 /*FUNCTION DoubleVecExternalResult::GetResultName{{{ 1*/136 /*}}}*/ 137 /*FUNCTION DoubleVecExternalResult::GetResultName{{{*/ 138 138 void DoubleVecExternalResult::GetResultName(char** pname){ 139 139 EnumToStringx(pname,this->enum_type); 140 140 } 141 141 /*}}}*/ 142 /*FUNCTION DoubleVecExternalResult::GetStep{{{ 1*/142 /*FUNCTION DoubleVecExternalResult::GetStep{{{*/ 143 143 int DoubleVecExternalResult::GetStep(void){ 144 144 -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/DoubleVecExternalResult.h ¶
r12014 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 11 11 #ifdef HAVE_CONFIG_H … … 33 33 34 34 public: 35 /*DoubleVecExternalResult constructors, destructors: {{{ 1*/35 /*DoubleVecExternalResult constructors, destructors: {{{*/ 36 36 DoubleVecExternalResult(); 37 37 DoubleVecExternalResult(int id,int enum_type,double* values,int M,int step, double time); 38 38 ~DoubleVecExternalResult(); 39 39 /*}}}*/ 40 /*Object virtual functions definitions:{{{ 1*/40 /*Object virtual functions definitions:{{{ */ 41 41 void Echo(); 42 42 void DeepEcho(); … … 46 46 Object* copy(); 47 47 /*}}}*/ 48 /*ExternalResult management: {{{ 1*/48 /*ExternalResult management: {{{*/ 49 49 int InstanceEnum(){return enum_type;} 50 50 void WriteData(FILE* fid,bool io_gather); -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/ExternalResult.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 12 12 #ifdef HAVE_CONFIG_H … … 25 25 26 26 virtual ~ExternalResult(){}; 27 /*Virtual functions:{{{ 1*/27 /*Virtual functions:{{{*/ 28 28 virtual int InstanceEnum()=0; 29 29 virtual void WriteData(FILE* fid,bool io_gather)=0; -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/IntExternalResult.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*IntExternalResult constructors and destructor*/ 23 /*FUNCTION IntExternalResult::IntExternalResult(){{{ 1*/23 /*FUNCTION IntExternalResult::IntExternalResult(){{{*/ 24 24 IntExternalResult::IntExternalResult(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION IntExternalResult::IntExternalResult(int in_id, int in_enum_type,int in_value,int in_step, double in_time){{{ 1*/28 /*FUNCTION IntExternalResult::IntExternalResult(int in_id, int in_enum_type,int in_value,int in_step, double in_time){{{*/ 29 29 IntExternalResult::IntExternalResult(int in_id, int in_enum_type,int in_value,int in_step, double in_time){ 30 30 … … 36 36 } 37 37 /*}}}*/ 38 /*FUNCTION IntExternalResult::~IntExternalResult(){{{ 1*/38 /*FUNCTION IntExternalResult::~IntExternalResult(){{{*/ 39 39 IntExternalResult::~IntExternalResult(){ 40 40 return; … … 43 43 44 44 /*Object virtual functions definitions:*/ 45 /*FUNCTION IntExternalResult::Echo {{{ 1*/45 /*FUNCTION IntExternalResult::Echo {{{*/ 46 46 void IntExternalResult::Echo(void){ 47 47 this->DeepEcho(); 48 48 } 49 49 /*}}}*/ 50 /*FUNCTION IntExternalResult::DeepEcho{{{ 1*/50 /*FUNCTION IntExternalResult::DeepEcho{{{*/ 51 51 void IntExternalResult::DeepEcho(void){ 52 52 … … 59 59 } 60 60 /*}}}*/ 61 /*FUNCTION IntExternalResult::Id{{{ 1*/61 /*FUNCTION IntExternalResult::Id{{{*/ 62 62 int IntExternalResult::Id(void){ return -1; } 63 63 /*}}}*/ 64 /*FUNCTION IntExternalResult::MyRank{{{ 1*/64 /*FUNCTION IntExternalResult::MyRank{{{*/ 65 65 int IntExternalResult::MyRank(void){ 66 66 extern int my_rank; … … 68 68 } 69 69 /*}}}*/ 70 /*FUNCTION IntExternalResult::ObjectEnum{{{ 1*/70 /*FUNCTION IntExternalResult::ObjectEnum{{{*/ 71 71 int IntExternalResult::ObjectEnum(void){ 72 72 … … 75 75 } 76 76 /*}}}*/ 77 /*FUNCTION IntExternalResult::copy{{{ 1*/77 /*FUNCTION IntExternalResult::copy{{{*/ 78 78 Object* IntExternalResult::copy() { 79 79 … … 84 84 85 85 /*IntExternalResult management: */ 86 /*FUNCTION IntExternalResult::WriteData{{{ 1*/86 /*FUNCTION IntExternalResult::WriteData{{{*/ 87 87 void IntExternalResult::WriteData(FILE* fid,bool io_gather){ 88 88 … … 119 119 120 120 } 121 /*}}} 1*/122 /*FUNCTION IntExternalResult::GetResultName{{{ 1*/121 /*}}}*/ 122 /*FUNCTION IntExternalResult::GetResultName{{{*/ 123 123 void IntExternalResult::GetResultName(char** pname){ 124 124 EnumToStringx(pname,this->enum_type); 125 125 } 126 126 /*}}}*/ 127 /*FUNCTION IntExternalResult::GetStep{{{ 1*/127 /*FUNCTION IntExternalResult::GetStep{{{*/ 128 128 int IntExternalResult::GetStep(void){ 129 129 -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/IntExternalResult.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 12 12 #ifdef HAVE_CONFIG_H … … 31 31 32 32 33 /*IntExternalResult constructors, destructors: {{{ 1*/33 /*IntExternalResult constructors, destructors: {{{*/ 34 34 IntExternalResult(); 35 35 IntExternalResult(int id,int enum_type,int value,int step,double time); … … 37 37 38 38 /*}}}*/ 39 /*Object virtual functions definitions:{{{ 1*/39 /*Object virtual functions definitions:{{{ */ 40 40 void Echo(); 41 41 void DeepEcho(); … … 45 45 Object* copy(); 46 46 /*}}}*/ 47 /*ExternalResult managemnet: {{{ 1*/47 /*ExternalResult managemnet: {{{*/ 48 48 int InstanceEnum(){return enum_type;} 49 49 void WriteData(FILE* fid,bool io_gather); -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/PetscVecExternalResult.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*PetscVecExternalResult constructors and destructor*/ 23 /*FUNCTION PetscVecExternalResult::PetscVecExternalResult(){{{ 1*/23 /*FUNCTION PetscVecExternalResult::PetscVecExternalResult(){{{*/ 24 24 PetscVecExternalResult::PetscVecExternalResult(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION PetscVecExternalResult::PetscVecExternalResult(int enum_type,IssmPetscVec value){{{ 1*/28 /*FUNCTION PetscVecExternalResult::PetscVecExternalResult(int enum_type,IssmPetscVec value){{{*/ 29 29 PetscVecExternalResult::PetscVecExternalResult(int in_id, int in_enum_type,Vector* in_value,int in_step, double in_time){ 30 30 … … 44 44 } 45 45 /*}}}*/ 46 /*FUNCTION PetscVecExternalResult::~PetscVecExternalResult(){{{ 1*/46 /*FUNCTION PetscVecExternalResult::~PetscVecExternalResult(){{{*/ 47 47 PetscVecExternalResult::~PetscVecExternalResult(){ 48 48 VecFree(&value); … … 51 51 52 52 /*Object virtual functions definitions:*/ 53 /*FUNCTION PetscVecExternalResult::Echo {{{ 1*/53 /*FUNCTION PetscVecExternalResult::Echo {{{*/ 54 54 void PetscVecExternalResult::Echo(void){ 55 55 … … 59 59 } 60 60 /*}}}*/ 61 /*FUNCTION PetscVecExternalResult::DeepEcho{{{ 1*/61 /*FUNCTION PetscVecExternalResult::DeepEcho{{{*/ 62 62 void PetscVecExternalResult::DeepEcho(void){ 63 63 … … 71 71 } 72 72 /*}}}*/ 73 /*FUNCTION PetscVecExternalResult::Id{{{ 1*/73 /*FUNCTION PetscVecExternalResult::Id{{{*/ 74 74 int PetscVecExternalResult::Id(void){ return -1; } 75 75 /*}}}*/ 76 /*FUNCTION PetscVecExternalResult::MyRank{{{ 1*/76 /*FUNCTION PetscVecExternalResult::MyRank{{{*/ 77 77 int PetscVecExternalResult::MyRank(void){ 78 78 extern int my_rank; … … 80 80 } 81 81 /*}}}*/ 82 /*FUNCTION PetscVecExternalResult::ObjectEnum{{{ 1*/82 /*FUNCTION PetscVecExternalResult::ObjectEnum{{{*/ 83 83 int PetscVecExternalResult::ObjectEnum(void){ 84 84 … … 87 87 } 88 88 /*}}}*/ 89 /*FUNCTION PetscVecExternalResult::copy{{{ 1*/89 /*FUNCTION PetscVecExternalResult::copy{{{*/ 90 90 Object* PetscVecExternalResult::copy() { 91 91 … … 96 96 97 97 /*PetscVecExternalResult management: */ 98 /*FUNCTION PetscVecExternalResult::WriteData{{{ 1*/98 /*FUNCTION PetscVecExternalResult::WriteData{{{*/ 99 99 void PetscVecExternalResult::WriteData(FILE* fid,bool io_gather){ 100 100 … … 134 134 xfree((void**)&serialvec); 135 135 } 136 /*}}} 1*/137 /*FUNCTION PetscVecExternalResult::GetResultName{{{ 1*/136 /*}}}*/ 137 /*FUNCTION PetscVecExternalResult::GetResultName{{{*/ 138 138 void PetscVecExternalResult::GetResultName(char**pname){ 139 139 EnumToStringx(pname,this->enum_type); 140 140 } 141 141 /*}}}*/ 142 /*FUNCTION PetscVecExternalResult::GetStep{{{ 1*/142 /*FUNCTION PetscVecExternalResult::GetStep{{{*/ 143 143 int PetscVecExternalResult::GetStep(void){ 144 144 -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/PetscVecExternalResult.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 12 12 #ifdef HAVE_CONFIG_H … … 33 33 34 34 public: 35 /*PetscVecExternalResult constructors, destructors: {{{ 1*/35 /*PetscVecExternalResult constructors, destructors: {{{*/ 36 36 PetscVecExternalResult(); 37 37 PetscVecExternalResult(int id,int enum_type,Vector* value, int step, double time); 38 38 ~PetscVecExternalResult(); 39 39 /*}}}*/ 40 /*Object virtual functions definitions:{{{ 1*/40 /*Object virtual functions definitions:{{{ */ 41 41 void Echo(); 42 42 void DeepEcho(); … … 46 46 Object* copy(); 47 47 /*}}}*/ 48 /*ExternalResult management: {{{ 1*/48 /*ExternalResult management: {{{*/ 49 49 int InstanceEnum(){return enum_type;} 50 50 void WriteData(FILE* fid,bool io_gather); -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/StringExternalResult.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*StringExternalResult constructors and destructor*/ 23 /*FUNCTION StringExternalResult::StringExternalResult(){{{ 1*/23 /*FUNCTION StringExternalResult::StringExternalResult(){{{*/ 24 24 StringExternalResult::StringExternalResult(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION StringExternalResult::StringExternalResult(int enum_type,IssmString value){{{ 1*/28 /*FUNCTION StringExternalResult::StringExternalResult(int enum_type,IssmString value){{{*/ 29 29 StringExternalResult::StringExternalResult(int in_id, int in_enum_type,char* in_value,int in_step, double in_time){ 30 30 … … 39 39 } 40 40 /*}}}*/ 41 /*FUNCTION StringExternalResult::~StringExternalResult(){{{ 1*/41 /*FUNCTION StringExternalResult::~StringExternalResult(){{{*/ 42 42 StringExternalResult::~StringExternalResult(){ 43 43 xfree((void**)&value); … … 46 46 47 47 /*Object virtual functions definitions:*/ 48 /*FUNCTION StringExternalResult::Echo {{{ 1*/48 /*FUNCTION StringExternalResult::Echo {{{*/ 49 49 void StringExternalResult::Echo(void){ 50 50 this->DeepEcho(); 51 51 } 52 52 /*}}}*/ 53 /*FUNCTION StringExternalResult::DeepEcho{{{ 1*/53 /*FUNCTION StringExternalResult::DeepEcho{{{*/ 54 54 void StringExternalResult::DeepEcho(void){ 55 55 … … 62 62 } 63 63 /*}}}*/ 64 /*FUNCTION StringExternalResult::Id{{{ 1*/64 /*FUNCTION StringExternalResult::Id{{{*/ 65 65 int StringExternalResult::Id(void){ return -1; } 66 66 /*}}}*/ 67 /*FUNCTION StringExternalResult::MyRank{{{ 1*/67 /*FUNCTION StringExternalResult::MyRank{{{*/ 68 68 int StringExternalResult::MyRank(void){ 69 69 extern int my_rank; … … 71 71 } 72 72 /*}}}*/ 73 /*FUNCTION StringExternalResult::ObjectEnum{{{ 1*/73 /*FUNCTION StringExternalResult::ObjectEnum{{{*/ 74 74 int StringExternalResult::ObjectEnum(void){ 75 75 … … 78 78 } 79 79 /*}}}*/ 80 /*FUNCTION StringExternalResult::copy{{{ 1*/80 /*FUNCTION StringExternalResult::copy{{{*/ 81 81 Object* StringExternalResult::copy() { 82 82 … … 87 87 88 88 /*StringExternalResult management: */ 89 /*FUNCTION StringExternalResult::WriteData{{{ 1*/89 /*FUNCTION StringExternalResult::WriteData{{{*/ 90 90 void StringExternalResult::WriteData(FILE* fid,bool io_gather){ 91 91 … … 118 118 119 119 } 120 /*}}} 1*/121 /*FUNCTION StringExternalResult::GetResultName{{{ 1*/120 /*}}}*/ 121 /*FUNCTION StringExternalResult::GetResultName{{{*/ 122 122 void StringExternalResult::GetResultName(char**pname){ 123 123 EnumToStringx(pname,this->enum_type); 124 124 } 125 125 /*}}}*/ 126 /*FUNCTION StringExternalResult::GetStep{{{ 1*/126 /*FUNCTION StringExternalResult::GetStep{{{*/ 127 127 int StringExternalResult::GetStep(void){ 128 128 -
TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/StringExternalResult.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 12 12 #ifdef HAVE_CONFIG_H … … 33 33 34 34 public: 35 /*StringExternalResult constructors, destructors: {{{ 1*/35 /*StringExternalResult constructors, destructors: {{{*/ 36 36 StringExternalResult(); 37 37 StringExternalResult(int id,int enum_type,char* value,int step, double time); 38 38 ~StringExternalResult(); 39 39 /*}}}*/ 40 /*Object virtual functions definitions:{{{ 1*/40 /*Object virtual functions definitions:{{{ */ 41 41 void Echo(); 42 42 void DeepEcho(); … … 46 46 Object* copy(); 47 47 /*}}}*/ 48 /*ExternalResult management: {{{ 1*/48 /*ExternalResult management: {{{*/ 49 49 int InstanceEnum(){return enum_type;} 50 50 void WriteData(FILE* fid,bool io_gather); -
TabularUnified issm/trunk-jpl/src/c/objects/FemModel.cpp ¶
r12016 r12365 20 20 21 21 /*Object constructors and destructor*/ 22 /*FUNCTION FemModel::constructor {{{ 1*/22 /*FUNCTION FemModel::constructor {{{*/ 23 23 FemModel::FemModel(char* inputfilename, char* outputfilename, const int in_solution_type,const int* analyses,const int nummodels){ 24 24 … … 77 77 } 78 78 79 /*}}} 1*/80 /*FUNCTION FemModel::destructor {{{ 1*/79 /*}}}*/ 80 /*FUNCTION FemModel::destructor {{{*/ 81 81 FemModel::~FemModel(){ 82 82 … … 96 96 97 97 } 98 /*}}} 1*/98 /*}}}*/ 99 99 100 100 /*Object management*/ 101 /*FUNCTION FemModel::Echo {{{ 1*/101 /*FUNCTION FemModel::Echo {{{*/ 102 102 void FemModel::Echo(void){ 103 103 … … 113 113 114 114 /*Numerics: */ 115 /*FUNCTION FemModel::SetCurrentConfiguration(int configuration_type,int analysis_type){{{ 1*/115 /*FUNCTION FemModel::SetCurrentConfiguration(int configuration_type,int analysis_type){{{*/ 116 116 void FemModel::SetCurrentConfiguration(int configuration_type,int analysis_type){ 117 117 … … 150 150 151 151 } 152 /*}}} 1*/153 /*FUNCTION FemModel::SetCurrentConfiguration(int configuration_type){{{ 1*/152 /*}}}*/ 153 /*FUNCTION FemModel::SetCurrentConfiguration(int configuration_type){{{*/ 154 154 void FemModel::SetCurrentConfiguration(int configuration_type){ 155 155 … … 157 157 this->SetCurrentConfiguration(configuration_type,configuration_type); 158 158 } 159 /*}}} 1*/159 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/objects/FemModel.h ¶
r8800 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "./Object.h" 11 11 #include "../toolkits/toolkits.h" -
TabularUnified issm/trunk-jpl/src/c/objects/Gauss/GaussPenta.cpp ¶
r8416 r12365 3 3 */ 4 4 5 /*Include files: {{{ 1*/5 /*Include files: {{{*/ 6 6 #include "./../objects.h" 7 7 /*}}}*/ 8 8 9 9 /*GaussPenta constructors and destructors:*/ 10 /*FUNCTION GaussPenta::GaussPenta() {{{ 1*/10 /*FUNCTION GaussPenta::GaussPenta() {{{*/ 11 11 GaussPenta::GaussPenta(){ 12 12 … … 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION GaussPenta::GaussPenta(int order_horiz,int order_vert) {{{ 1*/28 /*FUNCTION GaussPenta::GaussPenta(int order_horiz,int order_vert) {{{*/ 29 29 GaussPenta::GaussPenta(int order_horiz,int order_vert){ 30 30 … … 80 80 } 81 81 /*}}}*/ 82 /*FUNCTION GaussPenta::GaussPenta(int index1, int index2, int order){{{ 1*/82 /*FUNCTION GaussPenta::GaussPenta(int index1, int index2, int order){{{*/ 83 83 GaussPenta::GaussPenta(int index1, int index2,int order){ 84 84 … … 137 137 } 138 138 /*}}}*/ 139 /*FUNCTION GaussPenta::GaussPenta(int index1, int index2, int index3, int order){{{ 1*/139 /*FUNCTION GaussPenta::GaussPenta(int index1, int index2, int index3, int order){{{*/ 140 140 GaussPenta::GaussPenta(int index1, int index2, int index3, int order){ 141 141 … … 166 166 } 167 167 /*}}}*/ 168 /*FUNCTION GaussPenta::GaussPenta(int index1, int index2, int index3, int index4,int order_horiz,int order_vert){{{ 1*/168 /*FUNCTION GaussPenta::GaussPenta(int index1, int index2, int index3, int index4,int order_horiz,int order_vert){{{*/ 169 169 GaussPenta::GaussPenta(int index1, int index2, int index3, int index4,int order_horiz,int order_vert){ 170 170 … … 233 233 } 234 234 /*}}}*/ 235 /*FUNCTION GaussPenta::~GaussPenta(){{{ 1*/235 /*FUNCTION GaussPenta::~GaussPenta(){{{*/ 236 236 GaussPenta::~GaussPenta(){ 237 237 xfree((void**)&weights); … … 244 244 245 245 /*Methods*/ 246 /*FUNCTION GaussPenta::Echo{{{ 1*/246 /*FUNCTION GaussPenta::Echo{{{*/ 247 247 void GaussPenta::Echo(void){ 248 248 … … 289 289 } 290 290 /*}}}*/ 291 /*FUNCTION GaussPenta::GaussCenter{{{ 1*/291 /*FUNCTION GaussPenta::GaussCenter{{{*/ 292 292 void GaussPenta::GaussCenter(void){ 293 293 … … 300 300 } 301 301 /*}}}*/ 302 /*FUNCTION GaussPenta::GaussPoint{{{ 1*/302 /*FUNCTION GaussPenta::GaussPoint{{{*/ 303 303 void GaussPenta::GaussPoint(int ig){ 304 304 … … 315 315 } 316 316 /*}}}*/ 317 /*FUNCTION GaussPenta::GaussVertex{{{ 1*/317 /*FUNCTION GaussPenta::GaussVertex{{{*/ 318 318 void GaussPenta::GaussVertex(int iv){ 319 319 … … 348 348 } 349 349 /*}}}*/ 350 /*FUNCTION GaussPenta::GaussFaceTria{{{ 1*/350 /*FUNCTION GaussPenta::GaussFaceTria{{{*/ 351 351 void GaussPenta::GaussFaceTria(int index1, int index2, int index3, int order){ 352 352 … … 366 366 } 367 367 /*}}}*/ 368 /*FUNCTION GaussPenta::begin{{{ 1*/368 /*FUNCTION GaussPenta::begin{{{*/ 369 369 int GaussPenta::begin(void){ 370 370 … … 381 381 } 382 382 /*}}}*/ 383 /*FUNCTION GaussPenta::end{{{ 1*/383 /*FUNCTION GaussPenta::end{{{*/ 384 384 int GaussPenta::end(void){ 385 385 … … 396 396 } 397 397 /*}}}*/ 398 /*FUNCTION GaussPenta::SynchronizeGaussTria{{{ 1*/398 /*FUNCTION GaussPenta::SynchronizeGaussTria{{{*/ 399 399 void GaussPenta::SynchronizeGaussTria(GaussTria* gauss_tria){ 400 400 -
TabularUnified issm/trunk-jpl/src/c/objects/Gauss/GaussPenta.h ¶
r5797 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "./../../shared/shared.h" 11 11 class GaussTria; -
TabularUnified issm/trunk-jpl/src/c/objects/Gauss/GaussTria.cpp ¶
r6412 r12365 3 3 */ 4 4 5 /*Include files: {{{ 1*/5 /*Include files: {{{*/ 6 6 #include "./../objects.h" 7 7 /*}}}*/ 8 8 9 9 /*GaussTria constructors and destructors:*/ 10 /*FUNCTION GaussTria::GaussTria() {{{ 1*/10 /*FUNCTION GaussTria::GaussTria() {{{*/ 11 11 GaussTria::GaussTria(){ 12 12 … … 24 24 } 25 25 /*}}}*/ 26 /*FUNCTION GaussTria::GaussTria(int order) {{{ 1*/26 /*FUNCTION GaussTria::GaussTria(int order) {{{*/ 27 27 GaussTria::GaussTria(int order){ 28 28 … … 38 38 } 39 39 /*}}}*/ 40 /*FUNCTION GaussTria::GaussTria(int index1,int index2,int order) {{{ 1*/40 /*FUNCTION GaussTria::GaussTria(int index1,int index2,int order) {{{*/ 41 41 GaussTria::GaussTria(int index1,int index2,int order){ 42 42 … … 95 95 } 96 96 /*}}}*/ 97 /*FUNCTION GaussTria::~GaussTria(){{{ 1*/97 /*FUNCTION GaussTria::~GaussTria(){{{*/ 98 98 GaussTria::~GaussTria(){ 99 99 xfree((void**)&weights); … … 105 105 106 106 /*Methods*/ 107 /*FUNCTION GaussTria::Echo{{{ 1*/107 /*FUNCTION GaussTria::Echo{{{*/ 108 108 void GaussTria::Echo(void){ 109 109 … … 143 143 } 144 144 /*}}}*/ 145 /*FUNCTION GaussTria::GaussCenter{{{ 1*/145 /*FUNCTION GaussTria::GaussCenter{{{*/ 146 146 void GaussTria::GaussCenter(void){ 147 147 … … 153 153 } 154 154 /*}}}*/ 155 /*FUNCTION GaussTria::GaussEdgeCenter{{{ 1*/155 /*FUNCTION GaussTria::GaussEdgeCenter{{{*/ 156 156 void GaussTria::GaussEdgeCenter(int index1,int index2){ 157 157 … … 184 184 } 185 185 /*}}}*/ 186 /*FUNCTION GaussTria::GaussPoint{{{ 1*/186 /*FUNCTION GaussTria::GaussPoint{{{*/ 187 187 void GaussTria::GaussPoint(int ig){ 188 188 … … 198 198 } 199 199 /*}}}*/ 200 /*FUNCTION GaussTria::GaussFromCoords{{{ 1*/200 /*FUNCTION GaussTria::GaussFromCoords{{{*/ 201 201 void GaussTria::GaussFromCoords(double x,double y,double* xyz_list){ 202 202 … … 225 225 } 226 226 /*}}}*/ 227 /*FUNCTION GaussTria::GaussVertex{{{ 1*/227 /*FUNCTION GaussTria::GaussVertex{{{*/ 228 228 void GaussTria::GaussVertex(int iv){ 229 229 … … 249 249 } 250 250 /*}}}*/ 251 /*FUNCTION GaussTria::begin{{{ 1*/251 /*FUNCTION GaussTria::begin{{{*/ 252 252 int GaussTria::begin(void){ 253 253 … … 263 263 } 264 264 /*}}}*/ 265 /*FUNCTION GaussTria::end{{{ 1*/265 /*FUNCTION GaussTria::end{{{*/ 266 266 int GaussTria::end(void){ 267 267 -
TabularUnified issm/trunk-jpl/src/c/objects/Gauss/GaussTria.h ¶
r5739 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "./../../shared/shared.h" 11 11 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Hook.cpp ¶
r12014 r12365 20 20 21 21 /*Constructor/Destructors*/ 22 /*FUNCTION Hook::Hook(){{{ 1*/22 /*FUNCTION Hook::Hook(){{{*/ 23 23 Hook::Hook(){ 24 24 this->num=0; … … 29 29 } 30 30 /*}}}*/ 31 /*FUNCTION Hook::Hook(int* ids, int num){{{ 1*/31 /*FUNCTION Hook::Hook(int* ids, int num){{{*/ 32 32 Hook::Hook(int* in_ids, int in_num){ 33 33 … … 60 60 } 61 61 /*}}}*/ 62 /*FUNCTION Hook::~Hook(){{{ 1*/62 /*FUNCTION Hook::~Hook(){{{*/ 63 63 Hook::~Hook(){ 64 64 /*deallocate: */ … … 71 71 72 72 /*Some of the Object functionality: */ 73 /*FUNCTION Hook::Echo{{{ 1*/73 /*FUNCTION Hook::Echo{{{*/ 74 74 void Hook::Echo(void){ 75 75 … … 90 90 } 91 91 /*}}}*/ 92 /*FUNCTION Hook::DeepEcho{{{ 1*/92 /*FUNCTION Hook::DeepEcho{{{*/ 93 93 void Hook::DeepEcho(void){ 94 94 … … 118 118 } 119 119 /*}}}*/ 120 /*FUNCTION Hook::copy {{{ 1*/120 /*FUNCTION Hook::copy {{{*/ 121 121 Object* Hook::copy(void){ 122 122 … … 148 148 149 149 /*Hook management: */ 150 /*FUNCTION Hook::configure{{{ 1*/150 /*FUNCTION Hook::configure{{{*/ 151 151 void Hook::configure(DataSet* dataset){ 152 152 … … 190 190 } 191 191 /*}}}*/ 192 /*FUNCTION Hook::delivers{{{ 1*/192 /*FUNCTION Hook::delivers{{{*/ 193 193 Object* Hook::delivers(void){ 194 194 … … 203 203 204 204 /*}}}*/ 205 /*FUNCTION Hook::deliverp{{{ 1*/205 /*FUNCTION Hook::deliverp{{{*/ 206 206 Object** Hook::deliverp(void){ 207 207 return objects; 208 208 } 209 209 /*}}}*/ 210 /*FUNCTION Hook::Ids{{{ 1*/210 /*FUNCTION Hook::Ids{{{*/ 211 211 int* Hook::Ids(void){ 212 212 return this->ids; 213 213 } 214 214 /*}}}*/ 215 /*FUNCTION Hook::GetNum{{{ 1*/215 /*FUNCTION Hook::GetNum{{{*/ 216 216 int Hook::GetNum(void){ 217 217 return this->num; 218 218 } 219 219 /*}}}*/ 220 /*FUNCTION Hook::GetObjects{{{ 1*/220 /*FUNCTION Hook::GetObjects{{{*/ 221 221 Object** Hook::GetObjects(void){ 222 222 return this->objects; 223 223 } 224 224 /*}}}*/ 225 /*FUNCTION Hook::GetOffsets{{{ 1*/225 /*FUNCTION Hook::GetOffsets{{{*/ 226 226 int* Hook::GetOffsets(void){ 227 227 return this->offsets; 228 228 } 229 229 /*}}}*/ 230 /*FUNCTION Hook::Spawn{{{ 1*/230 /*FUNCTION Hook::Spawn{{{*/ 231 231 Hook* Hook::Spawn(int* indices, int numindices){ 232 232 -
TabularUnified issm/trunk-jpl/src/c/objects/Hook.h ¶
r12014 r12365 10 10 11 11 /*Headers:*/ 12 /*{{{ 1*/12 /*{{{*/ 13 13 #include "./Object.h" 14 14 class DataSet; … … 31 31 ~Hook(); 32 32 /*}}}*/ 33 /*Object like functionality:{{{ 1*/33 /*Object like functionality:{{{*/ 34 34 void Echo(void); 35 35 void DeepEcho(void); 36 36 Object* copy(void); 37 37 /*}}}*/ 38 /*Hook management: {{{ 1*/38 /*Hook management: {{{*/ 39 39 Object* delivers(void); //single object deliver 40 40 Object** deliverp(void); //deliver all objects -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/BoolInput.cpp ¶
r12014 r12365 18 18 19 19 /*BoolInput constructors and destructor*/ 20 /*FUNCTION BoolInput::BoolInput(){{{ 1*/20 /*FUNCTION BoolInput::BoolInput(){{{*/ 21 21 BoolInput::BoolInput(){ 22 22 return; 23 23 } 24 24 /*}}}*/ 25 /*FUNCTION BoolInput::BoolInput(double* values){{{ 1*/25 /*FUNCTION BoolInput::BoolInput(double* values){{{*/ 26 26 BoolInput::BoolInput(int in_enum_type,IssmBool in_value){ 27 27 … … 30 30 } 31 31 /*}}}*/ 32 /*FUNCTION BoolInput::~BoolInput(){{{ 1*/32 /*FUNCTION BoolInput::~BoolInput(){{{*/ 33 33 BoolInput::~BoolInput(){ 34 34 return; … … 37 37 38 38 /*Object virtual functions definitions:*/ 39 /*FUNCTION BoolInput::Echo {{{ 1*/39 /*FUNCTION BoolInput::Echo {{{*/ 40 40 void BoolInput::Echo(void){ 41 41 this->DeepEcho(); 42 42 } 43 43 /*}}}*/ 44 /*FUNCTION BoolInput::DeepEcho{{{ 1*/44 /*FUNCTION BoolInput::DeepEcho{{{*/ 45 45 void BoolInput::DeepEcho(void){ 46 46 … … 50 50 } 51 51 /*}}}*/ 52 /*FUNCTION BoolInput::Id{{{ 1*/52 /*FUNCTION BoolInput::Id{{{*/ 53 53 int BoolInput::Id(void){ return -1; } 54 54 /*}}}*/ 55 /*FUNCTION BoolInput::MyRank{{{ 1*/55 /*FUNCTION BoolInput::MyRank{{{*/ 56 56 int BoolInput::MyRank(void){ 57 57 extern int my_rank; … … 59 59 } 60 60 /*}}}*/ 61 /*FUNCTION BoolInput::ObjectEnum{{{ 1*/61 /*FUNCTION BoolInput::ObjectEnum{{{*/ 62 62 int BoolInput::ObjectEnum(void){ 63 63 … … 66 66 } 67 67 /*}}}*/ 68 /*FUNCTION BoolInput::copy{{{ 1*/68 /*FUNCTION BoolInput::copy{{{*/ 69 69 Object* BoolInput::copy() { 70 70 … … 75 75 76 76 /*BoolInput management*/ 77 /*FUNCTION BoolInput::InstanceEnum{{{ 1*/77 /*FUNCTION BoolInput::InstanceEnum{{{*/ 78 78 int BoolInput::InstanceEnum(void){ 79 79 … … 82 82 } 83 83 /*}}}*/ 84 /*FUNCTION BoolInput::SpawnTriaInput{{{ 1*/84 /*FUNCTION BoolInput::SpawnTriaInput{{{*/ 85 85 Input* BoolInput::SpawnTriaInput(int* indices){ 86 86 … … 97 97 } 98 98 /*}}}*/ 99 /*FUNCTION BoolInput::SpawnResult{{{ 1*/99 /*FUNCTION BoolInput::SpawnResult{{{*/ 100 100 ElementResult* BoolInput::SpawnResult(int step, double time){ 101 101 … … 106 106 107 107 /*Object functions*/ 108 /*FUNCTION BoolInput::GetInputValue(bool* pvalue) {{{ 1*/108 /*FUNCTION BoolInput::GetInputValue(bool* pvalue) {{{*/ 109 109 void BoolInput::GetInputValue(bool* pvalue){ 110 110 *pvalue=value; 111 111 } 112 112 /*}}}*/ 113 /*FUNCTION BoolInput::GetInputValue(int* pvalue){{{ 1*/113 /*FUNCTION BoolInput::GetInputValue(int* pvalue){{{*/ 114 114 void BoolInput::GetInputValue(int* pvalue){_error_(" not supported yet!");} 115 115 /*}}}*/ 116 /*FUNCTION BoolInput::GetInputValue(double* pvalue){{{ 1*/116 /*FUNCTION BoolInput::GetInputValue(double* pvalue){{{*/ 117 117 void BoolInput::GetInputValue(double* pvalue){_error_(" not supported yet!");} 118 118 /*}}}*/ 119 /*FUNCTION BoolInput::GetInputValue(double* pvalue,GaussTria* gauss){{{ 1*/119 /*FUNCTION BoolInput::GetInputValue(double* pvalue,GaussTria* gauss){{{*/ 120 120 void BoolInput::GetInputValue(double* pvalue,GaussTria* gauss){_error_(" not supported yet!");} 121 121 /*}}}*/ 122 /*FUNCTION BoolInput::GetInputValue(double* pvalue,GaussPenta* gauss){{{ 1*/122 /*FUNCTION BoolInput::GetInputValue(double* pvalue,GaussPenta* gauss){{{*/ 123 123 void BoolInput::GetInputValue(double* pvalue,GaussPenta* gauss){_error_(" not supported yet!");} 124 124 /*}}}*/ 125 /*FUNCTION BoolInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussTria* gauss){{{ 1*/125 /*FUNCTION BoolInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussTria* gauss){{{*/ 126 126 void BoolInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussTria* gauss){_error_(" not supported yet!");} 127 127 /*}}}*/ 128 /*FUNCTION BoolInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussPenta* gauss){{{ 1*/128 /*FUNCTION BoolInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussPenta* gauss){{{*/ 129 129 void BoolInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussPenta* gauss){_error_(" not supported yet!");} 130 130 /*}}}*/ 131 /*FUNCTION BoolInput::ChangeEnum{{{ 1*/131 /*FUNCTION BoolInput::ChangeEnum{{{*/ 132 132 void BoolInput::ChangeEnum(int newenumtype){ 133 133 this->enum_type=newenumtype; 134 134 } 135 135 /*}}}*/ 136 /*FUNCTION BoolInput::SquareMin{{{ 1*/136 /*FUNCTION BoolInput::SquareMin{{{*/ 137 137 void BoolInput::SquareMin(double* psquaremin, bool process_units,Parameters* parameters){ 138 138 /*square of a bool is the bool itself: */ … … 140 140 } 141 141 /*}}}*/ 142 /*FUNCTION BoolInput::Scale{{{ 1*/142 /*FUNCTION BoolInput::Scale{{{*/ 143 143 void BoolInput::Scale(double scale_factor){ 144 144 /*a bool cannot be scaled: */ 145 145 } 146 146 /*}}}*/ 147 /*FUNCTION BoolInput::AXPY{{{ 1*/147 /*FUNCTION BoolInput::AXPY{{{*/ 148 148 void BoolInput::AXPY(Input* xinput,double scalar){ 149 149 … … 166 166 } 167 167 /*}}}*/ 168 /*FUNCTION BoolInput::Constrain{{{ 1*/168 /*FUNCTION BoolInput::Constrain{{{*/ 169 169 void BoolInput::Constrain(double cm_min, double cm_max){ 170 170 … … 174 174 } 175 175 /*}}}*/ 176 /*FUNCTION BoolInput::Extrude{{{ 1*/176 /*FUNCTION BoolInput::Extrude{{{*/ 177 177 void BoolInput::Extrude(void){ 178 178 … … 181 181 } 182 182 /*}}}*/ 183 /*FUNCTION BoolInput::GetVectorFromInputs{{{ 1*/183 /*FUNCTION BoolInput::GetVectorFromInputs{{{*/ 184 184 void BoolInput::GetVectorFromInputs(Vector* vector,int* doflist){ 185 185 … … 188 188 } 189 189 /*}}}*/ 190 /*FUNCTION BoolInput::GetValuesPtr{{{ 1*/190 /*FUNCTION BoolInput::GetValuesPtr{{{*/ 191 191 void BoolInput::GetValuesPtr(double** pvalues,int* pnum_values){ 192 192 … … 195 195 } 196 196 /*}}}*/ 197 /*FUNCTION BoolInput::Configure{{{ 1*/197 /*FUNCTION BoolInput::Configure{{{*/ 198 198 void BoolInput::Configure(Parameters* parameters){ 199 199 /*do nothing: */ -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/BoolInput.h ¶
r12326 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #include "./Input.h" 12 12 #include "../../include/include.h" … … 21 21 IssmBool value; 22 22 23 /*BoolInput constructors, destructors: {{{ 1*/23 /*BoolInput constructors, destructors: {{{*/ 24 24 BoolInput(); 25 25 BoolInput(int enum_type,IssmBool value); 26 26 ~BoolInput(); 27 27 /*}}}*/ 28 /*Object virtual functions definitions:{{{ 1*/28 /*Object virtual functions definitions:{{{ */ 29 29 void Echo(); 30 30 void DeepEcho(); … … 34 34 Object* copy(); 35 35 /*}}}*/ 36 /*BoolInput management: {{{ 1*/36 /*BoolInput management: {{{*/ 37 37 int InstanceEnum(); 38 38 Input* SpawnTriaInput(int* indices); … … 44 44 void AddTimeValues(double* values,int step,double time){_error_("not supported yet");}; 45 45 /*}}}*/ 46 /*numerics: {{{ 1*/46 /*numerics: {{{*/ 47 47 void GetInputValue(bool* pvalue); 48 48 void GetInputValue(int* pvalue); -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/ControlInput.cpp ¶
r12014 r12365 18 18 19 19 /*ControlInput constructors and destructor*/ 20 /*FUNCTION ControlInput::ControlInput(){{{ 1*/20 /*FUNCTION ControlInput::ControlInput(){{{*/ 21 21 ControlInput::ControlInput(){ 22 22 control_id = 0; … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION ControlInput::ControlInput(int enum_type,int enum_input,double* pvalues,double* pmin,double* pmax,int id){{{ 1*/30 /*FUNCTION ControlInput::ControlInput(int enum_type,int enum_input,double* pvalues,double* pmin,double* pmax,int id){{{*/ 31 31 ControlInput::ControlInput(int in_enum_type,int enum_input,double* pvalues,double* pmin,double* pmax,int id){ 32 32 … … 53 53 } 54 54 /*}}}*/ 55 /*FUNCTION ControlInput::~ControlInput(){{{ 1*/55 /*FUNCTION ControlInput::~ControlInput(){{{*/ 56 56 ControlInput::~ControlInput(){ 57 57 delete values; … … 64 64 65 65 /*Object virtual functions definitions:*/ 66 /*FUNCTION ControlInput::Echo {{{ 1*/66 /*FUNCTION ControlInput::Echo {{{*/ 67 67 void ControlInput::Echo(void){ 68 68 this->DeepEcho(); 69 69 } 70 70 /*}}}*/ 71 /*FUNCTION ControlInput::DeepEcho{{{ 1*/71 /*FUNCTION ControlInput::DeepEcho{{{*/ 72 72 void ControlInput::DeepEcho(void){ 73 73 … … 81 81 } 82 82 /*}}}*/ 83 /*FUNCTION ControlInput::Id{{{ 1*/83 /*FUNCTION ControlInput::Id{{{*/ 84 84 int ControlInput::Id(void){ return -1; } 85 85 /*}}}*/ 86 /*FUNCTION ControlInput::MyRank{{{ 1*/86 /*FUNCTION ControlInput::MyRank{{{*/ 87 87 int ControlInput::MyRank(void){ 88 88 extern int my_rank; … … 90 90 } 91 91 /*}}}*/ 92 /*FUNCTION ControlInput::ObjectEnum{{{ 1*/92 /*FUNCTION ControlInput::ObjectEnum{{{*/ 93 93 int ControlInput::ObjectEnum(void){ 94 94 … … 97 97 } 98 98 /*}}}*/ 99 /*FUNCTION ControlInput::copy{{{ 1*/99 /*FUNCTION ControlInput::copy{{{*/ 100 100 Object* ControlInput::copy() { 101 101 … … 117 117 118 118 /*ControlInput management*/ 119 /*FUNCTION ControlInput::InstanceEnum{{{ 1*/119 /*FUNCTION ControlInput::InstanceEnum{{{*/ 120 120 int ControlInput::InstanceEnum(void){ 121 121 … … 126 126 127 127 /*Object functions*/ 128 /*FUNCTION ControlInput::Constrain(){{{ 1*/128 /*FUNCTION ControlInput::Constrain(){{{*/ 129 129 void ControlInput::Constrain(void){ 130 130 … … 136 136 delete values; this->values=newvalues; 137 137 }/*}}}*/ 138 /*FUNCTION ControlInput::Constrain(double min, double max){{{ 1*/138 /*FUNCTION ControlInput::Constrain(double min, double max){{{*/ 139 139 void ControlInput::Constrain(double min, double max){ 140 140 values->Constrain(min,max); 141 141 }/*}}}*/ 142 /*FUNCTION ControlInput::Extrude{{{ 1*/142 /*FUNCTION ControlInput::Extrude{{{*/ 143 143 void ControlInput::Extrude(void){ 144 144 values->Extrude(); … … 146 146 //gradient->Extrude(); 147 147 }/*}}}*/ 148 /*FUNCTION ControlInput::GetGradient{{{ 1*/148 /*FUNCTION ControlInput::GetGradient{{{*/ 149 149 void ControlInput::GetGradient(Vector* gradient_vec,int* doflist){ 150 150 if(gradient) gradient->GetVectorFromInputs(gradient_vec,doflist); 151 151 }/*}}}*/ 152 /*FUNCTION ControlInput::ScaleGradient{{{ 1*/152 /*FUNCTION ControlInput::ScaleGradient{{{*/ 153 153 void ControlInput::ScaleGradient(double scaling_factor){ 154 154 if(!gradient) _error_("Gradient of ControlInput %s not found",EnumToStringx(enum_type)); 155 155 gradient->Scale(scaling_factor); 156 156 }/*}}}*/ 157 /*FUNCTION ControlInput::SetGradient{{{ 1*/157 /*FUNCTION ControlInput::SetGradient{{{*/ 158 158 void ControlInput::SetGradient(Input* gradient_in){ 159 159 … … 178 178 179 179 }/*}}}*/ 180 /*FUNCTION ControlInput::SetInput{{{ 1*/180 /*FUNCTION ControlInput::SetInput{{{*/ 181 181 void ControlInput::SetInput(Input* in_input){ 182 182 … … 185 185 186 186 }/*}}}*/ 187 /*FUNCTION ControlInput::SpawnResult{{{ 1*/187 /*FUNCTION ControlInput::SpawnResult{{{*/ 188 188 ElementResult* ControlInput::SpawnResult(int step, double time){ 189 189 return savedvalues->SpawnResult(step,time); 190 190 }/*}}}*/ 191 /*FUNCTION ControlInput::SpawnTriaInput{{{ 1*/191 /*FUNCTION ControlInput::SpawnTriaInput{{{*/ 192 192 Input* ControlInput::SpawnTriaInput(int* indices){ 193 193 return values->SpawnTriaInput(indices); 194 194 }/*}}}*/ 195 /*FUNCTION ControlInput::SpawnGradient{{{ 1*/195 /*FUNCTION ControlInput::SpawnGradient{{{*/ 196 196 ElementResult* ControlInput::SpawnGradient(int step, double time){ 197 197 _assert_(gradient); 198 198 return gradient->SpawnResult(step,time); 199 199 }/*}}}*/ 200 /*FUNCTION ControlInput::GetVectorFromInputs(Vector* vector,int* doflist){{{ 1*/200 /*FUNCTION ControlInput::GetVectorFromInputs(Vector* vector,int* doflist){{{*/ 201 201 void ControlInput::GetVectorFromInputs(Vector* vector,int* doflist){ 202 202 values->GetVectorFromInputs(vector,doflist); 203 203 }/*}}}*/ 204 /*FUNCTION ControlInput::GetVectorFromInputs(Vector* vector,int* doflist,const char* data){{{ 1*/204 /*FUNCTION ControlInput::GetVectorFromInputs(Vector* vector,int* doflist,const char* data){{{*/ 205 205 void ControlInput::GetVectorFromInputs(Vector* vector,int* doflist,const char* data){ 206 206 if(strcmp(data,"value")==0){ … … 224 224 } 225 225 }/*}}}*/ 226 /*FUNCTION ControlInput::GetInputAverage(double* pvalue){{{ 1*/226 /*FUNCTION ControlInput::GetInputAverage(double* pvalue){{{*/ 227 227 void ControlInput::GetInputAverage(double* pvalue){ 228 228 values->GetInputAverage(pvalue); 229 229 }/*}}}*/ 230 /*FUNCTION ControlInput::GetInputValue(bool* pvalue){{{ 1*/230 /*FUNCTION ControlInput::GetInputValue(bool* pvalue){{{*/ 231 231 void ControlInput::GetInputValue(bool* pvalue){ 232 232 values->GetInputValue(pvalue); 233 233 }/*}}}*/ 234 /*FUNCTION ControlInput::GetInputValue(int* pvalue){{{ 1*/234 /*FUNCTION ControlInput::GetInputValue(int* pvalue){{{*/ 235 235 void ControlInput::GetInputValue(int* pvalue){ 236 236 values->GetInputValue(pvalue); 237 237 }/*}}}*/ 238 /*FUNCTION ControlInput::GetInputValue(double* pvalue){{{ 1*/238 /*FUNCTION ControlInput::GetInputValue(double* pvalue){{{*/ 239 239 void ControlInput::GetInputValue(double* pvalue){ 240 240 values->GetInputValue(pvalue); 241 241 }/*}}}*/ 242 /*FUNCTION ControlInput::GetInputValue(double* pvalue){{{ 1*/242 /*FUNCTION ControlInput::GetInputValue(double* pvalue){{{*/ 243 243 void ControlInput::GetInputValue(double* pvalue,GaussTria* gauss){ 244 244 values->GetInputValue(pvalue,gauss); 245 245 }/*}}}*/ 246 /*FUNCTION ControlInput::GetInputValue(double* pvalue){{{ 1*/246 /*FUNCTION ControlInput::GetInputValue(double* pvalue){{{*/ 247 247 void ControlInput::GetInputValue(double* pvalue,GaussPenta* gauss){ 248 248 values->GetInputValue(pvalue,gauss); 249 249 }/*}}}*/ 250 /*FUNCTION ControlInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussTria* gauss){{{ 1*/250 /*FUNCTION ControlInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussTria* gauss){{{*/ 251 251 void ControlInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussTria* gauss){ 252 252 values->GetInputDerivativeValue(derivativevalues,xyz_list,gauss); 253 253 }/*}}}*/ 254 /*FUNCTION ControlInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussPenta* gauss){{{ 1*/254 /*FUNCTION ControlInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussPenta* gauss){{{*/ 255 255 void ControlInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussPenta* gauss){ 256 256 values->GetInputDerivativeValue(derivativevalues,xyz_list,gauss); 257 257 }/*}}}*/ 258 /*FUNCTION ControlInput::SaveValue{{{ 1*/258 /*FUNCTION ControlInput::SaveValue{{{*/ 259 259 void ControlInput::SaveValue(void){ 260 260 if(!values) _error_("Values of %s not found",EnumToStringx(this->enum_type)); … … 263 263 this->savedvalues=(Input*)this->values->copy(); 264 264 }/*}}}*/ 265 /*FUNCTION ControlInput::UpdateValue{{{ 1*/265 /*FUNCTION ControlInput::UpdateValue{{{*/ 266 266 void ControlInput::UpdateValue(double scalar){ 267 267 if(!gradient) _error_("Gradient of %s not found",EnumToStringx(this->enum_type)); … … 272 272 this->values->AXPY(gradient,scalar); 273 273 }/*}}}*/ 274 /*FUNCTION ControlInput::VerticallyIntegrate{{{ 1*/274 /*FUNCTION ControlInput::VerticallyIntegrate{{{*/ 275 275 void ControlInput::VerticallyIntegrate(Input* thickness_input){ 276 276 values->VerticallyIntegrate(thickness_input); 277 277 }/*}}}*/ 278 /*FUNCTION ControlInput::Configure{{{ 1*/278 /*FUNCTION ControlInput::Configure{{{*/ 279 279 void ControlInput::Configure(Parameters* parameters){ 280 280 /*do nothing: */ -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/ControlInput.h ¶
r12326 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #include "./Input.h" 12 12 #include "../../include/include.h" … … 25 25 Input* gradient; 26 26 27 /*ControlInput constructors, destructors: {{{ 1*/27 /*ControlInput constructors, destructors: {{{*/ 28 28 ControlInput(); 29 29 ControlInput(int enum_type,int enum_input,double* pvalues,double* pmin,double* pmax,int id); 30 30 ~ControlInput(); 31 31 /*}}}*/ 32 /*Object virtual functions definitions:{{{ 1*/32 /*Object virtual functions definitions:{{{ */ 33 33 void Echo(); 34 34 void DeepEcho(); … … 38 38 Object* copy(); 39 39 /*}}}*/ 40 /*ControlInput management: {{{ 1*/40 /*ControlInput management: {{{*/ 41 41 int InstanceEnum(); 42 42 Input* SpawnTriaInput(int* indices); … … 48 48 void Configure(Parameters* parameters); 49 49 /*}}}*/ 50 /*numerics: {{{ 1*/50 /*numerics: {{{*/ 51 51 void SetInput(Input* in_input); 52 52 void GetInputValue(bool* pvalue); -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/DatasetInput.cpp ¶
r12014 r12365 2 2 * \brief: implementation of the datasetinput object 3 3 */ 4 /*Headers{{{ 1*/4 /*Headers{{{*/ 5 5 #ifdef HAVE_CONFIG_H 6 6 #include <config.h> … … 19 19 20 20 /*DatasetInput constructors and destructor*/ 21 /*FUNCTION DatasetInput::DatasetInput(){{{ 1*/21 /*FUNCTION DatasetInput::DatasetInput(){{{*/ 22 22 DatasetInput::DatasetInput(){ 23 23 enum_type=UNDEF; … … 25 25 } 26 26 /*}}}*/ 27 /*FUNCTION DatasetInput::DatasetInput(int in_enum_type) {{{ 1*/27 /*FUNCTION DatasetInput::DatasetInput(int in_enum_type) {{{*/ 28 28 DatasetInput::DatasetInput(int in_enum_type){ 29 29 … … 32 32 } 33 33 /*}}}*/ 34 /*FUNCTION DatasetInput::~DatasetInput(){{{ 1*/34 /*FUNCTION DatasetInput::~DatasetInput(){{{*/ 35 35 DatasetInput::~DatasetInput(){ 36 36 delete inputs; … … 39 39 40 40 /*Object virtual functions definitions:*/ 41 /*FUNCTION DatasetInput::Echo {{{ 1*/41 /*FUNCTION DatasetInput::Echo {{{*/ 42 42 void DatasetInput::Echo(void){ 43 43 this->DeepEcho(); 44 44 } 45 45 /*}}}*/ 46 /*FUNCTION DatasetInput::DeepEcho{{{ 1*/46 /*FUNCTION DatasetInput::DeepEcho{{{*/ 47 47 void DatasetInput::DeepEcho(void){ 48 48 … … 52 52 } 53 53 /*}}}*/ 54 /*FUNCTION DatasetInput::Id{{{ 1*/54 /*FUNCTION DatasetInput::Id{{{*/ 55 55 int DatasetInput::Id(void){ return -1; } 56 56 /*}}}*/ 57 /*FUNCTION DatasetInput::MyRank{{{ 1*/57 /*FUNCTION DatasetInput::MyRank{{{*/ 58 58 int DatasetInput::MyRank(void){ 59 59 extern int my_rank; … … 61 61 } 62 62 /*}}}*/ 63 /*FUNCTION DatasetInput::ObjectEnum{{{ 1*/63 /*FUNCTION DatasetInput::ObjectEnum{{{*/ 64 64 int DatasetInput::ObjectEnum(void){ 65 65 … … 68 68 } 69 69 /*}}}*/ 70 /*FUNCTION DatasetInput::copy{{{ 1*/70 /*FUNCTION DatasetInput::copy{{{*/ 71 71 Object* DatasetInput::copy() { 72 72 … … 80 80 } 81 81 /*}}}*/ 82 /*FUNCTION DatasetInput::SpawnTriaInput{{{ 1*/82 /*FUNCTION DatasetInput::SpawnTriaInput{{{*/ 83 83 Input* DatasetInput::SpawnTriaInput(int* indices){ 84 84 … … 97 97 98 98 /*DatasetInput management*/ 99 /*FUNCTION DatasetInput::InstanceEnum{{{ 1*/99 /*FUNCTION DatasetInput::InstanceEnum{{{*/ 100 100 int DatasetInput::InstanceEnum(void){ 101 101 … … 106 106 107 107 /*Object functions*/ 108 /*FUNCTION DatasetInput::Configure{{{ 1*/108 /*FUNCTION DatasetInput::Configure{{{*/ 109 109 void DatasetInput::Configure(Parameters* parameters){ 110 110 /*do nothing: */ 111 111 } 112 112 /*}}}*/ 113 /*FUNCTION DatasetInput::GetInputValue(double* pvalue,GaussTria* gauss,int index){{{ 1*/113 /*FUNCTION DatasetInput::GetInputValue(double* pvalue,GaussTria* gauss,int index){{{*/ 114 114 void DatasetInput::GetInputValue(double* pvalue,GaussTria* gauss,int index){ 115 115 -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/DatasetInput.h ¶
r12326 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #include "./Input.h" 12 12 #include "../../include/include.h" … … 21 21 Inputs* inputs; 22 22 23 /*DatasetInput constructors, destructors: {{{ 1*/23 /*DatasetInput constructors, destructors: {{{*/ 24 24 DatasetInput(); 25 25 DatasetInput(int enum_type); 26 26 ~DatasetInput(); 27 27 /*}}}*/ 28 /*Object virtual functions definitions:{{{ 1*/28 /*Object virtual functions definitions:{{{ */ 29 29 void Echo(); 30 30 void DeepEcho(); … … 34 34 Object* copy(); 35 35 /*}}}*/ 36 /*DatasetInput management: {{{ 1*/36 /*DatasetInput management: {{{*/ 37 37 int InstanceEnum(); 38 38 Input* SpawnTriaInput(int* indices); … … 44 44 void Configure(Parameters* parameters); 45 45 /*}}}*/ 46 /*numeriics: {{{ 1*/46 /*numeriics: {{{*/ 47 47 void GetInputValue(bool* pvalue){_error_("not implemented yet");}; 48 48 void GetInputValue(int* pvalue){_error_("not implemented yet");}; -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/DoubleInput.cpp ¶
r12018 r12365 18 18 19 19 /*DoubleInput constructors and destructor*/ 20 /*FUNCTION DoubleInput::DoubleInput(){{{ 1*/20 /*FUNCTION DoubleInput::DoubleInput(){{{*/ 21 21 DoubleInput::DoubleInput(){ 22 22 return; 23 23 } 24 24 /*}}}*/ 25 /*FUNCTION DoubleInput::DoubleInput(double value){{{ 1*/25 /*FUNCTION DoubleInput::DoubleInput(double value){{{*/ 26 26 DoubleInput::DoubleInput(int in_enum_type,IssmDouble in_value){ 27 27 … … 30 30 } 31 31 /*}}}*/ 32 /*FUNCTION DoubleInput::~DoubleInput(){{{ 1*/32 /*FUNCTION DoubleInput::~DoubleInput(){{{*/ 33 33 DoubleInput::~DoubleInput(){ 34 34 return; … … 37 37 38 38 /*Object virtual functions definitions:*/ 39 /*FUNCTION DoubleInput::Echo {{{ 1*/39 /*FUNCTION DoubleInput::Echo {{{*/ 40 40 void DoubleInput::Echo(void){ 41 41 this->DeepEcho(); 42 42 } 43 43 /*}}}*/ 44 /*FUNCTION DoubleInput::DeepEcho{{{ 1*/44 /*FUNCTION DoubleInput::DeepEcho{{{*/ 45 45 void DoubleInput::DeepEcho(void){ 46 46 … … 50 50 } 51 51 /*}}}*/ 52 /*FUNCTION DoubleInput::Id{{{ 1*/52 /*FUNCTION DoubleInput::Id{{{*/ 53 53 int DoubleInput::Id(void){ return -1; } 54 54 /*}}}*/ 55 /*FUNCTION DoubleInput::MyRank{{{ 1*/55 /*FUNCTION DoubleInput::MyRank{{{*/ 56 56 int DoubleInput::MyRank(void){ 57 57 extern int my_rank; … … 59 59 } 60 60 /*}}}*/ 61 /*FUNCTION DoubleInput::ObjectEnum{{{ 1*/61 /*FUNCTION DoubleInput::ObjectEnum{{{*/ 62 62 int DoubleInput::ObjectEnum(void){ 63 63 … … 66 66 } 67 67 /*}}}*/ 68 /*FUNCTION DoubleInput::copy{{{ 1*/68 /*FUNCTION DoubleInput::copy{{{*/ 69 69 Object* DoubleInput::copy() { 70 70 … … 75 75 76 76 /*DoubleInput management*/ 77 /*FUNCTION DoubleInput::InstanceEnum{{{ 1*/77 /*FUNCTION DoubleInput::InstanceEnum{{{*/ 78 78 int DoubleInput::InstanceEnum(void){ 79 79 … … 82 82 } 83 83 /*}}}*/ 84 /*FUNCTION DoubleInput::SpawnTriaInput{{{ 1*/84 /*FUNCTION DoubleInput::SpawnTriaInput{{{*/ 85 85 Input* DoubleInput::SpawnTriaInput(int* indices){ 86 86 … … 97 97 } 98 98 /*}}}*/ 99 /*FUNCTION DoubleInput::SpawnResult{{{ 1*/99 /*FUNCTION DoubleInput::SpawnResult{{{*/ 100 100 ElementResult* DoubleInput::SpawnResult(int step, double time){ 101 101 … … 106 106 107 107 /*Object functions*/ 108 /*FUNCTION DoubleInput::GetInputValue(bool* pvalue) {{{ 1*/108 /*FUNCTION DoubleInput::GetInputValue(bool* pvalue) {{{*/ 109 109 void DoubleInput::GetInputValue(bool* pvalue){ 110 110 _error_("Double input of enum %s cannot return a boolean",EnumToStringx(enum_type)); … … 112 112 } 113 113 /*}}}*/ 114 /*FUNCTION DoubleInput::GetInputValue(int* pvalue){{{ 1*/114 /*FUNCTION DoubleInput::GetInputValue(int* pvalue){{{*/ 115 115 void DoubleInput::GetInputValue(int* pvalue){ 116 116 _error_("Double input of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type)); … … 118 118 } 119 119 /*}}}*/ 120 /*FUNCTION DoubleInput::GetInputValue(double* pvalue){{{ 1*/120 /*FUNCTION DoubleInput::GetInputValue(double* pvalue){{{*/ 121 121 void DoubleInput::GetInputValue(double* pvalue){ 122 122 … … 125 125 } 126 126 /*}}}*/ 127 /*FUNCTION DoubleInput::GetInputValue(double* pvalue,GaussTria* gauss){{{ 1*/127 /*FUNCTION DoubleInput::GetInputValue(double* pvalue,GaussTria* gauss){{{*/ 128 128 void DoubleInput::GetInputValue(double* pvalue,GaussTria* gauss){*pvalue=this->value;} 129 129 /*}}}*/ 130 /*FUNCTION DoubleInput::GetInputValue(double* pvalue,GaussPenta* gauss){{{ 1*/130 /*FUNCTION DoubleInput::GetInputValue(double* pvalue,GaussPenta* gauss){{{*/ 131 131 void DoubleInput::GetInputValue(double* pvalue,GaussPenta* gauss){*pvalue=this->value;} 132 132 /*}}}*/ 133 /*FUNCTION DoubleInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussTria* gauss){{{ 1*/133 /*FUNCTION DoubleInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussTria* gauss){{{*/ 134 134 void DoubleInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussTria* gauss){_error_(" not supported yet!");} 135 135 /*}}}*/ 136 /*FUNCTION DoubleInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussPenta* gauss){{{ 1*/136 /*FUNCTION DoubleInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussPenta* gauss){{{*/ 137 137 void DoubleInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussPenta* gauss){_error_(" not supported yet!");} 138 138 /*}}}*/ 139 /*FUNCTION DoubleInput::GetVxStrainRate2d(double* epsilonvx,double* xyz_list, GaussTria* gauss){{{ 1*/139 /*FUNCTION DoubleInput::GetVxStrainRate2d(double* epsilonvx,double* xyz_list, GaussTria* gauss){{{*/ 140 140 void DoubleInput::GetVxStrainRate2d(double* epsilonvx,double* xyz_list, GaussTria* gauss){ 141 141 /*Epsilon is zero as vx is constant over the element*/ … … 143 143 } 144 144 /*}}}*/ 145 /*FUNCTION DoubleInput::GetVyStrainRate2d(double* epsilonvy,double* xyz_list, GaussTria* gauss){{{ 1*/145 /*FUNCTION DoubleInput::GetVyStrainRate2d(double* epsilonvy,double* xyz_list, GaussTria* gauss){{{*/ 146 146 void DoubleInput::GetVyStrainRate2d(double* epsilonvy,double* xyz_list, GaussTria* gauss){ 147 147 /*Epsilon is zero as vy is constant over the element*/ … … 149 149 } 150 150 /*}}}*/ 151 /*FUNCTION DoubleInput::GetVxStrainRate3d(double* epsilonvx,double* xyz_list, GaussPenta* gauss){{{ 1*/151 /*FUNCTION DoubleInput::GetVxStrainRate3d(double* epsilonvx,double* xyz_list, GaussPenta* gauss){{{*/ 152 152 void DoubleInput::GetVxStrainRate3d(double* epsilonvx,double* xyz_list, GaussPenta* gauss){ 153 153 /*Epsilon is zero as vx is constant over the element*/ … … 155 155 } 156 156 /*}}}*/ 157 /*FUNCTION DoubleInput::GetVyStrainRate3d(double* epsilonvy,double* xyz_list, GaussPenta* gauss){{{ 1*/157 /*FUNCTION DoubleInput::GetVyStrainRate3d(double* epsilonvy,double* xyz_list, GaussPenta* gauss){{{*/ 158 158 void DoubleInput::GetVyStrainRate3d(double* epsilonvy,double* xyz_list, GaussPenta* gauss){ 159 159 /*Epsilon is zero as vy is constant over the element*/ … … 161 161 } 162 162 /*}}}*/ 163 /*FUNCTION DoubleInput::GetVzStrainRate3d(double* epsilonvz,double* xyz_list, GaussPenta* gauss){{{ 1*/163 /*FUNCTION DoubleInput::GetVzStrainRate3d(double* epsilonvz,double* xyz_list, GaussPenta* gauss){{{*/ 164 164 void DoubleInput::GetVzStrainRate3d(double* epsilonvz,double* xyz_list, GaussPenta* gauss){ 165 165 /*Epsilon is zero as vz is constant over the element*/ … … 167 167 } 168 168 /*}}}*/ 169 /*FUNCTION DoubleInput::GetVxStrainRate3dPattyn(double* epsilonvx,double* xyz_list, GaussPenta* gauss){{{ 1*/169 /*FUNCTION DoubleInput::GetVxStrainRate3dPattyn(double* epsilonvx,double* xyz_list, GaussPenta* gauss){{{*/ 170 170 void DoubleInput::GetVxStrainRate3dPattyn(double* epsilonvx,double* xyz_list, GaussPenta* gauss){ 171 171 /*Epsilon is zero as vx is constant over the element*/ … … 173 173 } 174 174 /*}}}*/ 175 /*FUNCTION DoubleInput::GetVyStrainRate3dPattyn(double* epsilonvy,double* xyz_list, GaussPenta* gauss){{{ 1*/175 /*FUNCTION DoubleInput::GetVyStrainRate3dPattyn(double* epsilonvy,double* xyz_list, GaussPenta* gauss){{{*/ 176 176 void DoubleInput::GetVyStrainRate3dPattyn(double* epsilonvy,double* xyz_list, GaussPenta* gauss){ 177 177 /*Epsilon is zero as vy is constant over the element*/ … … 179 179 } 180 180 /*}}}*/ 181 /*FUNCTION DoubleInput::ChangeEnum{{{ 1*/181 /*FUNCTION DoubleInput::ChangeEnum{{{*/ 182 182 void DoubleInput::ChangeEnum(int newenumtype){ 183 183 this->enum_type=newenumtype; 184 184 } 185 185 /*}}}*/ 186 /*FUNCTION DoubleInput::SquareMin{{{ 1*/186 /*FUNCTION DoubleInput::SquareMin{{{*/ 187 187 void DoubleInput::SquareMin(double* psquaremin, bool process_units,Parameters* parameters){ 188 188 … … 191 191 } 192 192 /*}}}*/ 193 /*FUNCTION DoubleInput::Scale{{{ 1*/193 /*FUNCTION DoubleInput::Scale{{{*/ 194 194 void DoubleInput::Scale(double scale_factor){ 195 195 value=value*scale_factor; 196 196 } 197 197 /*}}}*/ 198 /*FUNCTION DoubleInput::ConstrainMin{{{ 1*/198 /*FUNCTION DoubleInput::ConstrainMin{{{*/ 199 199 void DoubleInput::ConstrainMin(double minimum){ 200 200 if (value<minimum) value=minimum; 201 201 } 202 202 /*}}}*/ 203 /*FUNCTION DoubleInput::AXPY{{{ 1*/203 /*FUNCTION DoubleInput::AXPY{{{*/ 204 204 void DoubleInput::AXPY(Input* xinput,double scalar){ 205 205 … … 222 222 } 223 223 /*}}}*/ 224 /*FUNCTION DoubleInput::Constrain{{{ 1*/224 /*FUNCTION DoubleInput::Constrain{{{*/ 225 225 void DoubleInput::Constrain(double cm_min, double cm_max){ 226 226 … … 230 230 } 231 231 /*}}}*/ 232 /*FUNCTION DoubleInput::Max{{{ 1*/232 /*FUNCTION DoubleInput::Max{{{*/ 233 233 double DoubleInput::Max(void){ 234 234 return this->value; 235 235 } 236 236 /*}}}*/ 237 /*FUNCTION DoubleInput::MaxAbs{{{ 1*/237 /*FUNCTION DoubleInput::MaxAbs{{{*/ 238 238 double DoubleInput::MaxAbs(void){ 239 239 return fabs(this->value); 240 240 } 241 241 /*}}}*/ 242 /*FUNCTION DoubleInput::Min{{{ 1*/242 /*FUNCTION DoubleInput::Min{{{*/ 243 243 double DoubleInput::Min(void){ 244 244 return this->value; 245 245 } 246 246 /*}}}*/ 247 /*FUNCTION DoubleInput::MinAbs{{{ 1*/247 /*FUNCTION DoubleInput::MinAbs{{{*/ 248 248 double DoubleInput::MinAbs(void){ 249 249 return fabs(this->value); 250 250 } 251 251 /*}}}*/ 252 /*FUNCTION DoubleInput::GetVectorFromInputs{{{ 1*/252 /*FUNCTION DoubleInput::GetVectorFromInputs{{{*/ 253 253 void DoubleInput::GetVectorFromInputs(Vector* vector,int* doflist){ 254 254 … … 257 257 } 258 258 /*}}}*/ 259 /*FUNCTION DoubleInput::GetValuesPtr{{{ 1*/259 /*FUNCTION DoubleInput::GetValuesPtr{{{*/ 260 260 void DoubleInput::GetValuesPtr(double** pvalues,int* pnum_values){ 261 261 … … 264 264 } 265 265 /*}}}*/ 266 /*FUNCTION DoubleInput::GetInputAverage{{{ 1*/266 /*FUNCTION DoubleInput::GetInputAverage{{{*/ 267 267 void DoubleInput::GetInputAverage(double* pvalue){ 268 268 *pvalue=value; 269 269 } 270 270 /*}}}*/ 271 /*FUNCTION DoubleInput::VerticallyIntegrate{{{ 1*/271 /*FUNCTION DoubleInput::VerticallyIntegrate{{{*/ 272 272 void DoubleInput::VerticallyIntegrate(Input* thickness_input){ 273 273 … … 291 291 } 292 292 /*}}}*/ 293 /*FUNCTION DoubleInput::PointwiseDivide{{{ 1*/293 /*FUNCTION DoubleInput::PointwiseDivide{{{*/ 294 294 Input* DoubleInput::PointwiseDivide(Input* inputB){ 295 295 … … 311 311 } 312 312 /*}}}*/ 313 /*FUNCTION DoubleInput::PointwiseMin{{{ 1*/313 /*FUNCTION DoubleInput::PointwiseMin{{{*/ 314 314 Input* DoubleInput::PointwiseMin(Input* input){ 315 315 … … 332 332 } 333 333 /*}}}*/ 334 /*FUNCTION DoubleInput::PointwiseMax{{{ 1*/334 /*FUNCTION DoubleInput::PointwiseMax{{{*/ 335 335 Input* DoubleInput::PointwiseMax(Input* input){ 336 336 … … 353 353 } 354 354 /*}}}*/ 355 /*FUNCTION DoubleInput::Configure{{{ 1*/355 /*FUNCTION DoubleInput::Configure{{{*/ 356 356 void DoubleInput::Configure(Parameters* parameters){ 357 357 /*do nothing: */ -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/DoubleInput.h ¶
r12326 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #include "./Input.h" 12 12 #include "../../include/include.h" … … 20 20 double value; 21 21 22 /*DoubleInput constructors, destructors: {{{ 1*/22 /*DoubleInput constructors, destructors: {{{*/ 23 23 DoubleInput(); 24 24 DoubleInput(int enum_type,IssmDouble value); 25 25 ~DoubleInput(); 26 26 /*}}}*/ 27 /*Object virtual functions definitions:{{{ 1*/27 /*Object virtual functions definitions:{{{ */ 28 28 void Echo(); 29 29 void DeepEcho(); … … 33 33 Object* copy(); 34 34 /*}}}*/ 35 /*DoubleInput management: {{{ 1*/35 /*DoubleInput management: {{{*/ 36 36 int InstanceEnum(); 37 37 Input* SpawnTriaInput(int* indices); … … 43 43 void Configure(Parameters* parameters); 44 44 /*}}}*/ 45 /*numerics: {{{ 1*/45 /*numerics: {{{*/ 46 46 void GetInputValue(bool* pvalue); 47 47 void GetInputValue(int* pvalue); -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/Input.h ¶
r12326 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #include "../Object.h" 12 12 class Node; … … 21 21 22 22 virtual ~Input(){}; 23 /*Virtual functions:{{{ 1*/23 /*Virtual functions:{{{*/ 24 24 virtual int InstanceEnum()=0; 25 25 virtual void GetInputValue(bool* pvalue)=0; -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/IntInput.cpp ¶
r12014 r12365 18 18 19 19 /*IntInput constructors and destructor*/ 20 /*FUNCTION IntInput::IntInput(){{{ 1*/20 /*FUNCTION IntInput::IntInput(){{{*/ 21 21 IntInput::IntInput(){ 22 22 return; 23 23 } 24 24 /*}}}*/ 25 /*FUNCTION IntInput::IntInput(double* values){{{ 1*/25 /*FUNCTION IntInput::IntInput(double* values){{{*/ 26 26 IntInput::IntInput(int in_enum_type,IssmInt in_value){ 27 27 … … 30 30 } 31 31 /*}}}*/ 32 /*FUNCTION IntInput::~IntInput(){{{ 1*/32 /*FUNCTION IntInput::~IntInput(){{{*/ 33 33 IntInput::~IntInput(){ 34 34 return; … … 37 37 38 38 /*Object virtual functions definitions:*/ 39 /*FUNCTION IntInput::DeepEcho{{{ 1*/39 /*FUNCTION IntInput::DeepEcho{{{*/ 40 40 void IntInput::DeepEcho(void){ 41 41 … … 45 45 } 46 46 /*}}}*/ 47 /*FUNCTION IntInput::Id{{{ 1*/47 /*FUNCTION IntInput::Id{{{*/ 48 48 int IntInput::Id(void){ return -1; } 49 49 /*}}}*/ 50 /*FUNCTION IntInput::MyRank{{{ 1*/50 /*FUNCTION IntInput::MyRank{{{*/ 51 51 int IntInput::MyRank(void){ 52 52 extern int my_rank; … … 54 54 } 55 55 /*}}}*/ 56 /*FUNCTION IntInput::ObjectEnum{{{ 1*/56 /*FUNCTION IntInput::ObjectEnum{{{*/ 57 57 int IntInput::ObjectEnum(void){ 58 58 … … 61 61 } 62 62 /*}}}*/ 63 /*FUNCTION IntInput::copy{{{ 1*/63 /*FUNCTION IntInput::copy{{{*/ 64 64 Object* IntInput::copy() { 65 65 … … 70 70 71 71 /*IntInput management*/ 72 /*FUNCTION IntInput::Echo {{{ 1*/72 /*FUNCTION IntInput::Echo {{{*/ 73 73 void IntInput::Echo(void){ 74 74 this->DeepEcho(); 75 75 } 76 76 /*}}}*/ 77 /*FUNCTION IntInput::InstanceEnum{{{ 1*/77 /*FUNCTION IntInput::InstanceEnum{{{*/ 78 78 int IntInput::InstanceEnum(void){ 79 79 … … 82 82 } 83 83 /*}}}*/ 84 /*FUNCTION IntInput::SpawnTriaInput{{{ 1*/84 /*FUNCTION IntInput::SpawnTriaInput{{{*/ 85 85 Input* IntInput::SpawnTriaInput(int* indices){ 86 86 … … 96 96 } 97 97 /*}}}*/ 98 /*FUNCTION IntInput::SpawnResult{{{ 1*/98 /*FUNCTION IntInput::SpawnResult{{{*/ 99 99 ElementResult* IntInput::SpawnResult(int step, double time){ 100 100 … … 105 105 106 106 /*Object functions*/ 107 /*FUNCTION IntInput::GetInputValue(bool* pvalue) {{{ 1*/107 /*FUNCTION IntInput::GetInputValue(bool* pvalue) {{{*/ 108 108 void IntInput::GetInputValue(bool* pvalue){_error_(" not supported yet!");} 109 109 /*}}}*/ 110 /*FUNCTION IntInput::GetInputValue(int* pvalue){{{ 1*/110 /*FUNCTION IntInput::GetInputValue(int* pvalue){{{*/ 111 111 void IntInput::GetInputValue(int* pvalue){ 112 112 *pvalue=value; 113 113 } 114 114 /*}}}*/ 115 /*FUNCTION IntInput::GetInputValue(double* pvalue){{{ 1*/115 /*FUNCTION IntInput::GetInputValue(double* pvalue){{{*/ 116 116 void IntInput::GetInputValue(double* pvalue){ 117 117 _error_("IntInput cannot return a double in parallel"); 118 118 } 119 119 /*}}}*/ 120 /*FUNCTION IntInput::GetInputValue(double* pvalue,GaussTria* gauss){{{ 1*/120 /*FUNCTION IntInput::GetInputValue(double* pvalue,GaussTria* gauss){{{*/ 121 121 void IntInput::GetInputValue(double* pvalue,GaussTria* gauss){_error_(" not supported yet!");} 122 122 /*}}}*/ 123 /*FUNCTION IntInput::GetInputValue(double* pvalue,GaussPenta* gauss){{{ 1*/123 /*FUNCTION IntInput::GetInputValue(double* pvalue,GaussPenta* gauss){{{*/ 124 124 void IntInput::GetInputValue(double* pvalue,GaussPenta* gauss){_error_(" not supported yet!");} 125 125 /*}}}*/ 126 /*FUNCTION IntInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussTria* gauss){{{ 1*/126 /*FUNCTION IntInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussTria* gauss){{{*/ 127 127 void IntInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussTria* gauss){_error_(" not supported yet!");} 128 128 /*}}}*/ 129 /*FUNCTION IntInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussPenta* gauss){{{ 1*/129 /*FUNCTION IntInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussPenta* gauss){{{*/ 130 130 void IntInput::GetInputDerivativeValue(double* derivativevalues, double* xyz_list, GaussPenta* gauss){_error_(" not supported yet!");} 131 131 /*}}}*/ 132 /*FUNCTION IntInput::ChangeEnum{{{ 1*/132 /*FUNCTION IntInput::ChangeEnum{{{*/ 133 133 void IntInput::ChangeEnum(int newenumtype){ 134 134 this->enum_type=newenumtype; 135 135 } 136 136 /*}}}*/ 137 /*FUNCTION IntInput::SquareMin{{{ 1*/137 /*FUNCTION IntInput::SquareMin{{{*/ 138 138 void IntInput::SquareMin(double* psquaremin, bool process_units,Parameters* parameters){ 139 139 … … 142 142 } 143 143 /*}}}*/ 144 /*FUNCTION IntInput::Scale{{{ 1*/144 /*FUNCTION IntInput::Scale{{{*/ 145 145 void IntInput::Scale(double scale_factor){ 146 146 double dvalue=(double)value*scale_factor; … … 148 148 } 149 149 /*}}}*/ 150 /*FUNCTION IntInput::AXPY{{{ 1*/150 /*FUNCTION IntInput::AXPY{{{*/ 151 151 void IntInput::AXPY(Input* xinput,double scalar){ 152 152 … … 171 171 } 172 172 /*}}}*/ 173 /*FUNCTION IntInput::Constrain{{{ 1*/173 /*FUNCTION IntInput::Constrain{{{*/ 174 174 void IntInput::Constrain(double cm_min, double cm_max){ 175 175 … … 179 179 } 180 180 /*}}}*/ 181 /*FUNCTION IntInput::GetVectorFromInputs{{{ 1*/181 /*FUNCTION IntInput::GetVectorFromInputs{{{*/ 182 182 void IntInput::GetVectorFromInputs(Vector* vector,int* doflist){ 183 183 … … 186 186 } 187 187 /*}}}*/ 188 /*FUNCTION IntInput::GetValuesPtr{{{ 1*/188 /*FUNCTION IntInput::GetValuesPtr{{{*/ 189 189 void IntInput::GetValuesPtr(double** pvalues,int* pnum_values){ 190 190 … … 193 193 } 194 194 /*}}}*/ 195 /*FUNCTION IntInput::Configure{{{ 1*/195 /*FUNCTION IntInput::Configure{{{*/ 196 196 void IntInput::Configure(Parameters* parameters){ 197 197 /*do nothing: */ -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/IntInput.h ¶
r12326 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #include "./Input.h" 12 12 #include "../../include/include.h" … … 21 21 IssmInt value; 22 22 23 /*IntInput constructors, destructors: {{{ 1*/23 /*IntInput constructors, destructors: {{{*/ 24 24 IntInput(); 25 25 IntInput(int enum_type,IssmInt value); 26 26 ~IntInput(); 27 27 /*}}}*/ 28 /*Object virtual functions definitions:{{{ 1*/28 /*Object virtual functions definitions:{{{ */ 29 29 void Echo(); 30 30 void DeepEcho(); … … 34 34 Object* copy(); 35 35 /*}}}*/ 36 /*IntInput management: {{{ 1*/36 /*IntInput management: {{{*/ 37 37 int InstanceEnum(); 38 38 Input* SpawnTriaInput(int* indices); … … 44 44 void Configure(Parameters* parameters); 45 45 /*}}}*/ 46 /*numerics: {{{ 1*/46 /*numerics: {{{*/ 47 47 void GetInputValue(bool* pvalue); 48 48 void GetInputValue(int* pvalue); -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/PentaP1Input.cpp ¶
r12014 r12365 18 18 19 19 /*PentaP1Input constructors and destructor*/ 20 /*FUNCTION PentaP1Input::PentaP1Input(){{{ 1*/20 /*FUNCTION PentaP1Input::PentaP1Input(){{{*/ 21 21 PentaP1Input::PentaP1Input(){ 22 22 return; 23 23 } 24 24 /*}}}*/ 25 /*FUNCTION PentaP1Input::PentaP1Input(int in_enum_type,double* values){{{ 1*/25 /*FUNCTION PentaP1Input::PentaP1Input(int in_enum_type,double* values){{{*/ 26 26 PentaP1Input::PentaP1Input(int in_enum_type,double* in_values) 27 27 :PentaRef(1) … … 41 41 } 42 42 /*}}}*/ 43 /*FUNCTION PentaP1Input::~PentaP1Input(){{{ 1*/43 /*FUNCTION PentaP1Input::~PentaP1Input(){{{*/ 44 44 PentaP1Input::~PentaP1Input(){ 45 45 return; … … 48 48 49 49 /*Object virtual functions definitions:*/ 50 /*FUNCTION PentaP1Input::Echo {{{ 1*/50 /*FUNCTION PentaP1Input::Echo {{{*/ 51 51 void PentaP1Input::Echo(void){ 52 52 this->DeepEcho(); 53 53 } 54 54 /*}}}*/ 55 /*FUNCTION PentaP1Input::DeepEcho{{{ 1*/55 /*FUNCTION PentaP1Input::DeepEcho{{{*/ 56 56 void PentaP1Input::DeepEcho(void){ 57 57 … … 61 61 } 62 62 /*}}}*/ 63 /*FUNCTION PentaP1Input::Id{{{ 1*/63 /*FUNCTION PentaP1Input::Id{{{*/ 64 64 int PentaP1Input::Id(void){ return -1; } 65 65 /*}}}*/ 66 /*FUNCTION PentaP1Input::MyRank{{{ 1*/66 /*FUNCTION PentaP1Input::MyRank{{{*/ 67 67 int PentaP1Input::MyRank(void){ 68 68 extern int my_rank; … … 70 70 } 71 71 /*}}}*/ 72 /*FUNCTION PentaP1Input::ObjectEnum{{{ 1*/72 /*FUNCTION PentaP1Input::ObjectEnum{{{*/ 73 73 int PentaP1Input::ObjectEnum(void){ 74 74 … … 79 79 80 80 /*PentaP1Input management*/ 81 /*FUNCTION PentaP1Input::copy{{{ 1*/81 /*FUNCTION PentaP1Input::copy{{{*/ 82 82 Object* PentaP1Input::copy() { 83 83 … … 86 86 } 87 87 /*}}}*/ 88 /*FUNCTION PentaP1Input::InstanceEnum{{{ 1*/88 /*FUNCTION PentaP1Input::InstanceEnum{{{*/ 89 89 int PentaP1Input::InstanceEnum(void){ 90 90 … … 93 93 } 94 94 /*}}}*/ 95 /*FUNCTION PentaP1Input::SpawnTriaInput{{{ 1*/95 /*FUNCTION PentaP1Input::SpawnTriaInput{{{*/ 96 96 Input* PentaP1Input::SpawnTriaInput(int* indices){ 97 97 … … 118 118 } 119 119 /*}}}*/ 120 /*FUNCTION PentaP1Input::SpawnResult{{{ 1*/120 /*FUNCTION PentaP1Input::SpawnResult{{{*/ 121 121 ElementResult* PentaP1Input::SpawnResult(int step, double time){ 122 122 … … 127 127 128 128 /*Object functions*/ 129 /*FUNCTION PentaP1Input::GetInputValue(double* pvalue,GaussPenta* gauss){{{ 1*/129 /*FUNCTION PentaP1Input::GetInputValue(double* pvalue,GaussPenta* gauss){{{*/ 130 130 void PentaP1Input::GetInputValue(double* pvalue,GaussPenta* gauss){ 131 131 … … 135 135 } 136 136 /*}}}*/ 137 /*FUNCTION PentaP1Input::GetInputDerivativeValue(double* p, double* xyz_list, GaussPenta* gauss){{{ 1*/137 /*FUNCTION PentaP1Input::GetInputDerivativeValue(double* p, double* xyz_list, GaussPenta* gauss){{{*/ 138 138 void PentaP1Input::GetInputDerivativeValue(double* p, double* xyz_list, GaussPenta* gauss){ 139 139 … … 142 142 } 143 143 /*}}}*/ 144 /*FUNCTION PentaP1Input::GetVxStrainRate3d{{{ 1*/144 /*FUNCTION PentaP1Input::GetVxStrainRate3d{{{*/ 145 145 void PentaP1Input::GetVxStrainRate3d(double* epsilonvx,double* xyz_list, GaussPenta* gauss){ 146 146 int i,j; … … 187 187 } 188 188 /*}}}*/ 189 /*FUNCTION PentaP1Input::GetVyStrainRate3d{{{ 1*/189 /*FUNCTION PentaP1Input::GetVyStrainRate3d{{{*/ 190 190 void PentaP1Input::GetVyStrainRate3d(double* epsilonvy,double* xyz_list, GaussPenta* gauss){ 191 191 int i,j; … … 232 232 } 233 233 /*}}}*/ 234 /*FUNCTION PentaP1Input::GetVzStrainRate3d{{{ 1*/234 /*FUNCTION PentaP1Input::GetVzStrainRate3d{{{*/ 235 235 void PentaP1Input::GetVzStrainRate3d(double* epsilonvz,double* xyz_list, GaussPenta* gauss){ 236 236 int i,j; … … 278 278 } 279 279 /*}}}*/ 280 /*FUNCTION PentaP1Input::GetVxStrainRate3dPattyn{{{ 1*/280 /*FUNCTION PentaP1Input::GetVxStrainRate3dPattyn{{{*/ 281 281 void PentaP1Input::GetVxStrainRate3dPattyn(double* epsilonvx,double* xyz_list, GaussPenta* gauss){ 282 282 … … 302 302 } 303 303 /*}}}*/ 304 /*FUNCTION PentaP1Input::GetVyStrainRate3dPattyn{{{ 1*/304 /*FUNCTION PentaP1Input::GetVyStrainRate3dPattyn{{{*/ 305 305 void PentaP1Input::GetVyStrainRate3dPattyn(double* epsilonvy,double* xyz_list, GaussPenta* gauss){ 306 306 … … 326 326 } 327 327 /*}}}*/ 328 /*FUNCTION PentaP1Input::ChangeEnum{{{ 1*/328 /*FUNCTION PentaP1Input::ChangeEnum{{{*/ 329 329 void PentaP1Input::ChangeEnum(int newenumtype){ 330 330 this->enum_type=newenumtype; 331 331 } 332 332 /*}}}*/ 333 /*FUNCTION PentaP1Input::GetInputAverage{{{ 1*/333 /*FUNCTION PentaP1Input::GetInputAverage{{{*/ 334 334 void PentaP1Input::GetInputAverage(double* pvalue){ 335 335 *pvalue=1./6.*(values[0]+values[1]+values[2]+values[3]+values[4]+values[5]); … … 338 338 339 339 /*Intermediary*/ 340 /*FUNCTION PentaP1Input::SquareMin{{{ 1*/340 /*FUNCTION PentaP1Input::SquareMin{{{*/ 341 341 void PentaP1Input::SquareMin(double* psquaremin, bool process_units,Parameters* parameters){ 342 342 … … 361 361 } 362 362 /*}}}*/ 363 /*FUNCTION PentaP1Input::ConstrainMin{{{ 1*/363 /*FUNCTION PentaP1Input::ConstrainMin{{{*/ 364 364 void PentaP1Input::ConstrainMin(double minimum){ 365 365 … … 370 370 } 371 371 /*}}}*/ 372 /*FUNCTION PentaP1Input::InfinityNorm{{{ 1*/372 /*FUNCTION PentaP1Input::InfinityNorm{{{*/ 373 373 double PentaP1Input::InfinityNorm(void){ 374 374 … … 381 381 } 382 382 /*}}}*/ 383 /*FUNCTION PentaP1Input::Max{{{ 1*/383 /*FUNCTION PentaP1Input::Max{{{*/ 384 384 double PentaP1Input::Max(void){ 385 385 … … 393 393 } 394 394 /*}}}*/ 395 /*FUNCTION PentaP1Input::MaxAbs{{{ 1*/395 /*FUNCTION PentaP1Input::MaxAbs{{{*/ 396 396 double PentaP1Input::MaxAbs(void){ 397 397 … … 405 405 } 406 406 /*}}}*/ 407 /*FUNCTION PentaP1Input::Min{{{ 1*/407 /*FUNCTION PentaP1Input::Min{{{*/ 408 408 double PentaP1Input::Min(void){ 409 409 … … 417 417 } 418 418 /*}}}*/ 419 /*FUNCTION PentaP1Input::MinAbs{{{ 1*/419 /*FUNCTION PentaP1Input::MinAbs{{{*/ 420 420 double PentaP1Input::MinAbs(void){ 421 421 … … 429 429 } 430 430 /*}}}*/ 431 /*FUNCTION PentaP1Input::Scale{{{ 1*/431 /*FUNCTION PentaP1Input::Scale{{{*/ 432 432 void PentaP1Input::Scale(double scale_factor){ 433 433 … … 438 438 } 439 439 /*}}}*/ 440 /*FUNCTION PentaP1Input::AXPY{{{ 1*/440 /*FUNCTION PentaP1Input::AXPY{{{*/ 441 441 void PentaP1Input::AXPY(Input* xinput,double scalar){ 442 442 … … 465 465 } 466 466 /*}}}*/ 467 /*FUNCTION PentaP1Input::Constrain{{{ 1*/467 /*FUNCTION PentaP1Input::Constrain{{{*/ 468 468 void PentaP1Input::Constrain(double cm_min, double cm_max){ 469 469 … … 476 476 } 477 477 /*}}}*/ 478 /*FUNCTION PentaP1Input::Extrude{{{ 1*/478 /*FUNCTION PentaP1Input::Extrude{{{*/ 479 479 void PentaP1Input::Extrude(void){ 480 480 … … 485 485 } 486 486 /*}}}*/ 487 /*FUNCTION PentaP1Input::VerticallyIntegrate{{{ 1*/487 /*FUNCTION PentaP1Input::VerticallyIntegrate{{{*/ 488 488 void PentaP1Input::VerticallyIntegrate(Input* thickness_input){ 489 489 … … 515 515 } 516 516 /*}}}*/ 517 /*FUNCTION PentaP1Input::PointwiseDivide{{{ 1*/517 /*FUNCTION PentaP1Input::PointwiseDivide{{{*/ 518 518 Input* PentaP1Input::PointwiseDivide(Input* inputB){ 519 519 … … 546 546 } 547 547 /*}}}*/ 548 /*FUNCTION PentaP1Input::PointwiseMin{{{ 1*/548 /*FUNCTION PentaP1Input::PointwiseMin{{{*/ 549 549 Input* PentaP1Input::PointwiseMin(Input* inputB){ 550 550 … … 577 577 } 578 578 /*}}}*/ 579 /*FUNCTION PentaP1Input::PointwiseMax{{{ 1*/579 /*FUNCTION PentaP1Input::PointwiseMax{{{*/ 580 580 Input* PentaP1Input::PointwiseMax(Input* inputB){ 581 581 … … 608 608 } 609 609 /*}}}*/ 610 /*FUNCTION PentaP1Input::GetVectorFromInputs{{{ 1*/610 /*FUNCTION PentaP1Input::GetVectorFromInputs{{{*/ 611 611 void PentaP1Input::GetVectorFromInputs(Vector* vector,int* doflist){ 612 612 … … 615 615 616 616 } /*}}}*/ 617 /*FUNCTION PentaP1Input::GetValuesPtr{{{ 1*/617 /*FUNCTION PentaP1Input::GetValuesPtr{{{*/ 618 618 void PentaP1Input::GetValuesPtr(double** pvalues,int* pnum_values){ 619 619 … … 623 623 } 624 624 /*}}}*/ 625 /*FUNCTION PentaP1Input::Configure{{{ 1*/625 /*FUNCTION PentaP1Input::Configure{{{*/ 626 626 void PentaP1Input::Configure(Parameters* parameters){ 627 627 /*do nothing: */ -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/PentaP1Input.h ¶
r12326 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #include "./Input.h" 12 12 #include "../Elements/PentaRef.h" … … 21 21 double values[6]; 22 22 23 /*PentaP1Input constructors, destructors: {{{ 1*/23 /*PentaP1Input constructors, destructors: {{{*/ 24 24 PentaP1Input(); 25 25 PentaP1Input(int enum_type,double* values); 26 26 ~PentaP1Input(); 27 27 /*}}}*/ 28 /*Object virtual functions definitions:{{{ 1*/28 /*Object virtual functions definitions:{{{ */ 29 29 void Echo(); 30 30 void DeepEcho(); … … 34 34 Object* copy(); 35 35 /*}}}*/ 36 /*PentaP1Input management: {{{ 1*/36 /*PentaP1Input management: {{{*/ 37 37 int InstanceEnum(); 38 38 Input* SpawnTriaInput(int* indices); … … 44 44 void Configure(Parameters* parameters); 45 45 /*}}}*/ 46 /*numerics: {{{ 1*/46 /*numerics: {{{*/ 47 47 void GetInputValue(bool* pvalue){_error_("not implemented yet");}; 48 48 void GetInputValue(int* pvalue){_error_("not implemented yet");}; -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/TransientInput.h ¶
r12326 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #include "./Input.h" 12 12 class GaussTria; … … 23 23 Parameters* parameters; //to find current time. 24 24 25 /*TransientInput constructors, destructors: {{{ 1*/25 /*TransientInput constructors, destructors: {{{*/ 26 26 TransientInput(); 27 27 TransientInput(int enum_type); … … 29 29 void AddTimeInput(Input* input,double time); 30 30 /*}}}*/ 31 /*Object virtual functions definitions:{{{ 1*/31 /*Object virtual functions definitions:{{{*/ 32 32 void Echo(); 33 33 void DeepEcho(); … … 37 37 Object* copy(); 38 38 /*}}}*/ 39 /*TransientInput management: {{{ 1*/39 /*TransientInput management: {{{*/ 40 40 int InstanceEnum(); 41 41 Input* SpawnTriaInput(int* indices); … … 46 46 void Configure(Parameters* parameters); 47 47 /*}}}*/ 48 /*numerics: {{{ 1*/48 /*numerics: {{{*/ 49 49 void GetInputValue(bool* pvalue){_error_("not implemented yet");}; 50 50 void GetInputValue(int* pvalue){_error_("not implemented yet");}; -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/TriaP1Input.cpp ¶
r12014 r12365 18 18 19 19 /*TriaP1Input constructors and destructor*/ 20 /*FUNCTION TriaP1Input::TriaP1Input(){{{ 1*/20 /*FUNCTION TriaP1Input::TriaP1Input(){{{*/ 21 21 TriaP1Input::TriaP1Input(){ 22 22 return; 23 23 } 24 24 /*}}}*/ 25 /*FUNCTION TriaP1Input::TriaP1Input(int in_enum_type,double* values){{{ 1*/25 /*FUNCTION TriaP1Input::TriaP1Input(int in_enum_type,double* values){{{*/ 26 26 TriaP1Input::TriaP1Input(int in_enum_type,double* in_values) 27 27 :TriaRef(1) … … 41 41 } 42 42 /*}}}*/ 43 /*FUNCTION TriaP1Input::~TriaP1Input(){{{ 1*/43 /*FUNCTION TriaP1Input::~TriaP1Input(){{{*/ 44 44 TriaP1Input::~TriaP1Input(){ 45 45 return; … … 48 48 49 49 /*Object virtual functions definitions:*/ 50 /*FUNCTION TriaP1Input::Echo {{{ 1*/50 /*FUNCTION TriaP1Input::Echo {{{*/ 51 51 void TriaP1Input::Echo(void){ 52 52 this->DeepEcho(); 53 53 } 54 54 /*}}}*/ 55 /*FUNCTION TriaP1Input::DeepEcho{{{ 1*/55 /*FUNCTION TriaP1Input::DeepEcho{{{*/ 56 56 void TriaP1Input::DeepEcho(void){ 57 57 … … 61 61 } 62 62 /*}}}*/ 63 /*FUNCTION TriaP1Input::Id{{{ 1*/63 /*FUNCTION TriaP1Input::Id{{{*/ 64 64 int TriaP1Input::Id(void){ return -1; } 65 65 /*}}}*/ 66 /*FUNCTION TriaP1Input::MyRank{{{ 1*/66 /*FUNCTION TriaP1Input::MyRank{{{*/ 67 67 int TriaP1Input::MyRank(void){ 68 68 extern int my_rank; … … 70 70 } 71 71 /*}}}*/ 72 /*FUNCTION TriaP1Input::ObjectEnum{{{ 1*/72 /*FUNCTION TriaP1Input::ObjectEnum{{{*/ 73 73 int TriaP1Input::ObjectEnum(void){ 74 74 … … 77 77 } 78 78 /*}}}*/ 79 /*FUNCTION TriaP1Input::copy{{{ 1*/79 /*FUNCTION TriaP1Input::copy{{{*/ 80 80 Object* TriaP1Input::copy() { 81 81 … … 86 86 87 87 /*TriaP1Input management*/ 88 /*FUNCTION TriaP1Input::InstanceEnum{{{ 1*/88 /*FUNCTION TriaP1Input::InstanceEnum{{{*/ 89 89 int TriaP1Input::InstanceEnum(void){ 90 90 … … 93 93 } 94 94 /*}}}*/ 95 /*FUNCTION TriaP1Input::SpawnTriaInput{{{ 1*/95 /*FUNCTION TriaP1Input::SpawnTriaInput{{{*/ 96 96 Input* TriaP1Input::SpawnTriaInput(int* indices){ 97 97 … … 107 107 } 108 108 /*}}}*/ 109 /*FUNCTION TriaP1Input::SpawnResult{{{ 1*/109 /*FUNCTION TriaP1Input::SpawnResult{{{*/ 110 110 ElementResult* TriaP1Input::SpawnResult(int step, double time){ 111 111 … … 116 116 117 117 /*Object functions*/ 118 /*FUNCTION TriaP1Input::GetInputValue(double* pvalue,GaussTria* gauss){{{ 1*/118 /*FUNCTION TriaP1Input::GetInputValue(double* pvalue,GaussTria* gauss){{{*/ 119 119 void TriaP1Input::GetInputValue(double* pvalue,GaussTria* gauss){ 120 120 … … 124 124 } 125 125 /*}}}*/ 126 /*FUNCTION TriaP1Input::GetInputDerivativeValue(double* p, double* xyz_list, GaussTria* gauss){{{ 1*/126 /*FUNCTION TriaP1Input::GetInputDerivativeValue(double* p, double* xyz_list, GaussTria* gauss){{{*/ 127 127 void TriaP1Input::GetInputDerivativeValue(double* p, double* xyz_list, GaussTria* gauss){ 128 128 … … 131 131 } 132 132 /*}}}*/ 133 /*FUNCTION TriaP1Input::GetVxStrainRate2d{{{ 1*/133 /*FUNCTION TriaP1Input::GetVxStrainRate2d{{{*/ 134 134 void TriaP1Input::GetVxStrainRate2d(double* epsilonvx,double* xyz_list, GaussTria* gauss){ 135 135 … … 154 154 } 155 155 /*}}}*/ 156 /*FUNCTION TriaP1Input::GetVyStrainRate2d{{{ 1*/156 /*FUNCTION TriaP1Input::GetVyStrainRate2d{{{*/ 157 157 void TriaP1Input::GetVyStrainRate2d(double* epsilonvy,double* xyz_list, GaussTria* gauss){ 158 158 … … 177 177 } 178 178 /*}}}*/ 179 /*FUNCTION TriaP1Input::ChangeEnum{{{ 1*/179 /*FUNCTION TriaP1Input::ChangeEnum{{{*/ 180 180 void TriaP1Input::ChangeEnum(int newenumtype){ 181 181 this->enum_type=newenumtype; 182 182 } 183 183 /*}}}*/ 184 /*FUNCTION TriaP1Input::GetInputAverage{{{ 1*/184 /*FUNCTION TriaP1Input::GetInputAverage{{{*/ 185 185 void TriaP1Input::GetInputAverage(double* pvalue){ 186 186 *pvalue=1./3.*(values[0]+values[1]+values[2]); … … 189 189 190 190 /*Intermediary*/ 191 /*FUNCTION TriaP1Input::SquareMin{{{ 1*/191 /*FUNCTION TriaP1Input::SquareMin{{{*/ 192 192 void TriaP1Input::SquareMin(double* psquaremin, bool process_units,Parameters* parameters){ 193 193 … … 212 212 } 213 213 /*}}}*/ 214 /*FUNCTION TriaP1Input::ContrainMin{{{ 1*/214 /*FUNCTION TriaP1Input::ContrainMin{{{*/ 215 215 void TriaP1Input::ConstrainMin(double minimum){ 216 216 … … 221 221 } 222 222 /*}}}*/ 223 /*FUNCTION TriaP1Input::InfinityNorm{{{ 1*/223 /*FUNCTION TriaP1Input::InfinityNorm{{{*/ 224 224 double TriaP1Input::InfinityNorm(void){ 225 225 … … 232 232 } 233 233 /*}}}*/ 234 /*FUNCTION TriaP1Input::Max{{{ 1*/234 /*FUNCTION TriaP1Input::Max{{{*/ 235 235 double TriaP1Input::Max(void){ 236 236 … … 244 244 } 245 245 /*}}}*/ 246 /*FUNCTION TriaP1Input::MaxAbs{{{ 1*/246 /*FUNCTION TriaP1Input::MaxAbs{{{*/ 247 247 double TriaP1Input::MaxAbs(void){ 248 248 … … 256 256 } 257 257 /*}}}*/ 258 /*FUNCTION TriaP1Input::Min{{{ 1*/258 /*FUNCTION TriaP1Input::Min{{{*/ 259 259 double TriaP1Input::Min(void){ 260 260 … … 268 268 } 269 269 /*}}}*/ 270 /*FUNCTION TriaP1Input::MinAbs{{{ 1*/270 /*FUNCTION TriaP1Input::MinAbs{{{*/ 271 271 double TriaP1Input::MinAbs(void){ 272 272 … … 280 280 } 281 281 /*}}}*/ 282 /*FUNCTION TriaP1Input::Scale{{{ 1*/282 /*FUNCTION TriaP1Input::Scale{{{*/ 283 283 void TriaP1Input::Scale(double scale_factor){ 284 284 … … 289 289 } 290 290 /*}}}*/ 291 /*FUNCTION TriaP1Input::ArtificialNoise{{{ 1*/291 /*FUNCTION TriaP1Input::ArtificialNoise{{{*/ 292 292 void TriaP1Input::ArtificialNoise(double min,double max){ 293 293 … … 305 305 } 306 306 /*}}}*/ 307 /*FUNCTION TriaP1Input::AXPY{{{ 1*/307 /*FUNCTION TriaP1Input::AXPY{{{*/ 308 308 void TriaP1Input::AXPY(Input* xinput,double scalar){ 309 309 … … 328 328 } 329 329 /*}}}*/ 330 /*FUNCTION TriaP1Input::Constrain{{{ 1*/330 /*FUNCTION TriaP1Input::Constrain{{{*/ 331 331 void TriaP1Input::Constrain(double cm_min, double cm_max){ 332 332 … … 339 339 } 340 340 /*}}}*/ 341 /*FUNCTION TriaP1Input::GetVectorFromInputs{{{ 1*/341 /*FUNCTION TriaP1Input::GetVectorFromInputs{{{*/ 342 342 void TriaP1Input::GetVectorFromInputs(Vector* vector,int* doflist){ 343 343 … … 346 346 347 347 } /*}}}*/ 348 /*FUNCTION TriaP1Input::GetValuesPtr{{{ 1*/348 /*FUNCTION TriaP1Input::GetValuesPtr{{{*/ 349 349 void TriaP1Input::GetValuesPtr(double** pvalues,int* pnum_values){ 350 350 … … 354 354 } 355 355 /*}}}*/ 356 /*FUNCTION TriaP1Input::PointwiseMin{{{ 1*/356 /*FUNCTION TriaP1Input::PointwiseMin{{{*/ 357 357 Input* TriaP1Input::PointwiseMin(Input* inputB){ 358 358 … … 385 385 } 386 386 /*}}}*/ 387 /*FUNCTION TriaP1Input::PointwiseMax{{{ 1*/387 /*FUNCTION TriaP1Input::PointwiseMax{{{*/ 388 388 Input* TriaP1Input::PointwiseMax(Input* inputB){ 389 389 … … 416 416 } 417 417 /*}}}*/ 418 /*FUNCTION TriaP1Input::Configure{{{ 1*/418 /*FUNCTION TriaP1Input::Configure{{{*/ 419 419 void TriaP1Input::Configure(Parameters* parameters){ 420 420 /*do nothing: */ -
TabularUnified issm/trunk-jpl/src/c/objects/Inputs/TriaP1Input.h ¶
r12326 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #include "./Input.h" 12 12 #include "../Elements/TriaRef.h" … … 21 21 double values[3]; 22 22 23 /*TriaP1Input constructors, destructors: {{{ 1*/23 /*TriaP1Input constructors, destructors: {{{*/ 24 24 TriaP1Input(); 25 25 TriaP1Input(int enum_type,double* values); 26 26 ~TriaP1Input(); 27 27 /*}}}*/ 28 /*Object virtual functions definitions:{{{ 1*/28 /*Object virtual functions definitions:{{{ */ 29 29 void Echo(); 30 30 void DeepEcho(); … … 34 34 Object* copy(); 35 35 /*}}}*/ 36 /*TriaP1Input management: {{{ 1*/36 /*TriaP1Input management: {{{*/ 37 37 int InstanceEnum(); 38 38 Input* SpawnTriaInput(int* indices); … … 44 44 void Configure(Parameters* parameters); 45 45 /*}}}*/ 46 /*numerics: {{{ 1*/46 /*numerics: {{{*/ 47 47 void GetInputValue(bool* pvalue){_error_("not implemented yet");} 48 48 void GetInputValue(int* pvalue){_error_("not implemented yet");} -
TabularUnified issm/trunk-jpl/src/c/objects/IoModel.cpp ¶
r12306 r12365 22 22 #include "../include/include.h" 23 23 24 /*FUNCTION IoModel::IoModel(){{{ 1*/24 /*FUNCTION IoModel::IoModel(){{{*/ 25 25 IoModel::IoModel(){ 26 26 this->fid=NULL; … … 39 39 } 40 40 /*}}}*/ 41 /*FUNCTION IoModel::IoModel(FILE* iomodel_handle){{{ 1*/41 /*FUNCTION IoModel::IoModel(FILE* iomodel_handle){{{*/ 42 42 IoModel::IoModel(FILE* iomodel_handle){ 43 43 … … 68 68 } 69 69 /*}}}*/ 70 /*FUNCTION IoModel::~IoModel(){{{ 1*/70 /*FUNCTION IoModel::~IoModel(){{{*/ 71 71 IoModel::~IoModel(){ 72 72 … … 92 92 /*}}}*/ 93 93 94 /*FUNCTION IoModel::CheckEnumSync{{{ 1*/94 /*FUNCTION IoModel::CheckEnumSync{{{*/ 95 95 void IoModel::CheckEnumSync(void){ 96 96 … … 135 135 } 136 136 /*}}}*/ 137 /*FUNCTION IoModel::Constant(bool* poutput,int constant_enum){{{ 1*/137 /*FUNCTION IoModel::Constant(bool* poutput,int constant_enum){{{*/ 138 138 void IoModel::Constant(bool* poutput,int constant_enum){ 139 139 … … 144 144 } 145 145 /*}}}*/ 146 /*FUNCTION IoModel::Constant(int* poutput,int constant_enum){{{ 1*/146 /*FUNCTION IoModel::Constant(int* poutput,int constant_enum){{{*/ 147 147 void IoModel::Constant(int* poutput,int constant_enum){ 148 148 … … 153 153 } 154 154 /*}}}*/ 155 /*FUNCTION IoModel::Constant(double* poutput,int constant_enum){{{ 1*/155 /*FUNCTION IoModel::Constant(double* poutput,int constant_enum){{{*/ 156 156 void IoModel::Constant(double* poutput,int constant_enum){ 157 157 … … 162 162 } 163 163 /*}}}*/ 164 /*FUNCTION IoModel::Constant(char** poutput,int constant_enum){{{ 1*/164 /*FUNCTION IoModel::Constant(char** poutput,int constant_enum){{{*/ 165 165 void IoModel::Constant(char** poutput,int constant_enum){ 166 166 … … 171 171 } 172 172 /*}}}*/ 173 /*FUNCTION IoModel::CopyConstantObject{{{ 1*/173 /*FUNCTION IoModel::CopyConstantObject{{{*/ 174 174 Param* IoModel::CopyConstantObject(int constant_enum){ 175 175 … … 183 183 } 184 184 /*}}}*/ 185 /*FUNCTION IoModel::Data{{{ 1*/185 /*FUNCTION IoModel::Data{{{*/ 186 186 double* IoModel::Data(int data_enum){ 187 187 … … 192 192 } 193 193 /*}}}*/ 194 /*FUNCTION IoModel::DeleteData{{{ 1*/194 /*FUNCTION IoModel::DeleteData{{{*/ 195 195 void IoModel::DeleteData(int num,...){ 196 196 … … 210 210 va_end(ap); 211 211 } /*}}}*/ 212 /*FUNCTION IoModel::FetchConstants{{{ 1*/212 /*FUNCTION IoModel::FetchConstants{{{*/ 213 213 void IoModel::FetchConstants(void){ 214 214 … … 233 233 234 234 /*Go find in the binary file, the position of the data we want to fetch: */ 235 if(my_rank==0){ //cpu 0{{{ 2235 if(my_rank==0){ //cpu 0{{{ 236 236 237 237 /*First set FILE* position to the beginning of the file: */ … … 368 368 } //}}} 369 369 #ifdef _HAVE_MPI_ 370 else{ //cpu ~0 {{{ 2370 else{ //cpu ~0 {{{ 371 371 for(;;){ //wait on cpu 0 372 372 MPI_Bcast(&record_code,1,MPI_INT,0,MPI_COMM_WORLD); /*get from cpu 0 what we are going to do: */ … … 440 440 } 441 441 /*}}}*/ 442 /*FUNCTION IoModel::FetchData(bool* pbool,int data_enum){{{ 1*/442 /*FUNCTION IoModel::FetchData(bool* pbool,int data_enum){{{*/ 443 443 void IoModel::FetchData(bool* pboolean,int data_enum){ 444 444 … … 470 470 } 471 471 /*}}}*/ 472 /*FUNCTION IoModel::FetchData(int* pinteger,int data_enum){{{ 1*/472 /*FUNCTION IoModel::FetchData(int* pinteger,int data_enum){{{*/ 473 473 void IoModel::FetchData(int* pinteger,int data_enum){ 474 474 … … 500 500 } 501 501 /*}}}*/ 502 /*FUNCTION IoModel::FetchData(double* pscalar,int data_enum){{{ 1*/502 /*FUNCTION IoModel::FetchData(double* pscalar,int data_enum){{{*/ 503 503 void IoModel::FetchData(double* pscalar,int data_enum){ 504 504 … … 530 530 } 531 531 /*}}}*/ 532 /*FUNCTION IoModel::FetchData(char** pstring,int data_enum){{{ 1*/532 /*FUNCTION IoModel::FetchData(char** pstring,int data_enum){{{*/ 533 533 void IoModel::FetchData(char** pstring,int data_enum){ 534 534 … … 581 581 } 582 582 /*}}}*/ 583 /*FUNCTION IoModel::FetchData(int** pintegerematrix,int* pM,int* pN,int data_enum){{{ 1*/583 /*FUNCTION IoModel::FetchData(int** pintegerematrix,int* pM,int* pN,int data_enum){{{*/ 584 584 void IoModel::FetchData(int** pmatrix,int* pM,int* pN,int data_enum){ 585 585 … … 656 656 } 657 657 /*}}}*/ 658 /*FUNCTION IoModel::FetchData(double** pdoublematrix,int* pM,int* pN,int data_enum){{{ 1*/658 /*FUNCTION IoModel::FetchData(double** pdoublematrix,int* pM,int* pN,int data_enum){{{*/ 659 659 void IoModel::FetchData(double** pmatrix,int* pM,int* pN,int data_enum){ 660 660 … … 709 709 } 710 710 /*}}}*/ 711 /*FUNCTION IoModel::FetchData(char*** pstrings,int* pnumstrings,int data_enum){{{ 1*/711 /*FUNCTION IoModel::FetchData(char*** pstrings,int* pnumstrings,int data_enum){{{*/ 712 712 void IoModel::FetchData(char*** pstrings,int* pnumstrings,int data_enum){ 713 713 … … 779 779 } 780 780 /*}}}*/ 781 /*FUNCTION IoModel::FetchData(double*** pmatrices,int** pmdims,int** pndims, int* pM,int data_enum){{{ 1*/781 /*FUNCTION IoModel::FetchData(double*** pmatrices,int** pmdims,int** pndims, int* pM,int data_enum){{{*/ 782 782 void IoModel::FetchData(double*** pmatrices,int** pmdims,int** pndims, int* pnumrecords,int data_enum){ 783 783 … … 868 868 } 869 869 /*}}}*/ 870 /*FUNCTION IoModel::FetchData(int num,...){{{ 1*/870 /*FUNCTION IoModel::FetchData(int num,...){{{*/ 871 871 void IoModel::FetchData(int num,...){ 872 872 … … 903 903 } 904 904 /*}}}*/ 905 /*FUNCTION IoModel::FetchDataToInput{{{ 1*/905 /*FUNCTION IoModel::FetchDataToInput{{{*/ 906 906 void IoModel::FetchDataToInput(Elements* elements,int vector_enum,int default_vector_enum,double default_value){ 907 907 … … 935 935 936 936 switch(code){ 937 case 1: //boolean constant. {{{ 2937 case 1: //boolean constant. {{{ 938 938 this->FetchData(&boolean,vector_enum); 939 939 … … 948 948 } 949 949 break; /*}}}*/ 950 case 2: //integer constant. {{{ 2950 case 2: //integer constant. {{{ 951 951 this->FetchData(&integer,vector_enum); 952 952 … … 961 961 } 962 962 break; /*}}}*/ 963 case 3: //double constant. {{{ 2963 case 3: //double constant. {{{ 964 964 this->FetchData(&scalar,vector_enum); 965 965 … … 974 974 } 975 975 break; /*}}}*/ 976 case 5: //boolean vector. {{{ 2976 case 5: //boolean vector. {{{ 977 977 978 978 /*Fetch vector:*/ … … 1012 1012 } 1013 1013 break; /*}}}*/ 1014 case 6: //int vector . {{{21014 case 6: //int vector{{{ 1015 1015 1016 1016 /*Fetch vector:*/ … … 1050 1050 } 1051 1051 break; /*}}}*/ 1052 case 7: //double vector . {{{21052 case 7: //double vector{{{ 1053 1053 1054 1054 /*Fetch vector:*/ … … 1089 1089 1090 1090 break; /*}}}*/ 1091 default: /*{{{ 2*/1091 default: /*{{{*/ 1092 1092 _error_("%s%i%s","data code ",code," not supported yet!"); 1093 1093 break; … … 1098 1098 xfree((void**)&string); 1099 1099 } 1100 /*FUNCTION IoModel::SetFilePointerToData{{{ 1*/1100 /*FUNCTION IoModel::SetFilePointerToData{{{*/ 1101 1101 FILE* IoModel::SetFilePointerToData(int* pcode,int* pvector_type, int data_enum){ 1102 1102 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KMLFileReadUtils.cpp ¶
r11319 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 20 20 /*}}}*/ 21 21 22 /*FUNCTION KMLFileToken(FILE* fid,int* pncom=NULL,char*** ppcom=NULL) {{{ 1*/22 /*FUNCTION KMLFileToken(FILE* fid,int* pncom=NULL,char*** ppcom=NULL) {{{*/ 23 23 char* KMLFileToken(FILE* fid, 24 24 int* pncom=NULL,char*** ppcom=NULL){ … … 139 139 /*}}}*/ 140 140 141 /*FUNCTION KMLFileTokenComment(FILE* fid) {{{ 1*/141 /*FUNCTION KMLFileTokenComment(FILE* fid) {{{*/ 142 142 char* KMLFileTokenComment(FILE* fid){ 143 143 … … 204 204 /*}}}*/ 205 205 206 /*FUNCTION KMLFileTokenBuffer {{{ 1*/206 /*FUNCTION KMLFileTokenBuffer {{{*/ 207 207 void KMLFileTokenBuffer(char** pbuffer,int* pibuf,int* pbuflen, 208 208 int c, … … 229 229 /*}}}*/ 230 230 231 /*FUNCTION KMLFileTagName {{{ 1*/231 /*FUNCTION KMLFileTagName {{{*/ 232 232 char* KMLFileTagName(char* pname, 233 233 char* ktag){ … … 238 238 /*}}}*/ 239 239 240 /*FUNCTION KMLFileTagName {{{ 1*/240 /*FUNCTION KMLFileTagName {{{*/ 241 241 char* KMLFileTagName(char* pname,int *m,int maxlen, 242 242 char* ktag){ … … 284 284 /*}}}*/ 285 285 286 /*FUNCTION KMLFileTagAttrib {{{ 1*/286 /*FUNCTION KMLFileTagAttrib {{{*/ 287 287 int KMLFileTagAttrib(KML_Object* kobj, 288 288 char* ktag){ … … 334 334 /*}}}*/ 335 335 336 /*FUNCTION KMLFileTokenParse {{{ 1*/336 /*FUNCTION KMLFileTokenParse {{{*/ 337 337 int KMLFileTokenParse(int* pival, 338 338 char* ktag, … … 369 369 /*}}}*/ 370 370 371 /*FUNCTION KMLFileTokenParse {{{ 1*/371 /*FUNCTION KMLFileTokenParse {{{*/ 372 372 int KMLFileTokenParse(bool* pbval, 373 373 char* ktag, … … 406 406 /*}}}*/ 407 407 408 /*FUNCTION KMLFileTokenParse {{{ 1*/408 /*FUNCTION KMLFileTokenParse {{{*/ 409 409 char* KMLFileTokenParse(char* pstr, 410 410 char* ktag, … … 417 417 /*}}}*/ 418 418 419 /*FUNCTION KMLFileTokenParse {{{ 1*/419 /*FUNCTION KMLFileTokenParse {{{*/ 420 420 char* KMLFileTokenParse(char* pstr,int *m,int maxlen, 421 421 char* ktag, … … 469 469 /*}}}*/ 470 470 471 /*FUNCTION KMLFileTokenParse {{{ 1*/471 /*FUNCTION KMLFileTokenParse {{{*/ 472 472 int KMLFileTokenParse(float* pfval, 473 473 char* ktag, … … 504 504 /*}}}*/ 505 505 506 /*FUNCTION KMLFileTokenParse {{{ 1*/506 /*FUNCTION KMLFileTokenParse {{{*/ 507 507 int KMLFileTokenParse(double* pdval, 508 508 char* ktag, … … 539 539 /*}}}*/ 540 540 541 /*FUNCTION KMLFileTokenParse {{{ 1*/541 /*FUNCTION KMLFileTokenParse {{{*/ 542 542 int KMLFileTokenParse(double **pdval,int* m,int maxlen, 543 543 char* ktag, … … 600 600 /*}}}*/ 601 601 602 /*FUNCTION KMLFileTokenParse {{{ 1*/602 /*FUNCTION KMLFileTokenParse {{{*/ 603 603 int KMLFileTokenParse(double (**pdval3)[3],int* m,int maxlen, 604 604 char* ktag, … … 668 668 /*}}}*/ 669 669 670 /*FUNCTION KMLFileTagSkip {{{ 1*/670 /*FUNCTION KMLFileTagSkip {{{*/ 671 671 int KMLFileTagSkip(char* ktag, 672 672 FILE* fid){ -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KMLFileReadUtils.h ¶
r11319 r12365 6 6 #define _KMLFILEREADUTILS_H 7 7 8 /*Headers:{{{ 1*/8 /*Headers:{{{*/ 9 9 #include "../../include/include.h" 10 10 #include "../../shared/Exceptions/exceptions.h" -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Attribute.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_Attribute::KML_Attribute(){{{ 1*/23 /*FUNCTION KML_Attribute::KML_Attribute(){{{*/ 24 24 KML_Attribute::KML_Attribute(){ 25 25 … … 29 29 } 30 30 /*}}}*/ 31 /*FUNCTION KML_Attribute::~KML_Attribute(){{{ 1*/31 /*FUNCTION KML_Attribute::~KML_Attribute(){{{*/ 32 32 KML_Attribute::~KML_Attribute(){ 33 33 … … 39 39 40 40 /*Other*/ 41 /*FUNCTION KML_Attribute::Echo {{{ 1*/41 /*FUNCTION KML_Attribute::Echo {{{*/ 42 42 void KML_Attribute::Echo(){ 43 43 … … 53 53 } 54 54 /*}}}*/ 55 /*FUNCTION KML_Attribute::DeepEcho {{{ 1*/55 /*FUNCTION KML_Attribute::DeepEcho {{{*/ 56 56 void KML_Attribute::DeepEcho(){ 57 57 … … 63 63 } 64 64 /*}}}*/ 65 /*FUNCTION KML_Attribute::DeepEcho {{{ 1*/65 /*FUNCTION KML_Attribute::DeepEcho {{{*/ 66 66 void KML_Attribute::DeepEcho(const char* indent){ 67 67 … … 77 77 } 78 78 /*}}}*/ 79 /*FUNCTION KML_Attribute::Write {{{ 1*/79 /*FUNCTION KML_Attribute::Write {{{*/ 80 80 void KML_Attribute::Write(FILE* filout,const char* indent){ 81 81 … … 87 87 } 88 88 /*}}}*/ 89 /*FUNCTION KML_Attribute::Read {{{ 1*/89 /*FUNCTION KML_Attribute::Read {{{*/ 90 90 void KML_Attribute::Read(FILE* fid,char* kstr){ 91 91 … … 97 97 } 98 98 /*}}}*/ 99 /*FUNCTION KML_Attribute::Alloc {{{ 1*/99 /*FUNCTION KML_Attribute::Alloc {{{*/ 100 100 void KML_Attribute::Alloc(const char* namei,const char* valuei){ 101 101 … … 109 109 } 110 110 /*}}}*/ 111 /*FUNCTION KML_Attribute::Add {{{ 1*/111 /*FUNCTION KML_Attribute::Add {{{*/ 112 112 void KML_Attribute::Add(DataSet* attrib){ 113 113 … … 117 117 } 118 118 /*}}}*/ 119 /*FUNCTION KML_Attribute::Get {{{ 1*/119 /*FUNCTION KML_Attribute::Get {{{*/ 120 120 void KML_Attribute::Get(char** pvalueo,char* deflt){ 121 121 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Attribute.h ¶
r11202 r12365 6 6 #define _KML_ATTRIBUTE_H_ 7 7 8 /*Headers:{{{ 1*/8 /*Headers:{{{*/ 9 9 #include "../../include/include.h" 10 10 #include "../../shared/Exceptions/exceptions.h" … … 22 22 char* value; 23 23 24 /*KML_Attribute constructors, destructors {{{ 1*/24 /*KML_Attribute constructors, destructors {{{*/ 25 25 KML_Attribute(); 26 26 ~KML_Attribute(); 27 27 /*}}}*/ 28 /*Object virtual functions definitions:{{{ 1*/28 /*Object virtual functions definitions:{{{*/ 29 29 virtual void Echo(); 30 30 virtual void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_ColorStyle.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_ColorStyle::KML_ColorStyle(){{{ 1*/23 /*FUNCTION KML_ColorStyle::KML_ColorStyle(){{{*/ 24 24 KML_ColorStyle::KML_ColorStyle(){ 25 25 … … 29 29 } 30 30 /*}}}*/ 31 /*FUNCTION KML_ColorStyle::~KML_ColorStyle(){{{ 1*/31 /*FUNCTION KML_ColorStyle::~KML_ColorStyle(){{{*/ 32 32 KML_ColorStyle::~KML_ColorStyle(){ 33 33 … … 38 38 39 39 /*Other*/ 40 /*FUNCTION KML_ColorStyle::Echo {{{ 1*/40 /*FUNCTION KML_ColorStyle::Echo {{{*/ 41 41 void KML_ColorStyle::Echo(){ 42 42 … … 51 51 } 52 52 /*}}}*/ 53 /*FUNCTION KML_ColorStyle::DeepEcho {{{ 1*/53 /*FUNCTION KML_ColorStyle::DeepEcho {{{*/ 54 54 void KML_ColorStyle::DeepEcho(){ 55 55 … … 61 61 } 62 62 /*}}}*/ 63 /*FUNCTION KML_ColorStyle::DeepEcho {{{ 1*/63 /*FUNCTION KML_ColorStyle::DeepEcho {{{*/ 64 64 void KML_ColorStyle::DeepEcho(const char* indent){ 65 65 … … 74 74 } 75 75 /*}}}*/ 76 /*FUNCTION KML_ColorStyle::Write {{{ 1*/76 /*FUNCTION KML_ColorStyle::Write {{{*/ 77 77 void KML_ColorStyle::Write(FILE* filout,const char* indent){ 78 78 … … 87 87 } 88 88 /*}}}*/ 89 /*FUNCTION KML_ColorStyle::Read {{{ 1*/89 /*FUNCTION KML_ColorStyle::Read {{{*/ 90 90 void KML_ColorStyle::Read(FILE* fid,char* kstr){ 91 91 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_ColorStyle.h ¶
r11202 r12365 10 10 11 11 /*Headers:*/ 12 /*{{{ 1*/12 /*{{{*/ 13 13 #include "../../include/include.h" 14 14 #include "../../shared/Exceptions/exceptions.h" … … 25 25 char colormode[KML_COLORSTYLE_COLORMODE_LENGTH+1]; 26 26 27 /*KML_ColorStyle constructors, destructors {{{ 1*/27 /*KML_ColorStyle constructors, destructors {{{*/ 28 28 KML_ColorStyle(); 29 29 ~KML_ColorStyle(); 30 30 /*}}}*/ 31 /*Object virtual functions definitions:{{{ 1*/31 /*Object virtual functions definitions:{{{*/ 32 32 void Echo(); 33 33 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Comment.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_Comment::KML_Comment(){{{ 1*/23 /*FUNCTION KML_Comment::KML_Comment(){{{*/ 24 24 KML_Comment::KML_Comment(){ 25 25 … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION KML_Comment::~KML_Comment(){{{ 1*/30 /*FUNCTION KML_Comment::~KML_Comment(){{{*/ 31 31 KML_Comment::~KML_Comment(){ 32 32 … … 37 37 38 38 /*Other*/ 39 /*FUNCTION KML_Comment::Echo {{{ 1*/39 /*FUNCTION KML_Comment::Echo {{{*/ 40 40 void KML_Comment::Echo(){ 41 41 … … 48 48 } 49 49 /*}}}*/ 50 /*FUNCTION KML_Comment::DeepEcho {{{ 1*/50 /*FUNCTION KML_Comment::DeepEcho {{{*/ 51 51 void KML_Comment::DeepEcho(){ 52 52 … … 58 58 } 59 59 /*}}}*/ 60 /*FUNCTION KML_Comment::DeepEcho {{{ 1*/60 /*FUNCTION KML_Comment::DeepEcho {{{*/ 61 61 void KML_Comment::DeepEcho(const char* indent){ 62 62 … … 69 69 } 70 70 /*}}}*/ 71 /*FUNCTION KML_Comment::Write {{{ 1*/71 /*FUNCTION KML_Comment::Write {{{*/ 72 72 void KML_Comment::Write(FILE* filout,const char* indent){ 73 73 … … 81 81 } 82 82 /*}}}*/ 83 /*FUNCTION KML_Comment::Read {{{ 1*/83 /*FUNCTION KML_Comment::Read {{{*/ 84 84 void KML_Comment::Read(FILE* fid,char* kstr){ 85 85 … … 91 91 } 92 92 /*}}}*/ 93 /*FUNCTION KML_Comment::Alloc {{{ 1*/93 /*FUNCTION KML_Comment::Alloc {{{*/ 94 94 void KML_Comment::Alloc(const char* valuei){ 95 95 … … 100 100 } 101 101 /*}}}*/ 102 /*FUNCTION KML_Comment::Add {{{ 1*/102 /*FUNCTION KML_Comment::Add {{{*/ 103 103 void KML_Comment::Add(DataSet* commnt){ 104 104 … … 108 108 } 109 109 /*}}}*/ 110 /*FUNCTION KML_Comment::Get {{{ 1*/110 /*FUNCTION KML_Comment::Get {{{*/ 111 111 void KML_Comment::Get(char** pvalueo){ 112 112 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Comment.h ¶
r11202 r12365 6 6 #define _KML_COMMENT_H_ 7 7 8 /*Headers:{{{ 1*/8 /*Headers:{{{*/ 9 9 #include "../../include/include.h" 10 10 #include "../../shared/Exceptions/exceptions.h" … … 22 22 char* value; 23 23 24 /*KML_Comment constructors, destructors {{{ 1*/24 /*KML_Comment constructors, destructors {{{*/ 25 25 KML_Comment(); 26 26 ~KML_Comment(); 27 27 /*}}}*/ 28 /*Object virtual functions definitions:{{{ 1*/28 /*Object virtual functions definitions:{{{*/ 29 29 virtual void Echo(); 30 30 virtual void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Container.cpp ¶
r11319 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_Container::KML_Container(){{{ 1*/23 /*FUNCTION KML_Container::KML_Container(){{{*/ 24 24 KML_Container::KML_Container(){ 25 25 … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION KML_Container::~KML_Container(){{{ 1*/30 /*FUNCTION KML_Container::~KML_Container(){{{*/ 31 31 KML_Container::~KML_Container(){ 32 32 … … 40 40 41 41 /*Other*/ 42 /*FUNCTION KML_Container::Echo {{{ 1*/42 /*FUNCTION KML_Container::Echo {{{*/ 43 43 void KML_Container::Echo(){ 44 44 … … 52 52 } 53 53 /*}}}*/ 54 /*FUNCTION KML_Container::DeepEcho {{{ 1*/54 /*FUNCTION KML_Container::DeepEcho {{{*/ 55 55 void KML_Container::DeepEcho(){ 56 56 … … 62 62 } 63 63 /*}}}*/ 64 /*FUNCTION KML_Container::DeepEcho {{{ 1*/64 /*FUNCTION KML_Container::DeepEcho {{{*/ 65 65 void KML_Container::DeepEcho(const char* indent){ 66 66 … … 88 88 } 89 89 /*}}}*/ 90 /*FUNCTION KML_Container::Write {{{ 1*/90 /*FUNCTION KML_Container::Write {{{*/ 91 91 void KML_Container::Write(FILE* filout,const char* indent){ 92 92 … … 108 108 } 109 109 /*}}}*/ 110 /*FUNCTION KML_Container::Read {{{ 1*/110 /*FUNCTION KML_Container::Read {{{*/ 111 111 void KML_Container::Read(FILE* fid,char* kstr){ 112 112 … … 154 154 } 155 155 /*}}}*/ 156 /*FUNCTION KML_Container::WriteExp {{{ 1*/156 /*FUNCTION KML_Container::WriteExp {{{*/ 157 157 void KML_Container::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 158 158 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Container.h ¶
r11202 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../../include/include.h" 11 11 #include "../../shared/Exceptions/exceptions.h" … … 22 22 DataSet* feature; 23 23 24 /*KML_Container constructors, destructors {{{ 1*/24 /*KML_Container constructors, destructors {{{*/ 25 25 KML_Container(); 26 26 ~KML_Container(); 27 27 /*}}}*/ 28 /*Object virtual functions definitions:{{{ 1*/28 /*Object virtual functions definitions:{{{*/ 29 29 void Echo(); 30 30 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Document.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_Document::KML_Document(){{{ 1*/23 /*FUNCTION KML_Document::KML_Document(){{{*/ 24 24 KML_Document::KML_Document(){ 25 25 … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION KML_Document::~KML_Document(){{{ 1*/30 /*FUNCTION KML_Document::~KML_Document(){{{*/ 31 31 KML_Document::~KML_Document(){ 32 32 … … 37 37 38 38 /*Other*/ 39 /*FUNCTION KML_Document::Echo {{{ 1*/39 /*FUNCTION KML_Document::Echo {{{*/ 40 40 void KML_Document::Echo(){ 41 41 … … 49 49 /*}}}*/ 50 50 51 /*FUNCTION KML_Document::DeepEcho {{{ 1*/51 /*FUNCTION KML_Document::DeepEcho {{{*/ 52 52 void KML_Document::DeepEcho(){ 53 53 … … 60 60 /*}}}*/ 61 61 62 /*FUNCTION KML_Document::DeepEcho {{{ 1*/62 /*FUNCTION KML_Document::DeepEcho {{{*/ 63 63 void KML_Document::DeepEcho(const char* indent){ 64 64 … … 72 72 /*}}}*/ 73 73 74 /*FUNCTION KML_Document::Write {{{ 1*/74 /*FUNCTION KML_Document::Write {{{*/ 75 75 void KML_Document::Write(FILE* filout,const char* indent){ 76 76 … … 88 88 /*}}}*/ 89 89 90 /*FUNCTION KML_Document::Read {{{ 1*/90 /*FUNCTION KML_Document::Read {{{*/ 91 91 void KML_Document::Read(FILE* fid,char* kstr){ 92 92 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Document.h ¶
r11202 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../../include/include.h" 11 11 #include "../../shared/Exceptions/exceptions.h" … … 20 20 public: 21 21 22 /*KML_Document constructors, destructors {{{ 1*/22 /*KML_Document constructors, destructors {{{*/ 23 23 KML_Document(); 24 24 ~KML_Document(); 25 25 /*}}}*/ 26 /*Object virtual functions definitions:{{{ 1*/26 /*Object virtual functions definitions:{{{ */ 27 27 void Echo(); 28 28 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Feature.cpp ¶
r11319 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_Feature::KML_Feature(){{{ 1*/23 /*FUNCTION KML_Feature::KML_Feature(){{{*/ 24 24 KML_Feature::KML_Feature(){ 25 25 … … 35 35 } 36 36 /*}}}*/ 37 /*FUNCTION KML_Feature::~KML_Feature(){{{ 1*/37 /*FUNCTION KML_Feature::~KML_Feature(){{{*/ 38 38 KML_Feature::~KML_Feature(){ 39 39 … … 47 47 48 48 /*Other*/ 49 /*FUNCTION KML_Feature::Echo {{{ 1*/49 /*FUNCTION KML_Feature::Echo {{{*/ 50 50 void KML_Feature::Echo(){ 51 51 … … 66 66 /*}}}*/ 67 67 68 /*FUNCTION KML_Feature::DeepEcho {{{ 1*/68 /*FUNCTION KML_Feature::DeepEcho {{{*/ 69 69 void KML_Feature::DeepEcho(){ 70 70 … … 77 77 /*}}}*/ 78 78 79 /*FUNCTION KML_Feature::DeepEcho {{{ 1*/79 /*FUNCTION KML_Feature::DeepEcho {{{*/ 80 80 void KML_Feature::DeepEcho(const char* indent){ 81 81 … … 111 111 /*}}}*/ 112 112 113 /*FUNCTION KML_Feature::Write {{{ 1*/113 /*FUNCTION KML_Feature::Write {{{*/ 114 114 void KML_Feature::Write(FILE* filout,const char* indent){ 115 115 … … 143 143 /*}}}*/ 144 144 145 /*FUNCTION KML_Feature::Read {{{ 1*/145 /*FUNCTION KML_Feature::Read {{{*/ 146 146 void KML_Feature::Read(FILE* fid,char* kstr){ 147 147 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Feature.h ¶
r11202 r12365 12 12 13 13 /*Headers:*/ 14 /*{{{ 1*/14 /*{{{*/ 15 15 #include "../../include/include.h" 16 16 #include "../../shared/Exceptions/exceptions.h" … … 34 34 DataSet* style; 35 35 36 /*KML_Feature constructors, destructors {{{ 1*/36 /*KML_Feature constructors, destructors {{{*/ 37 37 KML_Feature(); 38 38 ~KML_Feature(); 39 39 /*}}}*/ 40 /*Object virtual functions definitions:{{{ 1*/40 /*Object virtual functions definitions:{{{*/ 41 41 void Echo(); 42 42 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_File.cpp ¶
r11383 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_File::KML_File(){{{ 1*/23 /*FUNCTION KML_File::KML_File(){{{*/ 24 24 KML_File::KML_File(){ 25 25 … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION KML_File::~KML_File(){{{ 1*/30 /*FUNCTION KML_File::~KML_File(){{{*/ 31 31 KML_File::~KML_File(){ 32 32 … … 37 37 38 38 /*Other*/ 39 /*FUNCTION KML_File::Echo {{{ 1*/39 /*FUNCTION KML_File::Echo {{{*/ 40 40 void KML_File::Echo(){ 41 41 … … 48 48 } 49 49 /*}}}*/ 50 /*FUNCTION KML_File::DeepEcho {{{ 1*/50 /*FUNCTION KML_File::DeepEcho {{{*/ 51 51 void KML_File::DeepEcho(){ 52 52 … … 58 58 } 59 59 /*}}}*/ 60 /*FUNCTION KML_File::DeepEcho {{{ 1*/60 /*FUNCTION KML_File::DeepEcho {{{*/ 61 61 void KML_File::DeepEcho(const char* indent){ 62 62 … … 69 69 } 70 70 /*}}}*/ 71 /*FUNCTION KML_File::Write {{{ 1*/71 /*FUNCTION KML_File::Write {{{*/ 72 72 void KML_File::Write(FILE* filout,const char* indent){ 73 73 … … 84 84 } 85 85 /*}}}*/ 86 /*FUNCTION KML_File::Read {{{ 1*/86 /*FUNCTION KML_File::Read {{{*/ 87 87 void KML_File::Read(FILE* fid,char* kstr){ 88 88 … … 126 126 } 127 127 /*}}}*/ 128 /*FUNCTION KML_File::WriteExp {{{ 1*/128 /*FUNCTION KML_File::WriteExp {{{*/ 129 129 void KML_File::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 130 130 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_File.h ¶
r11383 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../../include/include.h" 11 11 #include "../../shared/Exceptions/exceptions.h" … … 20 20 public: 21 21 22 /*KML_File constructors, destructors {{{ 1*/22 /*KML_File constructors, destructors {{{*/ 23 23 KML_File(); 24 24 ~KML_File(); 25 25 /*}}}*/ 26 /*Object virtual functions definitions:{{{ 1*/26 /*Object virtual functions definitions:{{{*/ 27 27 void Echo(); 28 28 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Folder.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_Folder::KML_Folder(){{{ 1*/23 /*FUNCTION KML_Folder::KML_Folder(){{{*/ 24 24 KML_Folder::KML_Folder(){ 25 25 … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION KML_Folder::~KML_Folder(){{{ 1*/30 /*FUNCTION KML_Folder::~KML_Folder(){{{*/ 31 31 KML_Folder::~KML_Folder(){ 32 32 … … 37 37 38 38 /*Other*/ 39 /*FUNCTION KML_Folder::Echo {{{ 1*/39 /*FUNCTION KML_Folder::Echo {{{*/ 40 40 void KML_Folder::Echo(){ 41 41 … … 49 49 /*}}}*/ 50 50 51 /*FUNCTION KML_Folder::DeepEcho {{{ 1*/51 /*FUNCTION KML_Folder::DeepEcho {{{*/ 52 52 void KML_Folder::DeepEcho(){ 53 53 … … 60 60 /*}}}*/ 61 61 62 /*FUNCTION KML_Folder::DeepEcho {{{ 1*/62 /*FUNCTION KML_Folder::DeepEcho {{{*/ 63 63 void KML_Folder::DeepEcho(const char* indent){ 64 64 … … 72 72 /*}}}*/ 73 73 74 /*FUNCTION KML_Folder::Write {{{ 1*/74 /*FUNCTION KML_Folder::Write {{{*/ 75 75 void KML_Folder::Write(FILE* filout,const char* indent){ 76 76 … … 88 88 /*}}}*/ 89 89 90 /*FUNCTION KML_Folder::Read {{{ 1*/90 /*FUNCTION KML_Folder::Read {{{*/ 91 91 void KML_Folder::Read(FILE* fid,char* kstr){ 92 92 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Folder.h ¶
r11202 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../../include/include.h" 11 11 #include "../../shared/Exceptions/exceptions.h" … … 20 20 public: 21 21 22 /*KML_Folder constructors, destructors {{{ 1*/22 /*KML_Folder constructors, destructors {{{*/ 23 23 KML_Folder(); 24 24 ~KML_Folder(); 25 25 /*}}}*/ 26 /*Object virtual functions definitions:{{{ 1*/26 /*Object virtual functions definitions:{{{ */ 27 27 void Echo(); 28 28 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Geometry.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 20 20 21 21 /*Constructors/destructor/copy*/ 22 /*FUNCTION KML_Geometry::KML_Geometry(){{{ 1*/22 /*FUNCTION KML_Geometry::KML_Geometry(){{{*/ 23 23 KML_Geometry::KML_Geometry(){ 24 24 … … 27 27 } 28 28 /*}}}*/ 29 /*FUNCTION KML_Geometry::~KML_Geometry(){{{ 1*/29 /*FUNCTION KML_Geometry::~KML_Geometry(){{{*/ 30 30 KML_Geometry::~KML_Geometry(){ 31 31 … … 36 36 37 37 /*Other*/ 38 /*FUNCTION KML_Geometry::Echo {{{ 1*/38 /*FUNCTION KML_Geometry::Echo {{{*/ 39 39 void KML_Geometry::Echo(){ 40 40 … … 45 45 /*}}}*/ 46 46 47 /*FUNCTION KML_Geometry::DeepEcho {{{ 1*/47 /*FUNCTION KML_Geometry::DeepEcho {{{*/ 48 48 void KML_Geometry::DeepEcho(){ 49 49 … … 56 56 /*}}}*/ 57 57 58 /*FUNCTION KML_Geometry::DeepEcho {{{ 1*/58 /*FUNCTION KML_Geometry::DeepEcho {{{*/ 59 59 void KML_Geometry::DeepEcho(const char* indent){ 60 60 … … 65 65 /*}}}*/ 66 66 67 /*FUNCTION KML_Geometry::Write {{{ 1*/67 /*FUNCTION KML_Geometry::Write {{{*/ 68 68 void KML_Geometry::Write(FILE* filout,const char* indent){ 69 69 … … 74 74 /*}}}*/ 75 75 76 /*FUNCTION KML_Geometry::Read {{{ 1*/76 /*FUNCTION KML_Geometry::Read {{{*/ 77 77 void KML_Geometry::Read(FILE* fid,char* kstr){ 78 78 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Geometry.h ¶
r11202 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../../include/include.h" 11 11 #include "../../shared/Exceptions/exceptions.h" … … 19 19 public: 20 20 21 /*KML_Geometry constructors, destructors {{{ 1*/21 /*KML_Geometry constructors, destructors {{{*/ 22 22 KML_Geometry(); 23 23 ~KML_Geometry(); 24 24 /*}}}*/ 25 /*Object virtual functions definitions:{{{ 1*/25 /*Object virtual functions definitions:{{{*/ 26 26 void Echo(); 27 27 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_GroundOverlay.cpp ¶
r11319 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_GroundOverlay::KML_GroundOverlay(){{{ 1*/23 /*FUNCTION KML_GroundOverlay::KML_GroundOverlay(){{{*/ 24 24 KML_GroundOverlay::KML_GroundOverlay(){ 25 25 … … 31 31 } 32 32 /*}}}*/ 33 /*FUNCTION KML_GroundOverlay::~KML_GroundOverlay(){{{ 1*/33 /*FUNCTION KML_GroundOverlay::~KML_GroundOverlay(){{{*/ 34 34 KML_GroundOverlay::~KML_GroundOverlay(){ 35 35 … … 43 43 44 44 /*Other*/ 45 /*FUNCTION KML_GroundOverlay::Echo {{{ 1*/45 /*FUNCTION KML_GroundOverlay::Echo {{{*/ 46 46 void KML_GroundOverlay::Echo(){ 47 47 … … 59 59 /*}}}*/ 60 60 61 /*FUNCTION KML_GroundOverlay::DeepEcho {{{ 1*/61 /*FUNCTION KML_GroundOverlay::DeepEcho {{{*/ 62 62 void KML_GroundOverlay::DeepEcho(){ 63 63 … … 70 70 /*}}}*/ 71 71 72 /*FUNCTION KML_GroundOverlay::DeepEcho {{{ 1*/72 /*FUNCTION KML_GroundOverlay::DeepEcho {{{*/ 73 73 void KML_GroundOverlay::DeepEcho(const char* indent){ 74 74 … … 93 93 /*}}}*/ 94 94 95 /*FUNCTION KML_GroundOverlay::Write {{{ 1*/95 /*FUNCTION KML_GroundOverlay::Write {{{*/ 96 96 void KML_GroundOverlay::Write(FILE* filout,const char* indent){ 97 97 … … 120 120 /*}}}*/ 121 121 122 /*FUNCTION KML_GroundOverlay::Read {{{ 1*/122 /*FUNCTION KML_GroundOverlay::Read {{{*/ 123 123 void KML_GroundOverlay::Read(FILE* fid,char* kstr){ 124 124 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_GroundOverlay.h ¶
r11202 r12365 9 9 10 10 /*Headers:*/ 11 /*{{{ 1*/11 /*{{{*/ 12 12 #include "../../include/include.h" 13 13 #include "../../shared/Exceptions/exceptions.h" … … 26 26 KML_LatLonBox* llbox; 27 27 28 /*KML_GroundOverlay constructors, destructors {{{ 1*/28 /*KML_GroundOverlay constructors, destructors {{{*/ 29 29 KML_GroundOverlay(); 30 30 ~KML_GroundOverlay(); 31 31 /*}}}*/ 32 /*Object virtual functions definitions:{{{ 1*/32 /*Object virtual functions definitions:{{{*/ 33 33 void Echo(); 34 34 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Icon.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_Icon::KML_Icon(){{{ 1*/23 /*FUNCTION KML_Icon::KML_Icon(){{{*/ 24 24 KML_Icon::KML_Icon(){ 25 25 … … 35 35 } 36 36 /*}}}*/ 37 /*FUNCTION KML_Icon::~KML_Icon(){{{ 1*/37 /*FUNCTION KML_Icon::~KML_Icon(){{{*/ 38 38 KML_Icon::~KML_Icon(){ 39 39 … … 44 44 45 45 /*Other*/ 46 /*FUNCTION KML_Icon::Echo {{{ 1*/46 /*FUNCTION KML_Icon::Echo {{{*/ 47 47 void KML_Icon::Echo(){ 48 48 … … 65 65 /*}}}*/ 66 66 67 /*FUNCTION KML_Icon::DeepEcho {{{ 1*/67 /*FUNCTION KML_Icon::DeepEcho {{{*/ 68 68 void KML_Icon::DeepEcho(){ 69 69 … … 76 76 /*}}}*/ 77 77 78 /*FUNCTION KML_Icon::DeepEcho {{{ 1*/78 /*FUNCTION KML_Icon::DeepEcho {{{*/ 79 79 void KML_Icon::DeepEcho(const char* indent){ 80 80 … … 97 97 /*}}}*/ 98 98 99 /*FUNCTION KML_Icon::Write {{{ 1*/99 /*FUNCTION KML_Icon::Write {{{*/ 100 100 void KML_Icon::Write(FILE* filout,const char* indent){ 101 101 … … 127 127 /*}}}*/ 128 128 129 /*FUNCTION KML_Icon::Read {{{ 1*/129 /*FUNCTION KML_Icon::Read {{{*/ 130 130 void KML_Icon::Read(FILE* fid,char* kstr){ 131 131 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Icon.h ¶
r11202 r12365 13 13 14 14 /*Headers:*/ 15 /*{{{ 1*/15 /*{{{*/ 16 16 #include "../../include/include.h" 17 17 #include "../../shared/Exceptions/exceptions.h" … … 34 34 char hquery[KML_ICON_HQUERY_LENGTH+1]; 35 35 36 /*KML_Icon constructors, destructors {{{ 1*/36 /*KML_Icon constructors, destructors {{{*/ 37 37 KML_Icon(); 38 38 ~KML_Icon(); 39 39 /*}}}*/ 40 /*Object virtual functions definitions:{{{ 1*/40 /*Object virtual functions definitions:{{{*/ 41 41 void Echo(); 42 42 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_LatLonBox.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_LatLonBox::KML_LatLonBox(){{{ 1*/23 /*FUNCTION KML_LatLonBox::KML_LatLonBox(){{{*/ 24 24 KML_LatLonBox::KML_LatLonBox(){ 25 25 … … 32 32 } 33 33 /*}}}*/ 34 /*FUNCTION KML_LatLonBox::~KML_LatLonBox(){{{ 1*/34 /*FUNCTION KML_LatLonBox::~KML_LatLonBox(){{{*/ 35 35 KML_LatLonBox::~KML_LatLonBox(){ 36 36 … … 41 41 42 42 /*Other*/ 43 /*FUNCTION KML_LatLonBox::Echo {{{ 1*/43 /*FUNCTION KML_LatLonBox::Echo {{{*/ 44 44 void KML_LatLonBox::Echo(){ 45 45 … … 59 59 /*}}}*/ 60 60 61 /*FUNCTION KML_LatLonBox::DeepEcho {{{ 1*/61 /*FUNCTION KML_LatLonBox::DeepEcho {{{*/ 62 62 void KML_LatLonBox::DeepEcho(){ 63 63 … … 70 70 /*}}}*/ 71 71 72 /*FUNCTION KML_LatLonBox::DeepEcho {{{ 1*/72 /*FUNCTION KML_LatLonBox::DeepEcho {{{*/ 73 73 void KML_LatLonBox::DeepEcho(const char* indent){ 74 74 … … 88 88 /*}}}*/ 89 89 90 /*FUNCTION KML_LatLonBox::Write {{{ 1*/90 /*FUNCTION KML_LatLonBox::Write {{{*/ 91 91 void KML_LatLonBox::Write(FILE* filout,const char* indent){ 92 92 … … 110 110 /*}}}*/ 111 111 112 /*FUNCTION KML_LatLonBox::Read {{{ 1*/112 /*FUNCTION KML_LatLonBox::Read {{{*/ 113 113 void KML_LatLonBox::Read(FILE* fid,char* kstr){ 114 114 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_LatLonBox.h ¶
r11202 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../../include/include.h" 11 11 #include "../../shared/Exceptions/exceptions.h" … … 25 25 double rotation; 26 26 27 /*KML_LatLonBox constructors, destructors {{{ 1*/27 /*KML_LatLonBox constructors, destructors {{{*/ 28 28 KML_LatLonBox(); 29 29 ~KML_LatLonBox(); 30 30 /*}}}*/ 31 /*Object virtual functions definitions:{{{ 1*/31 /*Object virtual functions definitions:{{{*/ 32 32 void Echo(); 33 33 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_LineString.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 22 22 23 23 /*Constructors/destructor/copy*/ 24 /*FUNCTION KML_LineString::KML_LineString(){{{ 1*/24 /*FUNCTION KML_LineString::KML_LineString(){{{*/ 25 25 KML_LineString::KML_LineString(){ 26 26 … … 34 34 } 35 35 /*}}}*/ 36 /*FUNCTION KML_LineString::~KML_LineString(){{{ 1*/36 /*FUNCTION KML_LineString::~KML_LineString(){{{*/ 37 37 KML_LineString::~KML_LineString(){ 38 38 … … 46 46 47 47 /*Other*/ 48 /*FUNCTION KML_LineString::Echo {{{ 1*/48 /*FUNCTION KML_LineString::Echo {{{*/ 49 49 void KML_LineString::Echo(){ 50 50 … … 62 62 } 63 63 /*}}}*/ 64 /*FUNCTION KML_LineString::DeepEcho {{{ 1*/64 /*FUNCTION KML_LineString::DeepEcho {{{*/ 65 65 void KML_LineString::DeepEcho(){ 66 66 … … 72 72 } 73 73 /*}}}*/ 74 /*FUNCTION KML_LineString::DeepEcho {{{ 1*/74 /*FUNCTION KML_LineString::DeepEcho {{{*/ 75 75 void KML_LineString::DeepEcho(const char* indent){ 76 76 … … 92 92 } 93 93 /*}}}*/ 94 /*FUNCTION KML_LineString::Write {{{ 1*/94 /*FUNCTION KML_LineString::Write {{{*/ 95 95 void KML_LineString::Write(FILE* filout,const char* indent){ 96 96 … … 121 121 } 122 122 /*}}}*/ 123 /*FUNCTION KML_LineString::Read {{{ 1*/123 /*FUNCTION KML_LineString::Read {{{*/ 124 124 void KML_LineString::Read(FILE* fid,char* kstr){ 125 125 … … 179 179 } 180 180 /*}}}*/ 181 /*FUNCTION KML_LineString::WriteExp {{{ 1*/181 /*FUNCTION KML_LineString::WriteExp {{{*/ 182 182 void KML_LineString::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 183 183 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_LineString.h ¶
r11202 r12365 9 9 10 10 /*Headers:*/ 11 /*{{{ 1*/11 /*{{{*/ 12 12 #include "../../include/include.h" 13 13 #include "../../shared/Exceptions/exceptions.h" … … 27 27 double (*coords)[3]; 28 28 29 /*KML_LineString constructors, destructors {{{ 1*/29 /*KML_LineString constructors, destructors {{{*/ 30 30 KML_LineString(); 31 31 ~KML_LineString(); 32 32 /*}}}*/ 33 /*Object virtual functions definitions:{{{ 1*/33 /*Object virtual functions definitions:{{{*/ 34 34 void Echo(); 35 35 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_LineStyle.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_LineStyle::KML_LineStyle(){{{ 1*/23 /*FUNCTION KML_LineStyle::KML_LineStyle(){{{*/ 24 24 KML_LineStyle::KML_LineStyle(){ 25 25 … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION KML_LineStyle::~KML_LineStyle(){{{ 1*/30 /*FUNCTION KML_LineStyle::~KML_LineStyle(){{{*/ 31 31 KML_LineStyle::~KML_LineStyle(){ 32 32 … … 37 37 38 38 /*Other*/ 39 /*FUNCTION KML_LineStyle::Echo {{{ 1*/39 /*FUNCTION KML_LineStyle::Echo {{{*/ 40 40 void KML_LineStyle::Echo(){ 41 41 … … 51 51 /*}}}*/ 52 52 53 /*FUNCTION KML_LineStyle::DeepEcho {{{ 1*/53 /*FUNCTION KML_LineStyle::DeepEcho {{{*/ 54 54 void KML_LineStyle::DeepEcho(){ 55 55 … … 62 62 /*}}}*/ 63 63 64 /*FUNCTION KML_LineStyle::DeepEcho {{{ 1*/64 /*FUNCTION KML_LineStyle::DeepEcho {{{*/ 65 65 void KML_LineStyle::DeepEcho(const char* indent){ 66 66 … … 77 77 /*}}}*/ 78 78 79 /*FUNCTION KML_LineStyle::Write {{{ 1*/79 /*FUNCTION KML_LineStyle::Write {{{*/ 80 80 void KML_LineStyle::Write(FILE* filout,const char* indent){ 81 81 … … 95 95 /*}}}*/ 96 96 97 /*FUNCTION KML_LineStyle::Read {{{ 1*/97 /*FUNCTION KML_LineStyle::Read {{{*/ 98 98 void KML_LineStyle::Read(FILE* fid,char* kstr){ 99 99 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_LineStyle.h ¶
r11202 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../../include/include.h" 11 11 #include "../../shared/Exceptions/exceptions.h" … … 21 21 float width; 22 22 23 /*KML_LineStyle constructors, destructors {{{ 1*/23 /*KML_LineStyle constructors, destructors {{{*/ 24 24 KML_LineStyle(); 25 25 ~KML_LineStyle(); 26 26 /*}}}*/ 27 /*Object virtual functions definitions:{{{ 1*/27 /*Object virtual functions definitions:{{{ */ 28 28 void Echo(); 29 29 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_LinearRing.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 22 22 23 23 /*Constructors/destructor/copy*/ 24 /*FUNCTION KML_LinearRing::KML_LinearRing(){{{ 1*/24 /*FUNCTION KML_LinearRing::KML_LinearRing(){{{*/ 25 25 KML_LinearRing::KML_LinearRing(){ 26 26 … … 34 34 } 35 35 /*}}}*/ 36 /*FUNCTION KML_LinearRing::~KML_LinearRing(){{{ 1*/36 /*FUNCTION KML_LinearRing::~KML_LinearRing(){{{*/ 37 37 KML_LinearRing::~KML_LinearRing(){ 38 38 … … 46 46 47 47 /*Other*/ 48 /*FUNCTION KML_LinearRing::Echo {{{ 1*/48 /*FUNCTION KML_LinearRing::Echo {{{*/ 49 49 void KML_LinearRing::Echo(){ 50 50 … … 63 63 /*}}}*/ 64 64 65 /*FUNCTION KML_LinearRing::DeepEcho {{{ 1*/65 /*FUNCTION KML_LinearRing::DeepEcho {{{*/ 66 66 void KML_LinearRing::DeepEcho(){ 67 67 … … 74 74 /*}}}*/ 75 75 76 /*FUNCTION KML_LinearRing::DeepEcho {{{ 1*/76 /*FUNCTION KML_LinearRing::DeepEcho {{{*/ 77 77 void KML_LinearRing::DeepEcho(const char* indent){ 78 78 … … 95 95 /*}}}*/ 96 96 97 /*FUNCTION KML_LinearRing::Write {{{ 1*/97 /*FUNCTION KML_LinearRing::Write {{{*/ 98 98 void KML_LinearRing::Write(FILE* filout,const char* indent){ 99 99 … … 125 125 /*}}}*/ 126 126 127 /*FUNCTION KML_LinearRing::Read {{{ 1*/127 /*FUNCTION KML_LinearRing::Read {{{*/ 128 128 void KML_LinearRing::Read(FILE* fid,char* kstr){ 129 129 … … 184 184 /*}}}*/ 185 185 186 /*FUNCTION KML_LinearRing::WriteExp {{{ 1*/186 /*FUNCTION KML_LinearRing::WriteExp {{{*/ 187 187 void KML_LinearRing::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 188 188 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_LinearRing.h ¶
r11202 r12365 9 9 10 10 /*Headers:*/ 11 /*{{{ 1*/11 /*{{{*/ 12 12 #include "../../include/include.h" 13 13 #include "../../shared/Exceptions/exceptions.h" … … 27 27 double (*coords)[3]; 28 28 29 /*KML_LinearRing constructors, destructors {{{ 1*/29 /*KML_LinearRing constructors, destructors {{{*/ 30 30 KML_LinearRing(); 31 31 ~KML_LinearRing(); 32 32 /*}}}*/ 33 /*Object virtual functions definitions:{{{ 1*/33 /*Object virtual functions definitions:{{{*/ 34 34 void Echo(); 35 35 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_MultiGeometry.cpp ¶
r11319 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_MultiGeometry::KML_MultiGeometry(){{{ 1*/23 /*FUNCTION KML_MultiGeometry::KML_MultiGeometry(){{{*/ 24 24 KML_MultiGeometry::KML_MultiGeometry(){ 25 25 … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION KML_MultiGeometry::~KML_MultiGeometry(){{{ 1*/30 /*FUNCTION KML_MultiGeometry::~KML_MultiGeometry(){{{*/ 31 31 KML_MultiGeometry::~KML_MultiGeometry(){ 32 32 … … 40 40 41 41 /*Other*/ 42 /*FUNCTION KML_MultiGeometry::Echo {{{ 1*/42 /*FUNCTION KML_MultiGeometry::Echo {{{*/ 43 43 void KML_MultiGeometry::Echo(){ 44 44 … … 54 54 /*}}}*/ 55 55 56 /*FUNCTION KML_MultiGeometry::DeepEcho {{{ 1*/56 /*FUNCTION KML_MultiGeometry::DeepEcho {{{*/ 57 57 void KML_MultiGeometry::DeepEcho(){ 58 58 … … 65 65 /*}}}*/ 66 66 67 /*FUNCTION KML_MultiGeometry::DeepEcho {{{ 1*/67 /*FUNCTION KML_MultiGeometry::DeepEcho {{{*/ 68 68 void KML_MultiGeometry::DeepEcho(const char* indent){ 69 69 … … 93 93 /*}}}*/ 94 94 95 /*FUNCTION KML_MultiGeometry::Write {{{ 1*/95 /*FUNCTION KML_MultiGeometry::Write {{{*/ 96 96 void KML_MultiGeometry::Write(FILE* filout,const char* indent){ 97 97 … … 121 121 /*}}}*/ 122 122 123 /*FUNCTION KML_MultiGeometry::Read {{{ 1*/123 /*FUNCTION KML_MultiGeometry::Read {{{*/ 124 124 void KML_MultiGeometry::Read(FILE* fid,char* kstr){ 125 125 … … 194 194 /*}}}*/ 195 195 196 /*FUNCTION KML_MultiGeometry::WriteExp {{{ 1*/196 /*FUNCTION KML_MultiGeometry::WriteExp {{{*/ 197 197 void KML_MultiGeometry::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 198 198 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_MultiGeometry.h ¶
r11202 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../../include/include.h" 11 11 #include "../../shared/Exceptions/exceptions.h" … … 23 23 DataSet* geometry; 24 24 25 /*KML_MultiGeometry constructors, destructors {{{ 1*/25 /*KML_MultiGeometry constructors, destructors {{{*/ 26 26 KML_MultiGeometry(); 27 27 ~KML_MultiGeometry(); 28 28 /*}}}*/ 29 /*Object virtual functions definitions:{{{ 1*/29 /*Object virtual functions definitions:{{{*/ 30 30 void Echo(); 31 31 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Object.cpp ¶
r11383 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_Object::KML_Object(){{{ 1*/23 /*FUNCTION KML_Object::KML_Object(){{{*/ 24 24 KML_Object::KML_Object(){ 25 25 … … 30 30 } 31 31 /*}}}*/ 32 /*FUNCTION KML_Object::~KML_Object(){{{ 1*/32 /*FUNCTION KML_Object::~KML_Object(){{{*/ 33 33 KML_Object::~KML_Object(){ 34 34 … … 50 50 51 51 /*Other*/ 52 /*FUNCTION KML_Object::Echo {{{ 1*/52 /*FUNCTION KML_Object::Echo {{{*/ 53 53 void KML_Object::Echo(){ 54 54 … … 62 62 } 63 63 /*}}}*/ 64 /*FUNCTION KML_Object::DeepEcho {{{ 1*/64 /*FUNCTION KML_Object::DeepEcho {{{*/ 65 65 void KML_Object::DeepEcho(){ 66 66 … … 72 72 } 73 73 /*}}}*/ 74 /*FUNCTION KML_Object::DeepEcho {{{ 1*/74 /*FUNCTION KML_Object::DeepEcho {{{*/ 75 75 void KML_Object::DeepEcho(const char* indent){ 76 76 … … 114 114 } 115 115 /*}}}*/ 116 /*FUNCTION KML_Object::Write {{{ 1*/116 /*FUNCTION KML_Object::Write {{{*/ 117 117 void KML_Object::Write(FILE* filout,const char* indent){ 118 118 … … 136 136 } 137 137 /*}}}*/ 138 /*FUNCTION KML_Object::Read {{{ 1*/138 /*FUNCTION KML_Object::Read {{{*/ 139 139 void KML_Object::Read(FILE* fid,char* kstr){ 140 140 … … 264 264 } 265 265 /*}}}*/ 266 /*FUNCTION KML_Object::WriteExp {{{ 1*/266 /*FUNCTION KML_Object::WriteExp {{{*/ 267 267 void KML_Object::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 268 268 … … 272 272 } 273 273 /*}}}*/ 274 /*FUNCTION KML_Object::AddAttrib {{{ 1*/274 /*FUNCTION KML_Object::AddAttrib {{{*/ 275 275 void KML_Object::AddAttrib(const char* name,const char* value){ 276 276 … … 284 284 } 285 285 /*}}}*/ 286 /*FUNCTION KML_Object::FindAttrib {{{ 1*/286 /*FUNCTION KML_Object::FindAttrib {{{*/ 287 287 void KML_Object::FindAttrib(char** pvalue,char* name,char* deflt){ 288 288 … … 311 311 } 312 312 /*}}}*/ 313 /*FUNCTION KML_Object::WriteAttrib {{{ 1*/313 /*FUNCTION KML_Object::WriteAttrib {{{*/ 314 314 void KML_Object::WriteAttrib(FILE* filout,const char* indent){ 315 315 … … 325 325 } 326 326 /*}}}*/ 327 /*FUNCTION KML_Object::AddCommnt {{{ 1*/327 /*FUNCTION KML_Object::AddCommnt {{{*/ 328 328 void KML_Object::AddCommnt(int ncom,char** pcom){ 329 329 … … 340 340 } 341 341 /*}}}*/ 342 /*FUNCTION KML_Object::AddCommnt {{{ 1*/342 /*FUNCTION KML_Object::AddCommnt {{{*/ 343 343 void KML_Object::AddCommnt(char* value){ 344 344 … … 352 352 } 353 353 /*}}}*/ 354 /*FUNCTION KML_Object::FindCommnt {{{ 1*/354 /*FUNCTION KML_Object::FindCommnt {{{*/ 355 355 void KML_Object::FindCommnt(char** pvalue,int inum){ 356 356 … … 370 370 } 371 371 /*}}}*/ 372 /*FUNCTION KML_Object::WriteCommnt {{{ 1*/372 /*FUNCTION KML_Object::WriteCommnt {{{*/ 373 373 void KML_Object::WriteCommnt(FILE* filout,const char* indent){ 374 374 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Object.h ¶
r11383 r12365 6 6 #define _KML_OBJECT_H_ 7 7 8 /*Headers:{{{ 1*/8 /*Headers:{{{*/ 9 9 #include "../../include/include.h" 10 10 #include "../../shared/Exceptions/exceptions.h" … … 23 23 DataSet* kmlobj; 24 24 25 /*KML_Object constructors, destructors {{{ 1*/25 /*KML_Object constructors, destructors {{{*/ 26 26 KML_Object(); 27 27 ~KML_Object(); 28 28 /*}}}*/ 29 /*Object virtual functions definitions:{{{ 1*/29 /*Object virtual functions definitions:{{{*/ 30 30 virtual void Echo(); 31 31 virtual void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Overlay.cpp ¶
r11319 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_Overlay::KML_Overlay(){{{ 1*/23 /*FUNCTION KML_Overlay::KML_Overlay(){{{*/ 24 24 KML_Overlay::KML_Overlay(){ 25 25 … … 32 32 } 33 33 /*}}}*/ 34 /*FUNCTION KML_Overlay::~KML_Overlay(){{{ 1*/34 /*FUNCTION KML_Overlay::~KML_Overlay(){{{*/ 35 35 KML_Overlay::~KML_Overlay(){ 36 36 … … 44 44 45 45 /*Other*/ 46 /*FUNCTION KML_Overlay::Echo {{{ 1*/46 /*FUNCTION KML_Overlay::Echo {{{*/ 47 47 void KML_Overlay::Echo(){ 48 48 … … 59 59 /*}}}*/ 60 60 61 /*FUNCTION KML_Overlay::DeepEcho {{{ 1*/61 /*FUNCTION KML_Overlay::DeepEcho {{{*/ 62 62 void KML_Overlay::DeepEcho(){ 63 63 … … 70 70 /*}}}*/ 71 71 72 /*FUNCTION KML_Overlay::DeepEcho {{{ 1*/72 /*FUNCTION KML_Overlay::DeepEcho {{{*/ 73 73 void KML_Overlay::DeepEcho(const char* indent){ 74 74 … … 92 92 /*}}}*/ 93 93 94 /*FUNCTION KML_Overlay::Write {{{ 1*/94 /*FUNCTION KML_Overlay::Write {{{*/ 95 95 void KML_Overlay::Write(FILE* filout,const char* indent){ 96 96 … … 113 113 /*}}}*/ 114 114 115 /*FUNCTION KML_Overlay::Read {{{ 1*/115 /*FUNCTION KML_Overlay::Read {{{*/ 116 116 void KML_Overlay::Read(FILE* fid,char* kstr){ 117 117 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Overlay.h ¶
r11202 r12365 9 9 10 10 /*Headers:*/ 11 /*{{{ 1*/11 /*{{{*/ 12 12 #include "../../include/include.h" 13 13 #include "../../shared/Exceptions/exceptions.h" … … 26 26 KML_Icon* icon; 27 27 28 /*KML_Overlay constructors, destructors {{{ 1*/28 /*KML_Overlay constructors, destructors {{{*/ 29 29 KML_Overlay(); 30 30 ~KML_Overlay(); 31 31 /*}}}*/ 32 /*Object virtual functions definitions:{{{ 1*/32 /*Object virtual functions definitions:{{{*/ 33 33 void Echo(); 34 34 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Placemark.cpp ¶
r11319 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_Placemark::KML_Placemark(){{{ 1*/23 /*FUNCTION KML_Placemark::KML_Placemark(){{{*/ 24 24 KML_Placemark::KML_Placemark(){ 25 25 … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION KML_Placemark::~KML_Placemark(){{{ 1*/30 /*FUNCTION KML_Placemark::~KML_Placemark(){{{*/ 31 31 KML_Placemark::~KML_Placemark(){ 32 32 … … 40 40 41 41 /*Other*/ 42 /*FUNCTION KML_Placemark::Echo {{{ 1*/42 /*FUNCTION KML_Placemark::Echo {{{*/ 43 43 void KML_Placemark::Echo(){ 44 44 … … 53 53 } 54 54 /*}}}*/ 55 /*FUNCTION KML_Placemark::DeepEcho {{{ 1*/55 /*FUNCTION KML_Placemark::DeepEcho {{{*/ 56 56 void KML_Placemark::DeepEcho(){ 57 57 … … 63 63 } 64 64 /*}}}*/ 65 /*FUNCTION KML_Placemark::DeepEcho {{{ 1*/65 /*FUNCTION KML_Placemark::DeepEcho {{{*/ 66 66 void KML_Placemark::DeepEcho(const char* indent){ 67 67 … … 90 90 } 91 91 /*}}}*/ 92 /*FUNCTION KML_Placemark::Write {{{ 1*/92 /*FUNCTION KML_Placemark::Write {{{*/ 93 93 void KML_Placemark::Write(FILE* filout,const char* indent){ 94 94 … … 117 117 } 118 118 /*}}}*/ 119 /*FUNCTION KML_Placemark::Read {{{ 1*/119 /*FUNCTION KML_Placemark::Read {{{*/ 120 120 void KML_Placemark::Read(FILE* fid,char* kstr){ 121 121 … … 189 189 } 190 190 /*}}}*/ 191 /*FUNCTION KML_Placemark::WriteExp {{{ 1*/191 /*FUNCTION KML_Placemark::WriteExp {{{*/ 192 192 void KML_Placemark::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 193 193 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Placemark.h ¶
r11202 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../../include/include.h" 11 11 #include "../../shared/Exceptions/exceptions.h" … … 23 23 DataSet* geometry; 24 24 25 /*KML_Placemark constructors, destructors {{{ 1*/25 /*KML_Placemark constructors, destructors {{{*/ 26 26 KML_Placemark(); 27 27 ~KML_Placemark(); 28 28 /*}}}*/ 29 /*Object virtual functions definitions:{{{ 1*/29 /*Object virtual functions definitions:{{{*/ 30 30 void Echo(); 31 31 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Point.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 22 22 23 23 /*Constructors/destructor/copy*/ 24 /*FUNCTION KML_Point::KML_Point(){{{ 1*/24 /*FUNCTION KML_Point::KML_Point(){{{*/ 25 25 KML_Point::KML_Point(){ 26 26 … … 34 34 } 35 35 /*}}}*/ 36 /*FUNCTION KML_Point::~KML_Point(){{{ 1*/36 /*FUNCTION KML_Point::~KML_Point(){{{*/ 37 37 KML_Point::~KML_Point(){ 38 38 … … 43 43 44 44 /*Other*/ 45 /*FUNCTION KML_Point::Echo {{{ 1*/45 /*FUNCTION KML_Point::Echo {{{*/ 46 46 void KML_Point::Echo(){ 47 47 … … 58 58 } 59 59 /*}}}*/ 60 /*FUNCTION KML_Point::DeepEcho {{{ 1*/60 /*FUNCTION KML_Point::DeepEcho {{{*/ 61 61 void KML_Point::DeepEcho(){ 62 62 … … 68 68 } 69 69 /*}}}*/ 70 /*FUNCTION KML_Point::DeepEcho {{{ 1*/70 /*FUNCTION KML_Point::DeepEcho {{{*/ 71 71 void KML_Point::DeepEcho(const char* indent){ 72 72 … … 83 83 } 84 84 /*}}}*/ 85 /*FUNCTION KML_Point::Write {{{ 1*/85 /*FUNCTION KML_Point::Write {{{*/ 86 86 void KML_Point::Write(FILE* filout,const char* indent){ 87 87 … … 103 103 } 104 104 /*}}}*/ 105 /*FUNCTION KML_Point::Read {{{ 1*/105 /*FUNCTION KML_Point::Read {{{*/ 106 106 void KML_Point::Read(FILE* fid,char* kstr){ 107 107 … … 158 158 } 159 159 /*}}}*/ 160 /*FUNCTION KML_Point::WriteExp {{{ 1*/160 /*FUNCTION KML_Point::WriteExp {{{*/ 161 161 void KML_Point::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 162 162 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Point.h ¶
r11202 r12365 9 9 10 10 /*Headers:*/ 11 /*{{{ 1*/11 /*{{{*/ 12 12 #include "../../include/include.h" 13 13 #include "../../shared/Exceptions/exceptions.h" … … 25 25 double coords[3]; 26 26 27 /*KML_Point constructors, destructors {{{ 1*/27 /*KML_Point constructors, destructors {{{*/ 28 28 KML_Point(); 29 29 ~KML_Point(); 30 30 /*}}}*/ 31 /*Object virtual functions definitions:{{{ 1*/31 /*Object virtual functions definitions:{{{*/ 32 32 void Echo(); 33 33 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_PolyStyle.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_PolyStyle::KML_PolyStyle(){{{ 1*/23 /*FUNCTION KML_PolyStyle::KML_PolyStyle(){{{*/ 24 24 KML_PolyStyle::KML_PolyStyle(){ 25 25 … … 29 29 } 30 30 /*}}}*/ 31 /*FUNCTION KML_PolyStyle::~KML_PolyStyle(){{{ 1*/31 /*FUNCTION KML_PolyStyle::~KML_PolyStyle(){{{*/ 32 32 KML_PolyStyle::~KML_PolyStyle(){ 33 33 … … 38 38 39 39 /*Other*/ 40 /*FUNCTION KML_PolyStyle::Echo {{{ 1*/40 /*FUNCTION KML_PolyStyle::Echo {{{*/ 41 41 void KML_PolyStyle::Echo(){ 42 42 … … 53 53 /*}}}*/ 54 54 55 /*FUNCTION KML_PolyStyle::DeepEcho {{{ 1*/55 /*FUNCTION KML_PolyStyle::DeepEcho {{{*/ 56 56 void KML_PolyStyle::DeepEcho(){ 57 57 … … 64 64 /*}}}*/ 65 65 66 /*FUNCTION KML_PolyStyle::DeepEcho {{{ 1*/66 /*FUNCTION KML_PolyStyle::DeepEcho {{{*/ 67 67 void KML_PolyStyle::DeepEcho(const char* indent){ 68 68 … … 80 80 /*}}}*/ 81 81 82 /*FUNCTION KML_PolyStyle::Write {{{ 1*/82 /*FUNCTION KML_PolyStyle::Write {{{*/ 83 83 void KML_PolyStyle::Write(FILE* filout,const char* indent){ 84 84 … … 99 99 /*}}}*/ 100 100 101 /*FUNCTION KML_PolyStyle::Read {{{ 1*/101 /*FUNCTION KML_PolyStyle::Read {{{*/ 102 102 void KML_PolyStyle::Read(FILE* fid,char* kstr){ 103 103 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_PolyStyle.h ¶
r11202 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../../include/include.h" 11 11 #include "../../shared/Exceptions/exceptions.h" … … 22 22 int outline; 23 23 24 /*KML_PolyStyle constructors, destructors {{{ 1*/24 /*KML_PolyStyle constructors, destructors {{{*/ 25 25 KML_PolyStyle(); 26 26 ~KML_PolyStyle(); 27 27 /*}}}*/ 28 /*Object virtual functions definitions:{{{ 1*/28 /*Object virtual functions definitions:{{{ */ 29 29 void Echo(); 30 30 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Polygon.cpp ¶
r11319 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_Polygon::KML_Polygon(){{{ 1*/23 /*FUNCTION KML_Polygon::KML_Polygon(){{{*/ 24 24 KML_Polygon::KML_Polygon(){ 25 25 … … 33 33 } 34 34 /*}}}*/ 35 /*FUNCTION KML_Polygon::~KML_Polygon(){{{ 1*/35 /*FUNCTION KML_Polygon::~KML_Polygon(){{{*/ 36 36 KML_Polygon::~KML_Polygon(){ 37 37 … … 50 50 51 51 /*Other*/ 52 /*FUNCTION KML_Polygon::Echo {{{ 1*/52 /*FUNCTION KML_Polygon::Echo {{{*/ 53 53 void KML_Polygon::Echo(){ 54 54 … … 67 67 } 68 68 /*}}}*/ 69 /*FUNCTION KML_Polygon::DeepEcho {{{ 1*/69 /*FUNCTION KML_Polygon::DeepEcho {{{*/ 70 70 void KML_Polygon::DeepEcho(){ 71 71 … … 77 77 } 78 78 /*}}}*/ 79 /*FUNCTION KML_Polygon::DeepEcho {{{ 1*/79 /*FUNCTION KML_Polygon::DeepEcho {{{*/ 80 80 void KML_Polygon::DeepEcho(const char* indent){ 81 81 … … 115 115 } 116 116 /*}}}*/ 117 /*FUNCTION KML_Polygon::Write {{{ 1*/117 /*FUNCTION KML_Polygon::Write {{{*/ 118 118 void KML_Polygon::Write(FILE* filout,const char* indent){ 119 119 … … 155 155 } 156 156 /*}}}*/ 157 /*FUNCTION KML_Polygon::Read {{{ 1*/157 /*FUNCTION KML_Polygon::Read {{{*/ 158 158 void KML_Polygon::Read(FILE* fid,char* kstr){ 159 159 … … 266 266 } 267 267 /*}}}*/ 268 /*FUNCTION KML_Polygon::WriteExp {{{ 1*/268 /*FUNCTION KML_Polygon::WriteExp {{{*/ 269 269 void KML_Polygon::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 270 270 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Polygon.h ¶
r11202 r12365 9 9 10 10 /*Headers:*/ 11 /*{{{ 1*/11 /*{{{*/ 12 12 #include "../../include/include.h" 13 13 #include "../../shared/Exceptions/exceptions.h" … … 29 29 DataSet* inner; 30 30 31 /*KML_Polygon constructors, destructors {{{ 1*/31 /*KML_Polygon constructors, destructors {{{*/ 32 32 KML_Polygon(); 33 33 ~KML_Polygon(); 34 34 /*}}}*/ 35 /*Object virtual functions definitions:{{{ 1*/35 /*Object virtual functions definitions:{{{*/ 36 36 void Echo(); 37 37 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Style.cpp ¶
r11319 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_Style::KML_Style(){{{ 1*/23 /*FUNCTION KML_Style::KML_Style(){{{*/ 24 24 KML_Style::KML_Style(){ 25 25 … … 33 33 } 34 34 /*}}}*/ 35 /*FUNCTION KML_Style::~KML_Style(){{{ 1*/35 /*FUNCTION KML_Style::~KML_Style(){{{*/ 36 36 KML_Style::~KML_Style(){ 37 37 … … 69 69 70 70 /*Other*/ 71 /*FUNCTION KML_Style::Echo {{{ 1*/71 /*FUNCTION KML_Style::Echo {{{*/ 72 72 void KML_Style::Echo(){ 73 73 … … 88 88 /*}}}*/ 89 89 90 /*FUNCTION KML_Style::DeepEcho {{{ 1*/90 /*FUNCTION KML_Style::DeepEcho {{{*/ 91 91 void KML_Style::DeepEcho(){ 92 92 … … 99 99 /*}}}*/ 100 100 101 /*FUNCTION KML_Style::DeepEcho {{{ 1*/101 /*FUNCTION KML_Style::DeepEcho {{{*/ 102 102 void KML_Style::DeepEcho(const char* indent){ 103 103 … … 140 140 /*}}}*/ 141 141 142 /*FUNCTION KML_Style::Write {{{ 1*/142 /*FUNCTION KML_Style::Write {{{*/ 143 143 void KML_Style::Write(FILE* filout,const char* indent){ 144 144 … … 175 175 /*}}}*/ 176 176 177 /*FUNCTION KML_Style::Read {{{ 1*/177 /*FUNCTION KML_Style::Read {{{*/ 178 178 void KML_Style::Read(FILE* fid,char* kstr){ 179 179 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Style.h ¶
r11202 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../../include/include.h" 11 11 #include "../../shared/Exceptions/exceptions.h" … … 28 28 void* list; 29 29 30 /*KML_Style constructors, destructors {{{ 1*/30 /*KML_Style constructors, destructors {{{*/ 31 31 KML_Style(); 32 32 ~KML_Style(); 33 33 /*}}}*/ 34 /*Object virtual functions definitions:{{{ 1*/34 /*Object virtual functions definitions:{{{*/ 35 35 void Echo(); 36 36 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_StyleSelector.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 20 20 21 21 /*Constructors/destructor/copy*/ 22 /*FUNCTION KML_StyleSelector::KML_StyleSelector(){{{ 1*/22 /*FUNCTION KML_StyleSelector::KML_StyleSelector(){{{*/ 23 23 KML_StyleSelector::KML_StyleSelector(){ 24 24 … … 27 27 } 28 28 /*}}}*/ 29 /*FUNCTION KML_StyleSelector::~KML_StyleSelector(){{{ 1*/29 /*FUNCTION KML_StyleSelector::~KML_StyleSelector(){{{*/ 30 30 KML_StyleSelector::~KML_StyleSelector(){ 31 31 … … 36 36 37 37 /*Other*/ 38 /*FUNCTION KML_StyleSelector::Echo {{{ 1*/38 /*FUNCTION KML_StyleSelector::Echo {{{*/ 39 39 void KML_StyleSelector::Echo(){ 40 40 … … 45 45 /*}}}*/ 46 46 47 /*FUNCTION KML_StyleSelector::DeepEcho {{{ 1*/47 /*FUNCTION KML_StyleSelector::DeepEcho {{{*/ 48 48 void KML_StyleSelector::DeepEcho(){ 49 49 … … 56 56 /*}}}*/ 57 57 58 /*FUNCTION KML_StyleSelector::DeepEcho {{{ 1*/58 /*FUNCTION KML_StyleSelector::DeepEcho {{{*/ 59 59 void KML_StyleSelector::DeepEcho(const char* indent){ 60 60 … … 65 65 /*}}}*/ 66 66 67 /*FUNCTION KML_StyleSelector::Write {{{ 1*/67 /*FUNCTION KML_StyleSelector::Write {{{*/ 68 68 void KML_StyleSelector::Write(FILE* filout,const char* indent){ 69 69 … … 74 74 /*}}}*/ 75 75 76 /*FUNCTION KML_StyleSelector::Read {{{ 1*/76 /*FUNCTION KML_StyleSelector::Read {{{*/ 77 77 void KML_StyleSelector::Read(FILE* fid,char* kstr){ 78 78 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_StyleSelector.h ¶
r11202 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../../include/include.h" 11 11 #include "../../shared/Exceptions/exceptions.h" … … 19 19 public: 20 20 21 /*KML_StyleSelector constructors, destructors {{{ 1*/21 /*KML_StyleSelector constructors, destructors {{{*/ 22 22 KML_StyleSelector(); 23 23 ~KML_StyleSelector(); 24 24 /*}}}*/ 25 /*Object virtual functions definitions:{{{ 1*/25 /*Object virtual functions definitions:{{{*/ 26 26 void Echo(); 27 27 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_SubStyle.cpp ¶
r11202 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 20 20 21 21 /*Constructors/destructor/copy*/ 22 /*FUNCTION KML_SubStyle::KML_SubStyle(){{{ 1*/22 /*FUNCTION KML_SubStyle::KML_SubStyle(){{{*/ 23 23 KML_SubStyle::KML_SubStyle(){ 24 24 … … 27 27 } 28 28 /*}}}*/ 29 /*FUNCTION KML_SubStyle::~KML_SubStyle(){{{ 1*/29 /*FUNCTION KML_SubStyle::~KML_SubStyle(){{{*/ 30 30 KML_SubStyle::~KML_SubStyle(){ 31 31 … … 36 36 37 37 /*Other*/ 38 /*FUNCTION KML_SubStyle::Echo {{{ 1*/38 /*FUNCTION KML_SubStyle::Echo {{{*/ 39 39 void KML_SubStyle::Echo(){ 40 40 … … 45 45 /*}}}*/ 46 46 47 /*FUNCTION KML_SubStyle::DeepEcho {{{ 1*/47 /*FUNCTION KML_SubStyle::DeepEcho {{{*/ 48 48 void KML_SubStyle::DeepEcho(){ 49 49 … … 56 56 /*}}}*/ 57 57 58 /*FUNCTION KML_SubStyle::DeepEcho {{{ 1*/58 /*FUNCTION KML_SubStyle::DeepEcho {{{*/ 59 59 void KML_SubStyle::DeepEcho(const char* indent){ 60 60 … … 65 65 /*}}}*/ 66 66 67 /*FUNCTION KML_SubStyle::Write {{{ 1*/67 /*FUNCTION KML_SubStyle::Write {{{*/ 68 68 void KML_SubStyle::Write(FILE* filout,const char* indent){ 69 69 … … 74 74 /*}}}*/ 75 75 76 /*FUNCTION KML_SubStyle::Read {{{ 1*/76 /*FUNCTION KML_SubStyle::Read {{{*/ 77 77 void KML_SubStyle::Read(FILE* fid,char* kstr){ 78 78 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_SubStyle.h ¶
r11202 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../../include/include.h" 11 11 #include "../../shared/Exceptions/exceptions.h" … … 19 19 public: 20 20 21 /*KML_SubStyle constructors, destructors {{{ 1*/21 /*KML_SubStyle constructors, destructors {{{*/ 22 22 KML_SubStyle(); 23 23 ~KML_SubStyle(); 24 24 /*}}}*/ 25 /*Object virtual functions definitions:{{{ 1*/25 /*Object virtual functions definitions:{{{*/ 26 26 void Echo(); 27 27 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Unknown.cpp ¶
r11406 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_Unknown::KML_Unknown(){{{ 1*/23 /*FUNCTION KML_Unknown::KML_Unknown(){{{*/ 24 24 KML_Unknown::KML_Unknown(){ 25 25 … … 29 29 } 30 30 /*}}}*/ 31 /*FUNCTION KML_Unknown::~KML_Unknown(){{{ 1*/31 /*FUNCTION KML_Unknown::~KML_Unknown(){{{*/ 32 32 KML_Unknown::~KML_Unknown(){ 33 33 … … 39 39 40 40 /*Other*/ 41 /*FUNCTION KML_Unknown::Echo {{{ 1*/41 /*FUNCTION KML_Unknown::Echo {{{*/ 42 42 void KML_Unknown::Echo(){ 43 43 … … 55 55 } 56 56 /*}}}*/ 57 /*FUNCTION KML_Unknown::DeepEcho {{{ 1*/57 /*FUNCTION KML_Unknown::DeepEcho {{{*/ 58 58 void KML_Unknown::DeepEcho(){ 59 59 … … 65 65 } 66 66 /*}}}*/ 67 /*FUNCTION KML_Unknown::DeepEcho {{{ 1*/67 /*FUNCTION KML_Unknown::DeepEcho {{{*/ 68 68 void KML_Unknown::DeepEcho(const char* indent){ 69 69 … … 95 95 } 96 96 /*}}}*/ 97 /*FUNCTION KML_Unknown::Write {{{ 1*/97 /*FUNCTION KML_Unknown::Write {{{*/ 98 98 void KML_Unknown::Write(FILE* filout,const char* indent){ 99 99 … … 127 127 } 128 128 /*}}}*/ 129 /*FUNCTION KML_Unknown::Read {{{ 1*/129 /*FUNCTION KML_Unknown::Read {{{*/ 130 130 void KML_Unknown::Read(FILE* fid,char* kstr){ 131 131 -
TabularUnified issm/trunk-jpl/src/c/objects/KML/KML_Unknown.h ¶
r11295 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../../include/include.h" 11 11 #include "../../shared/Exceptions/exceptions.h" … … 22 22 char* value; 23 23 24 /*KML_Unknown constructors, destructors {{{ 1*/24 /*KML_Unknown constructors, destructors {{{*/ 25 25 KML_Unknown(); 26 26 ~KML_Unknown(); 27 27 /*}}}*/ 28 /*Object virtual functions definitions:{{{ 1*/28 /*Object virtual functions definitions:{{{*/ 29 29 void Echo(); 30 30 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/Kriging/ExponentialVariogram.cpp ¶
r12289 r12365 17 17 18 18 /*ExponentialVariogram constructors and destructor*/ 19 /*FUNCTION ExponentialVariogram::ExponentialVariogram(){{{ 1*/19 /*FUNCTION ExponentialVariogram::ExponentialVariogram(){{{*/ 20 20 ExponentialVariogram::ExponentialVariogram(){ 21 21 this->nugget = 0.2; … … 25 25 } 26 26 /*}}}*/ 27 /*FUNCTION ExponentialVariogram::ExponentialVariogram(Options* options){{{ 1*/27 /*FUNCTION ExponentialVariogram::ExponentialVariogram(Options* options){{{*/ 28 28 ExponentialVariogram::ExponentialVariogram(Options* options){ 29 29 … … 42 42 } 43 43 /*}}}*/ 44 /*FUNCTION ExponentialVariogram::~ExponentialVariogram(){{{ 1*/44 /*FUNCTION ExponentialVariogram::~ExponentialVariogram(){{{*/ 45 45 ExponentialVariogram::~ExponentialVariogram(){ 46 46 return; … … 49 49 50 50 /*Object virtual functions definitions:*/ 51 /*FUNCTION ExponentialVariogram::Echo {{{ 1*/51 /*FUNCTION ExponentialVariogram::Echo {{{*/ 52 52 void ExponentialVariogram::Echo(void){ 53 53 printf("ExponentialVariogram\n"); … … 59 59 60 60 /*Variogram function*/ 61 /*FUNCTION ExponentialVariogram::Covariance{{{ 1*/61 /*FUNCTION ExponentialVariogram::Covariance{{{*/ 62 62 double ExponentialVariogram::Covariance(double deltax,double deltay){ 63 63 /*The covariance can be deduced from the variogram from the following … … 77 77 } 78 78 /*}}}*/ 79 /*FUNCTION ExponentialVariogram::SemiVariogram{{{ 1*/79 /*FUNCTION ExponentialVariogram::SemiVariogram{{{*/ 80 80 double ExponentialVariogram::SemiVariogram(double deltax,double deltay){ 81 81 /*http://en.wikipedia.org/wiki/Variogram*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Kriging/GaussianVariogram.cpp ¶
r12292 r12365 17 17 18 18 /*GaussianVariogram constructors and destructor*/ 19 /*FUNCTION GaussianVariogram::GaussianVariogram(){{{ 1*/19 /*FUNCTION GaussianVariogram::GaussianVariogram(){{{*/ 20 20 GaussianVariogram::GaussianVariogram(){ 21 21 this->nugget = 0.2; … … 25 25 } 26 26 /*}}}*/ 27 /*FUNCTION GaussianVariogram::GaussianVariogram(Options* options){{{ 1*/27 /*FUNCTION GaussianVariogram::GaussianVariogram(Options* options){{{*/ 28 28 GaussianVariogram::GaussianVariogram(Options* options){ 29 29 … … 42 42 } 43 43 /*}}}*/ 44 /*FUNCTION GaussianVariogram::~GaussianVariogram(){{{ 1*/44 /*FUNCTION GaussianVariogram::~GaussianVariogram(){{{*/ 45 45 GaussianVariogram::~GaussianVariogram(){ 46 46 return; … … 49 49 50 50 /*Object virtual functions definitions:*/ 51 /*FUNCTION GaussianVariogram::Echo {{{ 1*/51 /*FUNCTION GaussianVariogram::Echo {{{*/ 52 52 void GaussianVariogram::Echo(void){ 53 53 printf("GaussianVariogram\n"); … … 59 59 60 60 /*Variogram function*/ 61 /*FUNCTION GaussianVariogram::Covariance{{{ 1*/61 /*FUNCTION GaussianVariogram::Covariance{{{*/ 62 62 double GaussianVariogram::Covariance(double deltax,double deltay){ 63 63 /*The covariance can be deduced from the variogram from the following … … 80 80 } 81 81 /*}}}*/ 82 /*FUNCTION GaussianVariogram::SemiVariogram{{{ 1*/82 /*FUNCTION GaussianVariogram::SemiVariogram{{{*/ 83 83 double GaussianVariogram::SemiVariogram(double deltax,double deltay){ 84 84 /*http://en.wikipedia.org/wiki/Variogram*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Kriging/Observation.cpp ¶
r12273 r12365 7 7 8 8 /*Observation constructors and destructor*/ 9 /*FUNCTION Observation::Observation(){{{ 1*/9 /*FUNCTION Observation::Observation(){{{*/ 10 10 Observation::Observation(){ 11 11 return; 12 12 } 13 13 /*}}}*/ 14 /*FUNCTION Observation::Observation(double x,double y,int xi,int yi,int index,double value){{{ 1*/14 /*FUNCTION Observation::Observation(double x,double y,int xi,int yi,int index,double value){{{*/ 15 15 Observation::Observation(double x_in,double y_in,int xi_in,int yi_in,int index_in,double value_in){ 16 16 … … 25 25 } 26 26 /*}}}*/ 27 /*FUNCTION Observation::~Observation(){{{ 1*/27 /*FUNCTION Observation::~Observation(){{{*/ 28 28 Observation::~Observation(){ 29 29 return; … … 32 32 33 33 /*Object virtual functions definitions:*/ 34 /*FUNCTION Observation::Echo {{{ 1*/34 /*FUNCTION Observation::Echo {{{*/ 35 35 void Observation::Echo(void){ 36 36 … … 49 49 50 50 /*Observations functions*/ 51 /*FUNCTION Observation::WriteXYObs(double* px,double* py,double* pobs){{{ 1*/51 /*FUNCTION Observation::WriteXYObs(double* px,double* py,double* pobs){{{*/ 52 52 void Observation::WriteXYObs(double* px,double* py,double* pobs){ 53 53 *px = this->x; -
TabularUnified issm/trunk-jpl/src/c/objects/Kriging/PowerVariogram.cpp ¶
r12289 r12365 17 17 18 18 /*PowerVariogram constructors and destructor*/ 19 /*FUNCTION PowerVariogram::PowerVariogram(){{{ 1*/19 /*FUNCTION PowerVariogram::PowerVariogram(){{{*/ 20 20 PowerVariogram::PowerVariogram(){ 21 21 this->nugget = 0.2; … … 25 25 } 26 26 /*}}}*/ 27 /*FUNCTION PowerVariogram::PowerVariogram(Options* options){{{ 1*/27 /*FUNCTION PowerVariogram::PowerVariogram(Options* options){{{*/ 28 28 PowerVariogram::PowerVariogram(Options* options){ 29 29 … … 43 43 } 44 44 /*}}}*/ 45 /*FUNCTION PowerVariogram::~PowerVariogram(){{{ 1*/45 /*FUNCTION PowerVariogram::~PowerVariogram(){{{*/ 46 46 PowerVariogram::~PowerVariogram(){ 47 47 return; … … 50 50 51 51 /*Object virtual functions definitions:*/ 52 /*FUNCTION PowerVariogram::Echo {{{ 1*/52 /*FUNCTION PowerVariogram::Echo {{{*/ 53 53 void PowerVariogram::Echo(void){ 54 54 printf("PowerVariogram\n"); … … 60 60 61 61 /*Variogram function*/ 62 /*FUNCTION PowerVariogram::Covariance{{{ 1*/62 /*FUNCTION PowerVariogram::Covariance{{{*/ 63 63 double PowerVariogram::Covariance(double deltax,double deltay){ 64 64 /*The covariance can be deduced from the variogram from the following … … 78 78 } 79 79 /*}}}*/ 80 /*FUNCTION PowerVariogram::SemiVariogram{{{ 1*/80 /*FUNCTION PowerVariogram::SemiVariogram{{{*/ 81 81 double PowerVariogram::SemiVariogram(double deltax,double deltay){ 82 82 /*http://en.wikipedia.org/wiki/Variogram*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Kriging/Quadtree.cpp ¶
r12298 r12365 1 1 #include "../objects.h" 2 /*DOCUMENTATION What is a Quadtree? {{{ 12 /*DOCUMENTATION What is a Quadtree? {{{ 3 3 * A Quadtree is a very simple way to group vertices according 4 4 * to their locations. A square that holds all the points of the mesh … … 46 46 * Using binaries is therefore very easy to locate a vertex in a box: 47 47 * we just need to look at the bits from the left to the right (See ::Add) 48 }}} 1*/49 /*MACROS {{{ 1*/48 }}}*/ 49 /*MACROS {{{*/ 50 50 /* 51 51 * … … 80 80 81 81 /*Constructors/Destructors*/ 82 /*FUNCTION Quadtree::Quadtree(){{{ 1*/82 /*FUNCTION Quadtree::Quadtree(){{{*/ 83 83 Quadtree::Quadtree(){ 84 84 _error_("Constructor not supported"); 85 85 86 86 } 87 /*}}} 1*/88 /*FUNCTION Quadtree::Quadtree(double xmin,double xmax,double ymin,double ymax,int maxdepth){{{ 1*/87 /*}}}*/ 88 /*FUNCTION Quadtree::Quadtree(double xmin,double xmax,double ymin,double ymax,int maxdepth){{{*/ 89 89 Quadtree::Quadtree(double xmin,double xmax,double ymin,double ymax,int maxdepth){ 90 90 … … 104 104 this->root=NewQuadtreeBox(xmin+length/2,ymin+length/2,length); 105 105 } 106 /*}}} 1*/107 /*FUNCTION Quadtree::~Quadtree(){{{ 1*/106 /*}}}*/ 107 /*FUNCTION Quadtree::~Quadtree(){{{*/ 108 108 Quadtree::~Quadtree(){ 109 109 … … 112 112 113 113 } 114 /*}}} 1*/114 /*}}}*/ 115 115 116 116 /*Methods*/ 117 /*FUNCTION Quadtree::Add{{{ 1*/117 /*FUNCTION Quadtree::Add{{{*/ 118 118 void Quadtree::Add(Observation* observation){ 119 119 … … 198 198 199 199 }/*}}}*/ 200 /*FUNCTION Quadtree::AddAndAverage{{{ 1*/200 /*FUNCTION Quadtree::AddAndAverage{{{*/ 201 201 void Quadtree::AddAndAverage(double x,double y,double value){ 202 202 … … 250 250 } 251 251 }/*}}}*/ 252 /*FUNCTION Quadtree::ClosestObs{{{ 1*/252 /*FUNCTION Quadtree::ClosestObs{{{*/ 253 253 void Quadtree::ClosestObs(int *pindex,double x,double y){ 254 254 … … 293 293 *pindex=index; 294 294 }/*}}}*/ 295 /*FUNCTION Quadtree::Echo{{{ 1*/295 /*FUNCTION Quadtree::Echo{{{*/ 296 296 void Quadtree::Echo(void){ 297 297 … … 303 303 304 304 }/*}}}*/ 305 /*FUNCTION Quadtree::DeepEcho{{{ 1*/305 /*FUNCTION Quadtree::DeepEcho{{{*/ 306 306 void Quadtree::DeepEcho(void){ 307 307 … … 314 314 315 315 }/*}}}*/ 316 /*FUNCTION Quadtree::IntergerCoordinates{{{ 1*/316 /*FUNCTION Quadtree::IntergerCoordinates{{{*/ 317 317 void Quadtree::IntergerCoordinates(int *xi,int *yi,double x,double y){ 318 318 … … 338 338 *yi=int(coefficient*(y - ymin)); 339 339 }/*}}}*/ 340 /*FUNCTION Quadtree::NewQuadtreeBox(double xcenter,double ycenter,double length){{{ 1*/340 /*FUNCTION Quadtree::NewQuadtreeBox(double xcenter,double ycenter,double length){{{*/ 341 341 Quadtree::QuadtreeBox* Quadtree::NewQuadtreeBox(double xcenter,double ycenter,double length){ 342 342 … … 362 362 return newbox; 363 363 }/*}}}*/ 364 /*FUNCTION Quadtree::NewQuadtreeBox(QuadtreeBox* master,int index) {{{ 1*/364 /*FUNCTION Quadtree::NewQuadtreeBox(QuadtreeBox* master,int index) {{{*/ 365 365 Quadtree::QuadtreeBox* Quadtree::NewQuadtreeBox(QuadtreeBox* master,int index){ 366 366 … … 407 407 return newbox; 408 408 }/*}}}*/ 409 /*FUNCTION Quadtree::QuadtreeDepth{{{ 1*/409 /*FUNCTION Quadtree::QuadtreeDepth{{{*/ 410 410 void Quadtree::QuadtreeDepth(int* A,int xi,int yi){ 411 411 … … 435 435 *A=level; 436 436 }/*}}}*/ 437 /*FUNCTION Quadtree::QuadtreeDepth2{{{ 1*/437 /*FUNCTION Quadtree::QuadtreeDepth2{{{*/ 438 438 void Quadtree::QuadtreeDepth2(int* A,int xi,int yi){ 439 439 … … 488 488 *A=level; 489 489 }/*}}}*/ 490 /*FUNCTION Quadtree::RangeSearch{{{ 1*/490 /*FUNCTION Quadtree::RangeSearch{{{*/ 491 491 void Quadtree::RangeSearch(int **pindices,int *pnobs,double x,double y,double range){ 492 492 … … 508 508 509 509 /*QuadtreeBox methos*/ 510 /*FUNCTION QuadtreeBox::Echo{{{ 1*/510 /*FUNCTION QuadtreeBox::Echo{{{*/ 511 511 void Quadtree::QuadtreeBox::Echo(void){ 512 512 … … 518 518 519 519 }/*}}}*/ 520 /*FUNCTION QuadtreeBox::IsWithinRange{{{ 1*/520 /*FUNCTION QuadtreeBox::IsWithinRange{{{*/ 521 521 int Quadtree::QuadtreeBox::IsWithinRange(double x,double y,double range){ 522 522 … … 537 537 538 538 }/*}}}*/ 539 /*FUNCTION QuadtreeBox::RangeSearch{{{ 1*/539 /*FUNCTION QuadtreeBox::RangeSearch{{{*/ 540 540 void Quadtree::QuadtreeBox::RangeSearch(int* indices,int *pnobs,double x,double y,double range){ 541 541 … … 579 579 *pnobs=nobs; 580 580 }/*}}}*/ 581 /*FUNCTION QuadtreeBox::WriteObservations{{{ 1*/581 /*FUNCTION QuadtreeBox::WriteObservations{{{*/ 582 582 void Quadtree::QuadtreeBox::WriteObservations(int* indices,int *pnobs){ 583 583 -
TabularUnified issm/trunk-jpl/src/c/objects/Kriging/SphericalVariogram.cpp ¶
r12289 r12365 17 17 18 18 /*SphericalVariogram constructors and destructor*/ 19 /*FUNCTION SphericalVariogram::SphericalVariogram(){{{ 1*/19 /*FUNCTION SphericalVariogram::SphericalVariogram(){{{*/ 20 20 SphericalVariogram::SphericalVariogram(){ 21 21 this->nugget = 0.2; … … 25 25 } 26 26 /*}}}*/ 27 /*FUNCTION SphericalVariogram::SphericalVariogram(Options* options){{{ 1*/27 /*FUNCTION SphericalVariogram::SphericalVariogram(Options* options){{{*/ 28 28 SphericalVariogram::SphericalVariogram(Options* options){ 29 29 … … 42 42 } 43 43 /*}}}*/ 44 /*FUNCTION SphericalVariogram::~SphericalVariogram(){{{ 1*/44 /*FUNCTION SphericalVariogram::~SphericalVariogram(){{{*/ 45 45 SphericalVariogram::~SphericalVariogram(){ 46 46 return; … … 49 49 50 50 /*Object virtual functions definitions:*/ 51 /*FUNCTION SphericalVariogram::Echo {{{ 1*/51 /*FUNCTION SphericalVariogram::Echo {{{*/ 52 52 void SphericalVariogram::Echo(void){ 53 53 printf("SphericalVariogram\n"); … … 59 59 60 60 /*Variogram function*/ 61 /*FUNCTION SphericalVariogram::Covariance{{{ 1*/61 /*FUNCTION SphericalVariogram::Covariance{{{*/ 62 62 double SphericalVariogram::Covariance(double deltax,double deltay){ 63 63 /*The covariance can be deduced from the variogram from the following … … 80 80 } 81 81 /*}}}*/ 82 /*FUNCTION SphericalVariogram::SemiVariogram{{{ 1*/82 /*FUNCTION SphericalVariogram::SemiVariogram{{{*/ 83 83 double SphericalVariogram::SemiVariogram(double deltax,double deltay){ 84 84 /*http://en.wikipedia.org/wiki/Variogram*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Loads/Friction.cpp ¶
r11198 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructors*/ 23 /*FUNCTION Friction::Friction() {{{ 1*/23 /*FUNCTION Friction::Friction() {{{*/ 24 24 Friction::Friction(){ 25 25 this->element_type=NULL; … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION Friction::Friction(const char* element_type, Inputs* inputs,Matpar* matpar,int analysis_type){{{ 1*/30 /*FUNCTION Friction::Friction(const char* element_type, Inputs* inputs,Matpar* matpar,int analysis_type){{{*/ 31 31 Friction::Friction(const char* element_type_in,Inputs* inputs_in,Matpar* matpar_in, int in_analysis_type){ 32 32 … … 39 39 } 40 40 /*}}}*/ 41 /*FUNCTION Friction::~Friction() {{{ 1*/41 /*FUNCTION Friction::~Friction() {{{*/ 42 42 Friction::~Friction(){ 43 43 xfree((void**)&element_type); … … 46 46 47 47 /*methods: */ 48 /*FUNCTION Friction::Echo {{{ 1*/48 /*FUNCTION Friction::Echo {{{*/ 49 49 void Friction::Echo(void){ 50 50 printf("Friction:\n"); … … 55 55 } 56 56 /*}}}*/ 57 /*FUNCTION Friction::GetAlpha2(double* palpha2, GaussTria* gauss,int vxenum,int vyenum,int vzenum){{{ 1*/57 /*FUNCTION Friction::GetAlpha2(double* palpha2, GaussTria* gauss,int vxenum,int vyenum,int vzenum){{{*/ 58 58 void Friction::GetAlpha2(double* palpha2, GaussTria* gauss,int vxenum,int vyenum,int vzenum){ 59 59 … … 119 119 } 120 120 /*}}}*/ 121 /*FUNCTION Friction::GetAlpha2(double* palpha2, GaussPenta* gauss,int vxenum,int vyenum,int vzenum){{{ 1*/121 /*FUNCTION Friction::GetAlpha2(double* palpha2, GaussPenta* gauss,int vxenum,int vyenum,int vzenum){{{*/ 122 122 void Friction::GetAlpha2(double* palpha2, GaussPenta* gauss,int vxenum,int vyenum,int vzenum){ 123 123 … … 183 183 } 184 184 /*}}}*/ 185 /*FUNCTION Friction::GetAlphaComplement(double* palpha_complement, GaussTria* gauss,int vxenum,int vyenum,int vzenum) {{{ 1*/185 /*FUNCTION Friction::GetAlphaComplement(double* palpha_complement, GaussTria* gauss,int vxenum,int vyenum,int vzenum) {{{*/ 186 186 void Friction::GetAlphaComplement(double* palpha_complement, GaussTria* gauss,int vxenum,int vyenum,int vzenum){ 187 187 … … 249 249 } 250 250 /*}}}*/ 251 /*FUNCTION Friction::GetAlphaComplement(double* palpha_complement, GaussPenta* gauss,int vxenum,int vyenum,int vzenum) {{{ 1*/251 /*FUNCTION Friction::GetAlphaComplement(double* palpha_complement, GaussPenta* gauss,int vxenum,int vyenum,int vzenum) {{{*/ 252 252 void Friction::GetAlphaComplement(double* palpha_complement, GaussPenta* gauss,int vxenum,int vyenum,int vzenum){ 253 253 … … 315 315 } 316 316 /*}}}*/ 317 /*FUNCTION Friction::GetInputValue{{{ 1*/317 /*FUNCTION Friction::GetInputValue{{{*/ 318 318 void Friction::GetInputValue(double* pvalue,GaussTria* gauss,int enum_type){ 319 319 … … 324 324 } 325 325 /*}}}*/ 326 /*FUNCTION Friction::GetInputValue{{{ 1*/326 /*FUNCTION Friction::GetInputValue{{{*/ 327 327 void Friction::GetInputValue(double* pvalue,GaussPenta* gauss,int enum_type){ 328 328 -
TabularUnified issm/trunk-jpl/src/c/objects/Loads/Friction.h ¶
r11198 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 class Inputs; 11 11 class Matpar; -
TabularUnified issm/trunk-jpl/src/c/objects/Loads/Icefront.cpp ¶
r12014 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 24 24 25 25 /*Icefront constructors and destructor*/ 26 /*FUNCTION Icefront::Icefront() {{{ 1*/26 /*FUNCTION Icefront::Icefront() {{{*/ 27 27 Icefront::Icefront(){ 28 28 … … 38 38 } 39 39 /*}}}*/ 40 /*FUNCTION Icefront::Icefront(int id, int i, IoModel* iomodel,int analysis_type) {{{ 1*/40 /*FUNCTION Icefront::Icefront(int id, int i, IoModel* iomodel,int analysis_type) {{{*/ 41 41 Icefront::Icefront(int icefront_id,int i, IoModel* iomodel,int in_icefront_type, int in_analysis_type){ 42 42 … … 114 114 115 115 /*}}}*/ 116 /*FUNCTION Icefront::~Icefront() {{{ 1*/116 /*FUNCTION Icefront::~Icefront() {{{*/ 117 117 Icefront::~Icefront(){ 118 118 delete inputs; … … 125 125 126 126 /*Object virtual functions definitions:*/ 127 /*FUNCTION Icefront::Echo {{{ 1*/127 /*FUNCTION Icefront::Echo {{{*/ 128 128 void Icefront::Echo(void){ 129 129 printf("Icefront:\n"); … … 139 139 } 140 140 /*}}}*/ 141 /*FUNCTION Icefront::DeepEcho{{{ 1*/141 /*FUNCTION Icefront::DeepEcho{{{*/ 142 142 void Icefront::DeepEcho(void){ 143 143 … … 154 154 } 155 155 /*}}}*/ 156 /*FUNCTION Icefront::Id {{{ 1*/156 /*FUNCTION Icefront::Id {{{*/ 157 157 int Icefront::Id(void){ return id; } 158 158 /*}}}*/ 159 /*FUNCTION Icefront::MyRank {{{ 1*/159 /*FUNCTION Icefront::MyRank {{{*/ 160 160 int Icefront::MyRank(void){ 161 161 extern int my_rank; … … 163 163 } 164 164 /*}}}*/ 165 /*FUNCTION Icefront::ObjectEnum{{{ 1*/165 /*FUNCTION Icefront::ObjectEnum{{{*/ 166 166 int Icefront::ObjectEnum(void){ 167 167 … … 170 170 } 171 171 /*}}}*/ 172 /*FUNCTION Icefront::copy {{{ 1*/172 /*FUNCTION Icefront::copy {{{*/ 173 173 Object* Icefront::copy() { 174 174 … … 205 205 206 206 /*Load virtual functions definitions:*/ 207 /*FUNCTION Icefront::Configure {{{ 1*/207 /*FUNCTION Icefront::Configure {{{*/ 208 208 void Icefront::Configure(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){ 209 209 … … 223 223 } 224 224 /*}}}*/ 225 /*FUNCTION Icefront::SetCurrentConfiguration {{{ 1*/225 /*FUNCTION Icefront::SetCurrentConfiguration {{{*/ 226 226 void Icefront::SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){ 227 227 } 228 228 /*}}}*/ 229 /*FUNCTION Icefront::CreateKMatrix {{{ 1*/229 /*FUNCTION Icefront::CreateKMatrix {{{*/ 230 230 void Icefront::CreateKMatrix(Matrix* Kff, Matrix* Kfs){ 231 231 … … 235 235 } 236 236 /*}}}*/ 237 /*FUNCTION Icefront::CreatePVector {{{ 1*/237 /*FUNCTION Icefront::CreatePVector {{{*/ 238 238 void Icefront::CreatePVector(Vector* pf){ 239 239 240 240 /*Checks in debugging mode*/ 241 /*{{{ 2*/241 /*{{{*/ 242 242 _assert_(nodes); 243 243 _assert_(element); … … 273 273 } 274 274 /*}}}*/ 275 /*FUNCTION Icefront::CreateJacobianMatrix{{{ 1*/275 /*FUNCTION Icefront::CreateJacobianMatrix{{{*/ 276 276 void Icefront::CreateJacobianMatrix(Matrix* Jff){ 277 277 this->CreateKMatrix(Jff,NULL); 278 278 } 279 /*}}} 1*/280 /*FUNCTION Icefront::PenaltyCreateKMatrix {{{ 1*/279 /*}}}*/ 280 /*FUNCTION Icefront::PenaltyCreateKMatrix {{{*/ 281 281 void Icefront::PenaltyCreateKMatrix(Matrix* Kff, Matrix* Kfs, double kmax){ 282 282 /*do nothing: */ … … 284 284 } 285 285 /*}}}*/ 286 /*FUNCTION Icefront::PenaltyCreatePVector{{{ 1*/286 /*FUNCTION Icefront::PenaltyCreatePVector{{{*/ 287 287 void Icefront::PenaltyCreatePVector(Vector* pf,double kmax){ 288 288 /*do nothing: */ … … 290 290 } 291 291 /*}}}*/ 292 /*FUNCTION Icefront::PenaltyCreateJacobianMatrix{{{ 1*/292 /*FUNCTION Icefront::PenaltyCreateJacobianMatrix{{{*/ 293 293 void Icefront::PenaltyCreateJacobianMatrix(Matrix* Jff,double kmax){ 294 294 this->PenaltyCreateKMatrix(Jff,NULL,kmax); 295 295 } 296 /*}}} 1*/297 /*FUNCTION Icefront::InAnalysis{{{ 1*/296 /*}}}*/ 297 /*FUNCTION Icefront::InAnalysis{{{*/ 298 298 bool Icefront::InAnalysis(int in_analysis_type){ 299 299 if (in_analysis_type==this->analysis_type)return true; … … 303 303 304 304 /*Update virtual functions definitions:*/ 305 /*FUNCTION Icefront::InputUpdateFromVector(double* vector, int name, int type) {{{ 1*/305 /*FUNCTION Icefront::InputUpdateFromVector(double* vector, int name, int type) {{{*/ 306 306 void Icefront::InputUpdateFromVector(double* vector, int name, int type){ 307 307 /*Nothing updated yet*/ 308 308 } 309 309 /*}}}*/ 310 /*FUNCTION Icefront::InputUpdateFromVector(int* vector, int name, int type) {{{ 1*/310 /*FUNCTION Icefront::InputUpdateFromVector(int* vector, int name, int type) {{{*/ 311 311 void Icefront::InputUpdateFromVector(int* vector, int name, int type){ 312 312 /*Nothing updated yet*/ 313 313 } 314 314 /*}}}*/ 315 /*FUNCTION Icefront::InputUpdateFromVector(bool* vector, int name, int type) {{{ 1*/315 /*FUNCTION Icefront::InputUpdateFromVector(bool* vector, int name, int type) {{{*/ 316 316 void Icefront::InputUpdateFromVector(bool* vector, int name, int type){ 317 317 /*Nothing updated yet*/ 318 318 } 319 319 /*}}}*/ 320 /*FUNCTION Icefront::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type) {{{ 1*/320 /*FUNCTION Icefront::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type) {{{*/ 321 321 void Icefront::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type){ 322 322 /*Nothing updated yet*/ 323 323 } 324 324 /*}}}*/ 325 /*FUNCTION Icefront::InputUpdateFromVectorDakota(double* vector, int name, int type) {{{ 1*/325 /*FUNCTION Icefront::InputUpdateFromVectorDakota(double* vector, int name, int type) {{{*/ 326 326 void Icefront::InputUpdateFromVectorDakota(double* vector, int name, int type){ 327 327 /*Nothing updated yet*/ 328 328 } 329 329 /*}}}*/ 330 /*FUNCTION Icefront::InputUpdateFromVectorDakota(int* vector, int name, int type) {{{ 1*/330 /*FUNCTION Icefront::InputUpdateFromVectorDakota(int* vector, int name, int type) {{{*/ 331 331 void Icefront::InputUpdateFromVectorDakota(int* vector, int name, int type){ 332 332 /*Nothing updated yet*/ 333 333 } 334 334 /*}}}*/ 335 /*FUNCTION Icefront::InputUpdateFromVectorDakota(bool* vector, int name, int type) {{{ 1*/335 /*FUNCTION Icefront::InputUpdateFromVectorDakota(bool* vector, int name, int type) {{{*/ 336 336 void Icefront::InputUpdateFromVectorDakota(bool* vector, int name, int type){ 337 337 /*Nothing updated yet*/ 338 338 } 339 339 /*}}}*/ 340 /*FUNCTION Icefront::InputUpdateFromConstant(double constant, int name) {{{ 1*/340 /*FUNCTION Icefront::InputUpdateFromConstant(double constant, int name) {{{*/ 341 341 void Icefront::InputUpdateFromConstant(double constant, int name){ 342 342 /*Nothing updated yet*/ 343 343 } 344 344 /*}}}*/ 345 /*FUNCTION Icefront::InputUpdateFromConstant(int constant, int name) {{{ 1*/345 /*FUNCTION Icefront::InputUpdateFromConstant(int constant, int name) {{{*/ 346 346 void Icefront::InputUpdateFromConstant(int constant, int name){ 347 347 /*Nothing updated yet*/ 348 348 } 349 349 /*}}}*/ 350 /*FUNCTION Icefront::InputUpdateFromConstant(bool constant, int name) {{{ 1*/350 /*FUNCTION Icefront::InputUpdateFromConstant(bool constant, int name) {{{*/ 351 351 void Icefront::InputUpdateFromConstant(bool constant, int name){ 352 352 /*Nothing updated yet*/ 353 353 } 354 354 /*}}}*/ 355 /*FUNCTION Icefront::InputUpdateFromSolution{{{ 1*/355 /*FUNCTION Icefront::InputUpdateFromSolution{{{*/ 356 356 void Icefront::InputUpdateFromSolution(double* solution){ 357 357 /*Nothing updated yet*/ … … 361 361 /*Icefront numerics: */ 362 362 #ifdef _HAVE_DIAGNOSTIC_ 363 /*FUNCTION Icefront::CreatePVectorDiagnosticHoriz {{{ 1*/363 /*FUNCTION Icefront::CreatePVectorDiagnosticHoriz {{{*/ 364 364 ElementVector* Icefront::CreatePVectorDiagnosticHoriz(void){ 365 365 … … 383 383 } 384 384 /*}}}*/ 385 /*FUNCTION Icefront::CreatePVectorDiagnosticMacAyeal2d{{{ 1*/385 /*FUNCTION Icefront::CreatePVectorDiagnosticMacAyeal2d{{{*/ 386 386 ElementVector* Icefront::CreatePVectorDiagnosticMacAyeal2d(void){ 387 387 … … 467 467 468 468 #ifdef _HAVE_CONTROL_ 469 /*FUNCTION Icefront::CreatePVectorAdjointHoriz {{{ 1*/469 /*FUNCTION Icefront::CreatePVectorAdjointHoriz {{{*/ 470 470 ElementVector* Icefront::CreatePVectorAdjointHoriz(void){ 471 471 … … 476 476 #endif 477 477 #ifdef _HAVE_3D_ 478 /*FUNCTION Icefront::CreatePVectorDiagnosticMacAyeal3d{{{ 1*/478 /*FUNCTION Icefront::CreatePVectorDiagnosticMacAyeal3d{{{*/ 479 479 ElementVector* Icefront::CreatePVectorDiagnosticMacAyeal3d(void){ 480 480 … … 504 504 } 505 505 /*}}}*/ 506 /*FUNCTION Icefront::CreatePVectorDiagnosticPattyn{{{ 1*/506 /*FUNCTION Icefront::CreatePVectorDiagnosticPattyn{{{*/ 507 507 ElementVector* Icefront::CreatePVectorDiagnosticPattyn(void){ 508 508 … … 581 581 } 582 582 /*}}}*/ 583 /*FUNCTION Icefront::CreatePVectorDiagnosticStokes{{{ 1*/583 /*FUNCTION Icefront::CreatePVectorDiagnosticStokes{{{*/ 584 584 ElementVector* Icefront::CreatePVectorDiagnosticStokes(void){ 585 585 … … 660 660 /*}}}*/ 661 661 #endif 662 /*FUNCTION Icefront::GetDofList {{{ 1*/662 /*FUNCTION Icefront::GetDofList {{{*/ 663 663 void Icefront::GetDofList(int** pdoflist,int approximation_enum,int setenum){ 664 664 … … 704 704 } 705 705 /*}}}*/ 706 /*FUNCTION Icefront::GetSegmentNormal {{{ 1*/706 /*FUNCTION Icefront::GetSegmentNormal {{{*/ 707 707 void Icefront:: GetSegmentNormal(double* normal,double xyz_list[4][3]){ 708 708 … … 721 721 } 722 722 /*}}}*/ 723 /*FUNCTION Icefront::GetQuadNormal {{{ 1*/723 /*FUNCTION Icefront::GetQuadNormal {{{*/ 724 724 void Icefront:: GetQuadNormal(double* normal,double xyz_list[4][3]){ 725 725 -
TabularUnified issm/trunk-jpl/src/c/objects/Loads/Icefront.h ¶
r12014 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "./Load.h" 11 11 class Hook; … … 39 39 Parameters* parameters; 40 40 41 /*Icefront constructors, destructors: {{{ 1*/41 /*Icefront constructors, destructors: {{{*/ 42 42 Icefront(); 43 43 Icefront(int icefront_id,int i, IoModel* iomodel,int in_icefront_type, int analysis_type); 44 44 ~Icefront(); 45 45 /*}}}*/ 46 /*Object virtual functions definitions:{{{ 1*/46 /*Object virtual functions definitions:{{{ */ 47 47 void Echo(); 48 48 void DeepEcho(); … … 52 52 Object* copy(); 53 53 /*}}}*/ 54 /*Update virtual functions definitions: {{{ 1*/54 /*Update virtual functions definitions: {{{*/ 55 55 void InputUpdateFromVector(double* vector, int name, int type); 56 56 void InputUpdateFromVector(int* vector, int name, int type); … … 66 66 void InputUpdateFromIoModel(int index, IoModel* iomodel){_error_("not implemented yet");}; 67 67 /*}}}*/ 68 /*Load virtual functions definitions: {{{ 1*/68 /*Load virtual functions definitions: {{{*/ 69 69 void Configure(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters); 70 70 void SetCurrentConfiguration(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters); … … 77 77 bool InAnalysis(int analysis_type); 78 78 /*}}}*/ 79 /*Load management: {{{ 1*/79 /*Load management: {{{*/ 80 80 void GetDofList(int** pdoflist,int approximation_enum,int setenum); 81 81 void GetSegmentNormal(double* normal,double xyz_list[2][3]); -
TabularUnified issm/trunk-jpl/src/c/objects/Loads/Load.h ¶
r11679 r12365 10 10 11 11 /*Headers:*/ 12 /*{{{ 1*/12 /*{{{*/ 13 13 class Object; 14 14 class Matrix; … … 26 26 virtual ~Load(){}; 27 27 28 /*Virtual functions: {{{ 1*/28 /*Virtual functions: {{{*/ 29 29 virtual void Configure(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters)=0; 30 30 virtual void SetCurrentConfiguration(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters)=0; -
TabularUnified issm/trunk-jpl/src/c/objects/Loads/Numericalflux.cpp ¶
r12014 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 24 24 25 25 /*Numericalflux constructors and destructor*/ 26 /*FUNCTION Numericalflux::Numericalflux(){{{ 1*/26 /*FUNCTION Numericalflux::Numericalflux(){{{*/ 27 27 Numericalflux::Numericalflux(){ 28 28 this->inputs=NULL; … … 34 34 } 35 35 /*}}}*/ 36 /*}}}*//*FUNCTION Numericalflux::Numericalflux(int id, int i, IoModel* iomodel, int analysis_type) {{{ 1*/36 /*}}}*//*FUNCTION Numericalflux::Numericalflux(int id, int i, IoModel* iomodel, int analysis_type) {{{*/ 37 37 Numericalflux::Numericalflux(int numericalflux_id,int i, IoModel* iomodel, int in_analysis_type){ 38 38 … … 139 139 } 140 140 /*}}}*/ 141 /*FUNCTION Numericalflux::~Numericalflux(){{{ 1*/141 /*FUNCTION Numericalflux::~Numericalflux(){{{*/ 142 142 Numericalflux::~Numericalflux(){ 143 143 delete inputs; … … 149 149 150 150 /*Object virtual functions definitions:*/ 151 /*FUNCTION Numericalflux::Echo {{{ 1*/151 /*FUNCTION Numericalflux::Echo {{{*/ 152 152 void Numericalflux::Echo(void){ 153 153 printf("Numericalflux:\n"); … … 160 160 } 161 161 /*}}}*/ 162 /*FUNCTION Numericalflux::DeepEcho {{{ 1*/162 /*FUNCTION Numericalflux::DeepEcho {{{*/ 163 163 void Numericalflux::DeepEcho(void){ 164 164 … … 178 178 } 179 179 /*}}}*/ 180 /*FUNCTION Numericalflux::Id {{{ 1*/180 /*FUNCTION Numericalflux::Id {{{*/ 181 181 int Numericalflux::Id(void){ 182 182 return id; 183 183 } 184 184 /*}}}*/ 185 /*FUNCTION Numericalflux::MyRank {{{ 1*/185 /*FUNCTION Numericalflux::MyRank {{{*/ 186 186 int Numericalflux::MyRank(void){ 187 187 extern int my_rank; … … 189 189 } 190 190 /*}}}*/ 191 /*FUNCTION Numericalflux::ObjectEnum{{{ 1*/191 /*FUNCTION Numericalflux::ObjectEnum{{{*/ 192 192 int Numericalflux::ObjectEnum(void){ 193 193 … … 196 196 } 197 197 /*}}}*/ 198 /*FUNCTION Numericalflux::copy {{{ 1*/198 /*FUNCTION Numericalflux::copy {{{*/ 199 199 Object* Numericalflux::copy() { 200 200 … … 228 228 229 229 /*Load virtual functions definitions:*/ 230 /*FUNCTION Numericalflux::Configure {{{ 1*/230 /*FUNCTION Numericalflux::Configure {{{*/ 231 231 void Numericalflux::Configure(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){ 232 232 … … 245 245 } 246 246 /*}}}*/ 247 /*FUNCTION Numericalflux::SetCurrentConfiguration {{{ 1*/247 /*FUNCTION Numericalflux::SetCurrentConfiguration {{{*/ 248 248 void Numericalflux::SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){ 249 249 250 250 } 251 251 /*}}}*/ 252 /*FUNCTION Numericalflux::CreateKMatrix {{{ 1*/252 /*FUNCTION Numericalflux::CreateKMatrix {{{*/ 253 253 void Numericalflux::CreateKMatrix(Matrix* Kff, Matrix* Kfs){ 254 254 … … 281 281 } 282 282 /*}}}*/ 283 /*FUNCTION Numericalflux::CreatePVector {{{ 1*/283 /*FUNCTION Numericalflux::CreatePVector {{{*/ 284 284 void Numericalflux::CreatePVector(Vector* pf){ 285 285 … … 311 311 } 312 312 /*}}}*/ 313 /*FUNCTION Numericalflux::PenaltyCreateKMatrix {{{ 1*/313 /*FUNCTION Numericalflux::PenaltyCreateKMatrix {{{*/ 314 314 void Numericalflux::PenaltyCreateKMatrix(Matrix* Kff, Matrix* Kfs,double kmax){ 315 315 … … 319 319 } 320 320 /*}}}*/ 321 /*FUNCTION Numericalflux::PenaltyCreatePVector{{{ 1*/321 /*FUNCTION Numericalflux::PenaltyCreatePVector{{{*/ 322 322 void Numericalflux::PenaltyCreatePVector(Vector* pf,double kmax){ 323 323 … … 327 327 } 328 328 /*}}}*/ 329 /*FUNCTION Numericalflux::InAnalysis{{{ 1*/329 /*FUNCTION Numericalflux::InAnalysis{{{*/ 330 330 bool Numericalflux::InAnalysis(int in_analysis_type){ 331 331 if (in_analysis_type==this->analysis_type) return true; … … 335 335 336 336 /*Numericalflux management*/ 337 /*FUNCTION Numericalflux::CreateKMatrixPrognostic{{{ 1*/337 /*FUNCTION Numericalflux::CreateKMatrixPrognostic{{{*/ 338 338 ElementMatrix* Numericalflux::CreateKMatrixPrognostic(void){ 339 339 … … 351 351 } 352 352 /*}}}*/ 353 /*FUNCTION Numericalflux::CreateKMatrixPrognosticInternal {{{ 1*/353 /*FUNCTION Numericalflux::CreateKMatrixPrognosticInternal {{{*/ 354 354 ElementMatrix* Numericalflux::CreateKMatrixPrognosticInternal(void){ 355 355 … … 416 416 } 417 417 /*}}}*/ 418 /*FUNCTION Numericalflux::CreateKMatrixPrognosticBoundary {{{ 1*/418 /*FUNCTION Numericalflux::CreateKMatrixPrognosticBoundary {{{*/ 419 419 ElementMatrix* Numericalflux::CreateKMatrixPrognosticBoundary(void){ 420 420 … … 488 488 } 489 489 /*}}}*/ 490 /*FUNCTION Numericalflux::CreateKMatrixBalancethickness{{{ 1*/490 /*FUNCTION Numericalflux::CreateKMatrixBalancethickness{{{*/ 491 491 ElementMatrix* Numericalflux::CreateKMatrixBalancethickness(void){ 492 492 … … 504 504 } 505 505 /*}}}*/ 506 /*FUNCTION Numericalflux::CreateKMatrixBalancethicknessInternal {{{ 1*/506 /*FUNCTION Numericalflux::CreateKMatrixBalancethicknessInternal {{{*/ 507 507 ElementMatrix* Numericalflux::CreateKMatrixBalancethicknessInternal(void){ 508 508 … … 568 568 } 569 569 /*}}}*/ 570 /*FUNCTION Numericalflux::CreateKMatrixBalancethicknessBoundary {{{ 1*/570 /*FUNCTION Numericalflux::CreateKMatrixBalancethicknessBoundary {{{*/ 571 571 ElementMatrix* Numericalflux::CreateKMatrixBalancethicknessBoundary(void){ 572 572 … … 639 639 } 640 640 /*}}}*/ 641 /*FUNCTION Numericalflux::CreateKMatrixAdjointBalancethickness{{{ 1*/641 /*FUNCTION Numericalflux::CreateKMatrixAdjointBalancethickness{{{*/ 642 642 ElementMatrix* Numericalflux::CreateKMatrixAdjointBalancethickness(void){ 643 643 … … 655 655 } 656 656 /*}}}*/ 657 /*FUNCTION Numericalflux::CreateKMatrixAdjointBalancethicknessInternal {{{ 1*/657 /*FUNCTION Numericalflux::CreateKMatrixAdjointBalancethicknessInternal {{{*/ 658 658 ElementMatrix* Numericalflux::CreateKMatrixAdjointBalancethicknessInternal(void){ 659 659 … … 663 663 } 664 664 /*}}}*/ 665 /*FUNCTION Numericalflux::CreateKMatrixAdjointBalancethicknessBoundary {{{ 1*/665 /*FUNCTION Numericalflux::CreateKMatrixAdjointBalancethicknessBoundary {{{*/ 666 666 ElementMatrix* Numericalflux::CreateKMatrixAdjointBalancethicknessBoundary(void){ 667 667 … … 671 671 } 672 672 /*}}}*/ 673 /*FUNCTION Numericalflux::CreatePVectorPrognostic{{{ 1*/673 /*FUNCTION Numericalflux::CreatePVectorPrognostic{{{*/ 674 674 ElementVector* Numericalflux::CreatePVectorPrognostic(void){ 675 675 … … 687 687 } 688 688 /*}}}*/ 689 /*FUNCTION Numericalflux::CreatePVectorPrognosticInternal{{{ 1*/689 /*FUNCTION Numericalflux::CreatePVectorPrognosticInternal{{{*/ 690 690 ElementVector* Numericalflux::CreatePVectorPrognosticInternal(void){ 691 691 … … 695 695 } 696 696 /*}}}*/ 697 /*FUNCTION Numericalflux::CreatePVectorPrognosticBoundary{{{ 1*/697 /*FUNCTION Numericalflux::CreatePVectorPrognosticBoundary{{{*/ 698 698 ElementVector* Numericalflux::CreatePVectorPrognosticBoundary(void){ 699 699 … … 765 765 } 766 766 /*}}}*/ 767 /*FUNCTION Numericalflux::CreatePVectorBalancethickness{{{ 1*/767 /*FUNCTION Numericalflux::CreatePVectorBalancethickness{{{*/ 768 768 ElementVector* Numericalflux::CreatePVectorBalancethickness(void){ 769 769 … … 781 781 } 782 782 /*}}}*/ 783 /*FUNCTION Numericalflux::CreatePVectorBalancethicknessInternal{{{ 1*/783 /*FUNCTION Numericalflux::CreatePVectorBalancethicknessInternal{{{*/ 784 784 ElementVector* Numericalflux::CreatePVectorBalancethicknessInternal(void){ 785 785 … … 789 789 } 790 790 /*}}}*/ 791 /*FUNCTION Numericalflux::CreatePVectorBalancethicknessBoundary{{{ 1*/791 /*FUNCTION Numericalflux::CreatePVectorBalancethicknessBoundary{{{*/ 792 792 ElementVector* Numericalflux::CreatePVectorBalancethicknessBoundary(void){ 793 793 … … 856 856 } 857 857 /*}}}*/ 858 /*FUNCTION Numericalflux::CreatePVectorAdjointBalancethickness{{{ 1*/858 /*FUNCTION Numericalflux::CreatePVectorAdjointBalancethickness{{{*/ 859 859 ElementVector* Numericalflux::CreatePVectorAdjointBalancethickness(void){ 860 860 … … 863 863 } 864 864 /*}}}*/ 865 /*FUNCTION Numericalflux::GetNormal {{{ 1*/865 /*FUNCTION Numericalflux::GetNormal {{{*/ 866 866 void Numericalflux:: GetNormal(double* normal,double xyz_list[4][3]){ 867 867 -
TabularUnified issm/trunk-jpl/src/c/objects/Loads/Numericalflux.h ¶
r12014 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "./Load.h" 11 11 class Hook; … … 35 35 36 36 37 /*Numericalflux constructors,destructors {{{ 1*/37 /*Numericalflux constructors,destructors {{{*/ 38 38 Numericalflux(); 39 39 Numericalflux(int numericalflux_id,int i, IoModel* iomodel,int analysis_type); 40 40 ~Numericalflux(); 41 41 /*}}}*/ 42 /*Object virtual functions definitions:{{{ 1*/42 /*Object virtual functions definitions:{{{ */ 43 43 void Echo(); 44 44 void DeepEcho(); … … 48 48 Object* copy(); 49 49 /*}}}*/ 50 /*Update virtual functions resolution: {{{ 1*/50 /*Update virtual functions resolution: {{{*/ 51 51 void InputUpdateFromVector(double* vector, int name, int type){/*Do nothing*/} 52 52 void InputUpdateFromVector(int* vector, int name, int type){_error_("Not implemented yet!");} … … 62 62 void InputUpdateFromIoModel(int index, IoModel* iomodel){_error_("not implemented yet");}; 63 63 /*}}}*/ 64 /*Load virtual functions definitions: {{{ 1*/64 /*Load virtual functions definitions: {{{*/ 65 65 void Configure(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters); 66 66 void SetCurrentConfiguration(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters); … … 73 73 bool InAnalysis(int analysis_type); 74 74 /*}}}*/ 75 /*Numericalflux management:{{{ 1*/75 /*Numericalflux management:{{{*/ 76 76 void GetNormal(double* normal,double xyz_list[4][3]); 77 77 ElementMatrix* CreateKMatrixPrognostic(void); -
TabularUnified issm/trunk-jpl/src/c/objects/Loads/Pengrid.cpp ¶
r12014 r12365 4 4 5 5 /*Headers*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 24 24 25 25 /*Pengrid constructors and destructor*/ 26 /*FUNCTION Pengrid::Pengrid(){{{ 1*/26 /*FUNCTION Pengrid::Pengrid(){{{*/ 27 27 Pengrid::Pengrid(){ 28 28 this->inputs=NULL; … … 40 40 41 41 } 42 /*}}} 1*/43 /*FUNCTION Pengrid::Pengrid(int index, int id, IoModel* iomodel,int analysis_type){{{ 1*/42 /*}}}*/ 43 /*FUNCTION Pengrid::Pengrid(int index, int id, IoModel* iomodel,int analysis_type){{{*/ 44 44 Pengrid::Pengrid(int id, int index, IoModel* iomodel, int in_analysis_type){ //i is the element index 45 45 … … 90 90 } 91 91 /*}}}*/ 92 /*FUNCTION Pengrid::~Pengrid(){{{ 1*/92 /*FUNCTION Pengrid::~Pengrid(){{{*/ 93 93 Pengrid::~Pengrid(){ 94 94 delete inputs; … … 98 98 return; 99 99 } 100 /*}}} 1*/100 /*}}}*/ 101 101 102 102 /*Object virtual functions definitions:*/ 103 /*FUNCTION Pengrid::Echo {{{ 1*/103 /*FUNCTION Pengrid::Echo {{{*/ 104 104 void Pengrid::Echo(void){ 105 105 this->DeepEcho(); 106 106 } 107 /*}}} 1*/108 /*FUNCTION Pengrid::DeepEcho{{{ 1*/107 /*}}}*/ 108 /*FUNCTION Pengrid::DeepEcho{{{*/ 109 109 void Pengrid::DeepEcho(void){ 110 110 … … 123 123 } 124 124 /*}}}*/ 125 /*FUNCTION Pengrid::Id {{{ 1*/125 /*FUNCTION Pengrid::Id {{{*/ 126 126 int Pengrid::Id(void){ return id; } 127 /*}}} 1*/128 /*FUNCTION Pengrid::MyRank {{{ 1*/127 /*}}}*/ 128 /*FUNCTION Pengrid::MyRank {{{*/ 129 129 int Pengrid::MyRank(void){ 130 130 extern int my_rank; 131 131 return my_rank; 132 132 } 133 /*}}} 1*/134 /*FUNCTION Pengrid::ObjectEnum{{{ 1*/133 /*}}}*/ 134 /*FUNCTION Pengrid::ObjectEnum{{{*/ 135 135 int Pengrid::ObjectEnum(void){ 136 136 137 137 return PengridEnum; 138 138 } 139 /*}}} 1*/140 /*FUNCTION Icefront::copy {{{ 1*/139 /*}}}*/ 140 /*FUNCTION Icefront::copy {{{*/ 141 141 Object* Pengrid::copy() { 142 142 … … 177 177 178 178 /*Load virtual functions definitions:*/ 179 /*FUNCTION Pengrid::Configure {{{ 1*/179 /*FUNCTION Pengrid::Configure {{{*/ 180 180 void Pengrid::Configure(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){ 181 181 … … 194 194 this->parameters=parametersin; 195 195 } 196 /*}}} 1*/197 /*FUNCTION Pengrid::SetCurrentConfiguration {{{ 1*/196 /*}}}*/ 197 /*FUNCTION Pengrid::SetCurrentConfiguration {{{*/ 198 198 void Pengrid::SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){ 199 199 200 200 } 201 /*}}} 1*/202 /*FUNCTION Pengrid::CreateKMatrix {{{ 1*/201 /*}}}*/ 202 /*FUNCTION Pengrid::CreateKMatrix {{{*/ 203 203 void Pengrid::CreateKMatrix(Matrix* Kff, Matrix* Kfs){ 204 204 … … 207 207 208 208 } 209 /*}}} 1*/210 /*FUNCTION Pengrid::CreatePVector {{{ 1*/209 /*}}}*/ 210 /*FUNCTION Pengrid::CreatePVector {{{*/ 211 211 void Pengrid::CreatePVector(Vector* pf){ 212 212 … … 215 215 216 216 } 217 /*}}} 1*/218 /*FUNCTION Pengrid::PenaltyCreateMatrix {{{ 1*/217 /*}}}*/ 218 /*FUNCTION Pengrid::PenaltyCreateMatrix {{{*/ 219 219 void Pengrid::PenaltyCreateKMatrix(Matrix* Kff, Matrix* Kfs,double kmax){ 220 220 … … 248 248 } 249 249 } 250 /*}}} 1*/251 /*FUNCTION Pengrid::PenaltyCreatePVector {{{ 1*/250 /*}}}*/ 251 /*FUNCTION Pengrid::PenaltyCreatePVector {{{*/ 252 252 void Pengrid::PenaltyCreatePVector(Vector* pf,double kmax){ 253 253 … … 280 280 } 281 281 } 282 /*}}} 1*/283 /*FUNCTION Pengrid::InAnalysis{{{ 1*/282 /*}}}*/ 283 /*FUNCTION Pengrid::InAnalysis{{{*/ 284 284 bool Pengrid::InAnalysis(int in_analysis_type){ 285 285 if (in_analysis_type==this->analysis_type)return true; … … 289 289 290 290 /*Update virtual functions definitions:*/ 291 /*FUNCTION Pengrid::InputUpdateFromVector(double* vector, int name, int type) {{{ 1*/291 /*FUNCTION Pengrid::InputUpdateFromVector(double* vector, int name, int type) {{{*/ 292 292 void Pengrid::InputUpdateFromVector(double* vector, int name, int type){ 293 293 /*Nothing updated yet*/ 294 294 } 295 295 /*}}}*/ 296 /*FUNCTION Pengrid::InputUpdateFromVector(int* vector, int name, int type) {{{ 1*/296 /*FUNCTION Pengrid::InputUpdateFromVector(int* vector, int name, int type) {{{*/ 297 297 void Pengrid::InputUpdateFromVector(int* vector, int name, int type){ 298 298 /*Nothing updated yet*/ 299 299 } 300 300 /*}}}*/ 301 /*FUNCTION Pengrid::InputUpdateFromVector(bool* vector, int name, int type) {{{ 1*/301 /*FUNCTION Pengrid::InputUpdateFromVector(bool* vector, int name, int type) {{{*/ 302 302 void Pengrid::InputUpdateFromVector(bool* vector, int name, int type){ 303 303 /*Nothing updated yet*/ 304 304 } 305 305 /*}}}*/ 306 /*FUNCTION Pengrid::InputUpdateFromMatrixDakota(double* vector, int nrows, int ncols, int name, int type) {{{ 1*/306 /*FUNCTION Pengrid::InputUpdateFromMatrixDakota(double* vector, int nrows, int ncols, int name, int type) {{{*/ 307 307 void Pengrid::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type){ 308 308 /*Nothing updated yet*/ 309 309 } 310 310 /*}}}*/ 311 /*FUNCTION Pengrid::InputUpdateFromVectorDakota(double* vector, int name, int type) {{{ 1*/311 /*FUNCTION Pengrid::InputUpdateFromVectorDakota(double* vector, int name, int type) {{{*/ 312 312 void Pengrid::InputUpdateFromVectorDakota(double* vector, int name, int type){ 313 313 /*Nothing updated yet*/ 314 314 } 315 315 /*}}}*/ 316 /*FUNCTION Pengrid::InputUpdateFromVectorDakota(int* vector, int name, int type) {{{ 1*/316 /*FUNCTION Pengrid::InputUpdateFromVectorDakota(int* vector, int name, int type) {{{*/ 317 317 void Pengrid::InputUpdateFromVectorDakota(int* vector, int name, int type){ 318 318 /*Nothing updated yet*/ 319 319 } 320 320 /*}}}*/ 321 /*FUNCTION Pengrid::InputUpdateFromVectorDakota(bool* vector, int name, int type) {{{ 1*/321 /*FUNCTION Pengrid::InputUpdateFromVectorDakota(bool* vector, int name, int type) {{{*/ 322 322 void Pengrid::InputUpdateFromVectorDakota(bool* vector, int name, int type){ 323 323 /*Nothing updated yet*/ 324 324 } 325 325 /*}}}*/ 326 /*FUNCTION Pengrid::InputUpdateFromConstant(double constant, int name) {{{ 1*/326 /*FUNCTION Pengrid::InputUpdateFromConstant(double constant, int name) {{{*/ 327 327 void Pengrid::InputUpdateFromConstant(double constant, int name){ 328 328 switch(name){ … … 335 335 } 336 336 /*}}}*/ 337 /*FUNCTION Pengrid::InputUpdateFromConstant(int constant, int name) {{{ 1*/337 /*FUNCTION Pengrid::InputUpdateFromConstant(int constant, int name) {{{*/ 338 338 void Pengrid::InputUpdateFromConstant(int constant, int name){ 339 339 /*Nothing updated yet*/ 340 340 } 341 341 /*}}}*/ 342 /*FUNCTION Pengrid::InputUpdateFromConstant(bool constant, int name) {{{ 1*/342 /*FUNCTION Pengrid::InputUpdateFromConstant(bool constant, int name) {{{*/ 343 343 void Pengrid::InputUpdateFromConstant(bool constant, int name){ 344 344 … … 352 352 } 353 353 /*}}}*/ 354 /*FUNCTION Pengrid::InputUpdateFromSolution{{{ 1*/354 /*FUNCTION Pengrid::InputUpdateFromSolution{{{*/ 355 355 void Pengrid::InputUpdateFromSolution(double* solution){ 356 356 /*Nothing updated yet*/ … … 359 359 360 360 /*Pengrid management:*/ 361 /*FUNCTION Pengrid::ConstraintActivate {{{ 1*/361 /*FUNCTION Pengrid::ConstraintActivate {{{*/ 362 362 void Pengrid::ConstraintActivate(int* punstable){ 363 363 … … 383 383 384 384 } 385 /*}}} 1*/386 /*FUNCTION Pengrid::ConstraintActivateThermal {{{ 1*/385 /*}}}*/ 386 /*FUNCTION Pengrid::ConstraintActivateThermal {{{*/ 387 387 void Pengrid::ConstraintActivateThermal(int* punstable){ 388 388 … … 452 452 *punstable=unstable; 453 453 } 454 /*}}} 1*/454 /*}}}*/ 455 455 #ifdef _HAVE_DIAGNOSTIC_ 456 /*FUNCTION Pengrid::PenaltyCreateKMatrixDiagnosticStokes {{{ 1*/456 /*FUNCTION Pengrid::PenaltyCreateKMatrixDiagnosticStokes {{{*/ 457 457 ElementMatrix* Pengrid::PenaltyCreateKMatrixDiagnosticStokes(double kmax){ 458 458 … … 485 485 return Ke; 486 486 } 487 /*}}} 1*/487 /*}}}*/ 488 488 #endif 489 489 #ifdef _HAVE_THERMAL_ 490 /*FUNCTION Pengrid::PenaltyCreateKMatrixMelting {{{ 1*/490 /*FUNCTION Pengrid::PenaltyCreateKMatrixMelting {{{*/ 491 491 ElementMatrix* Pengrid::PenaltyCreateKMatrixMelting(double kmax){ 492 492 … … 517 517 return Ke; 518 518 } 519 /*}}} 1*/520 /*FUNCTION Pengrid::PenaltyCreateKMatrixThermal {{{ 1*/519 /*}}}*/ 520 /*FUNCTION Pengrid::PenaltyCreateKMatrixThermal {{{*/ 521 521 ElementMatrix* Pengrid::PenaltyCreateKMatrixThermal(double kmax){ 522 522 … … 536 536 return Ke; 537 537 } 538 /*}}} 1*/539 /*FUNCTION Pengrid::PenaltyCreatePVectorMelting {{{ 1*/538 /*}}}*/ 539 /*FUNCTION Pengrid::PenaltyCreatePVectorMelting {{{*/ 540 540 ElementVector* Pengrid::PenaltyCreatePVectorMelting(double kmax){ 541 541 … … 579 579 return pe; 580 580 } 581 /*}}} 1*/582 /*FUNCTION Pengrid::PenaltyCreatePVectorThermal {{{ 1*/581 /*}}}*/ 582 /*FUNCTION Pengrid::PenaltyCreatePVectorThermal {{{*/ 583 583 ElementVector* Pengrid::PenaltyCreatePVectorThermal(double kmax){ 584 584 … … 606 606 return pe; 607 607 } 608 /*}}} 1*/608 /*}}}*/ 609 609 #endif 610 /*FUNCTION Pengrid::ResetConstraint {{{ 1*/610 /*FUNCTION Pengrid::ResetConstraint {{{*/ 611 611 void Pengrid::ResetConstraint(void){ 612 612 active=0; 613 613 zigzag_counter=0; 614 614 } 615 /*}}} 1*/616 /*FUNCTION Pengrid::UpdateInputs {{{ 1*/615 /*}}}*/ 616 /*FUNCTION Pengrid::UpdateInputs {{{*/ 617 617 void Pengrid::UpdateInputs(double* solution){ 618 618 _error_("not supported yet!"); 619 619 } 620 /*}}} 1*/620 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Loads/Pengrid.h ¶
r12014 r12365 6 6 7 7 /*Headers:*/ 8 /*{{{ 1*/8 /*{{{*/ 9 9 #include "./Load.h" 10 10 class Hook; … … 40 40 public: 41 41 42 /*Pengrid constructors, destructors {{{ 1*/42 /*Pengrid constructors, destructors {{{*/ 43 43 Pengrid(); 44 44 Pengrid(int index, int id, IoModel* iomodel,int analysis_type); 45 45 ~Pengrid(); 46 46 /*}}}*/ 47 /*Object virtual functions definitions:{{{ 1*/47 /*Object virtual functions definitions:{{{ */ 48 48 void Echo(); 49 49 void DeepEcho(); … … 53 53 Object* copy(); 54 54 /*}}}*/ 55 /*Update virtual functions resolution: {{{ 1*/55 /*Update virtual functions resolution: {{{*/ 56 56 void InputUpdateFromVector(double* vector, int name, int type); 57 57 void InputUpdateFromVector(int* vector, int name, int type); … … 67 67 void InputUpdateFromIoModel(int index, IoModel* iomodel){_error_("not implemented yet");}; 68 68 /*}}}*/ 69 /*Load virtual functions definitions: {{{ 1*/69 /*Load virtual functions definitions: {{{*/ 70 70 void Configure(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters); 71 71 void SetCurrentConfiguration(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters); … … 78 78 bool InAnalysis(int analysis_type); 79 79 /*}}}*/ 80 /*Pengrid management {{{ 1*/80 /*Pengrid management {{{*/ 81 81 #ifdef _HAVE_DIAGNOSTIC_ 82 82 ElementMatrix* PenaltyCreateKMatrixDiagnosticStokes(double kmax); -
TabularUnified issm/trunk-jpl/src/c/objects/Loads/Penpair.cpp ¶
r12014 r12365 4 4 5 5 /*Headers*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 23 23 24 24 /*Penpair constructors and destructor*/ 25 /*FUNCTION Penpair::constructor {{{ 1*/25 /*FUNCTION Penpair::constructor {{{*/ 26 26 Penpair::Penpair(){ 27 27 … … 31 31 return; 32 32 } 33 /*}}} 1*/34 /*FUNCTION Penpair::creation {{{ 1*/33 /*}}}*/ 34 /*FUNCTION Penpair::creation {{{*/ 35 35 Penpair::Penpair(int penpair_id, int* penpair_node_ids,int in_analysis_type){ 36 36 … … 43 43 return; 44 44 } 45 /*}}} 1*/46 /*FUNCTION Penpair::destructor {{{ 1*/45 /*}}}*/ 46 /*FUNCTION Penpair::destructor {{{*/ 47 47 Penpair::~Penpair(){ 48 48 delete hnodes; 49 49 return; 50 50 } 51 /*}}} 1*/51 /*}}}*/ 52 52 53 53 /*Object virtual functions definitions:*/ 54 /*FUNCTION Penpair::Echo {{{ 1*/54 /*FUNCTION Penpair::Echo {{{*/ 55 55 void Penpair::Echo(void){ 56 56 … … 64 64 return; 65 65 } 66 /*}}} 1*/67 /*FUNCTION Penpair::DeepEcho {{{ 1*/66 /*}}}*/ 67 /*FUNCTION Penpair::DeepEcho {{{*/ 68 68 void Penpair::DeepEcho(void){ 69 69 … … 75 75 return; 76 76 } 77 /*}}} 1*/78 /*FUNCTION Penpair::Id {{{ 1*/77 /*}}}*/ 78 /*FUNCTION Penpair::Id {{{*/ 79 79 int Penpair::Id(void){ return id; } 80 /*}}} 1*/81 /*FUNCTION Penpair::MyRank {{{ 1*/80 /*}}}*/ 81 /*FUNCTION Penpair::MyRank {{{*/ 82 82 int Penpair::MyRank(void){ 83 83 extern int my_rank; 84 84 return my_rank; 85 85 } 86 /*}}} 1*/87 /*FUNCTION Penpair::ObjectEnum{{{ 1*/86 /*}}}*/ 87 /*FUNCTION Penpair::ObjectEnum{{{*/ 88 88 int Penpair::ObjectEnum(void){ 89 89 90 90 return PenpairEnum; 91 91 } 92 /*}}} 1*/93 /*FUNCTION Penpair::copy {{{ 1*/92 /*}}}*/ 93 /*FUNCTION Penpair::copy {{{*/ 94 94 Object* Penpair::copy() { 95 95 … … 115 115 116 116 /*Load virtual functions definitions:*/ 117 /*FUNCTION Penpair::Configure {{{ 1*/117 /*FUNCTION Penpair::Configure {{{*/ 118 118 void Penpair::Configure(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){ 119 119 … … 129 129 130 130 } 131 /*}}} 1*/132 /*FUNCTION Penpair::SetCurrentConfiguration {{{ 1*/131 /*}}}*/ 132 /*FUNCTION Penpair::SetCurrentConfiguration {{{*/ 133 133 void Penpair::SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){ 134 134 135 135 } 136 /*}}} 1*/137 /*FUNCTION Penpair::CreateKMatrix {{{ 1*/136 /*}}}*/ 137 /*FUNCTION Penpair::CreateKMatrix {{{*/ 138 138 void Penpair::CreateKMatrix(Matrix* Kff, Matrix* Kfs){ 139 139 /*If you code this piece, don't forget that a penalty will be inactive if it is dealing with clone nodes*/ … … 142 142 143 143 } 144 /*}}} 1*/145 /*FUNCTION Penpair::CreatePVector {{{ 1*/144 /*}}}*/ 145 /*FUNCTION Penpair::CreatePVector {{{*/ 146 146 void Penpair::CreatePVector(Vector* pf){ 147 147 … … 150 150 151 151 } 152 /*}}} 1*/153 /*FUNCTION Penpair::CreateJacobianMatrix{{{ 1*/152 /*}}}*/ 153 /*FUNCTION Penpair::CreateJacobianMatrix{{{*/ 154 154 void Penpair::CreateJacobianMatrix(Matrix* Jff){ 155 155 this->CreateKMatrix(Jff,NULL); 156 156 } 157 /*}}} 1*/158 /*FUNCTION Penpair::PenaltyCreateKMatrix {{{ 1*/157 /*}}}*/ 158 /*FUNCTION Penpair::PenaltyCreateKMatrix {{{*/ 159 159 void Penpair::PenaltyCreateKMatrix(Matrix* Kff, Matrix* Kfs,double kmax){ 160 160 … … 181 181 } 182 182 } 183 /*}}} 1*/184 /*FUNCTION Penpair::PenaltyCreatePVector {{{ 1*/183 /*}}}*/ 184 /*FUNCTION Penpair::PenaltyCreatePVector {{{*/ 185 185 void Penpair::PenaltyCreatePVector(Vector* pf,double kmax){ 186 186 /*No loads applied, do nothing: */ 187 187 return; 188 188 } 189 /*}}} 1*/190 /*FUNCTION Penpair::PenaltyCreateJacobianMatrix{{{ 1*/189 /*}}}*/ 190 /*FUNCTION Penpair::PenaltyCreateJacobianMatrix{{{*/ 191 191 void Penpair::PenaltyCreateJacobianMatrix(Matrix* Jff,double kmax){ 192 192 this->PenaltyCreateKMatrix(Jff,NULL,kmax); 193 193 } 194 /*}}} 1*/195 /*FUNCTION Penpair::InAnalysis{{{ 1*/194 /*}}}*/ 195 /*FUNCTION Penpair::InAnalysis{{{*/ 196 196 bool Penpair::InAnalysis(int in_analysis_type){ 197 197 if (in_analysis_type==this->analysis_type)return true; … … 201 201 202 202 /*Update virtual functions definitions:*/ 203 /*FUNCTION Penpair::InputUpdateFromConstant(double constant, int name) {{{ 1*/203 /*FUNCTION Penpair::InputUpdateFromConstant(double constant, int name) {{{*/ 204 204 void Penpair::InputUpdateFromConstant(double constant, int name){ 205 205 /*Nothing updated yet*/ 206 206 } 207 207 /*}}}*/ 208 /*FUNCTION Penpair::InputUpdateFromConstant(int constant, int name) {{{ 1*/208 /*FUNCTION Penpair::InputUpdateFromConstant(int constant, int name) {{{*/ 209 209 void Penpair::InputUpdateFromConstant(int constant, int name){ 210 210 /*Nothing updated yet*/ 211 211 } 212 212 /*}}}*/ 213 /*FUNCTION Penpair::InputUpdateFromConstant(bool constant, int name) {{{ 1*/213 /*FUNCTION Penpair::InputUpdateFromConstant(bool constant, int name) {{{*/ 214 214 void Penpair::InputUpdateFromConstant(bool constant, int name){ 215 215 /*Nothing updated yet*/ 216 216 } 217 217 /*}}}*/ 218 /*FUNCTION Penpair::InputUpdateFromVector(double* vector, int name, int type) {{{ 1*/218 /*FUNCTION Penpair::InputUpdateFromVector(double* vector, int name, int type) {{{*/ 219 219 void Penpair::InputUpdateFromVector(double* vector, int name, int type){ 220 220 /*Nothing updated yet*/ 221 221 } 222 222 /*}}}*/ 223 /*FUNCTION Penpair::InputUpdateFromVector(int* vector, int name, int type) {{{ 1*/223 /*FUNCTION Penpair::InputUpdateFromVector(int* vector, int name, int type) {{{*/ 224 224 void Penpair::InputUpdateFromVector(int* vector, int name, int type){ 225 225 /*Nothing updated yet*/ 226 226 } 227 227 /*}}}*/ 228 /*FUNCTION Penpair::InputUpdateFromVector(bool* vector, int name, int type) {{{ 1*/228 /*FUNCTION Penpair::InputUpdateFromVector(bool* vector, int name, int type) {{{*/ 229 229 void Penpair::InputUpdateFromVector(bool* vector, int name, int type){ 230 230 /*Nothing updated yet*/ … … 233 233 234 234 /*Penpair management:*/ 235 /*FUNCTION Penpair::PenaltyCreateKMatrixDiagnosticHoriz{{{ 1*/235 /*FUNCTION Penpair::PenaltyCreateKMatrixDiagnosticHoriz{{{*/ 236 236 ElementMatrix* Penpair::PenaltyCreateKMatrixDiagnosticHoriz(double kmax){ 237 237 … … 267 267 } 268 268 } 269 /*}}} 1*/270 /*FUNCTION Penpair::PenaltyCreateKMatrixDiagnosticMacAyealPattyn {{{ 1*/269 /*}}}*/ 270 /*FUNCTION Penpair::PenaltyCreateKMatrixDiagnosticMacAyealPattyn {{{*/ 271 271 ElementMatrix* Penpair::PenaltyCreateKMatrixDiagnosticMacAyealPattyn(double kmax){ 272 272 … … 294 294 return Ke; 295 295 } 296 /*}}} 1*/297 /*FUNCTION Penpair::PenaltyCreateKMatrixDiagnosticStokes {{{ 1*/296 /*}}}*/ 297 /*FUNCTION Penpair::PenaltyCreateKMatrixDiagnosticStokes {{{*/ 298 298 ElementMatrix* Penpair::PenaltyCreateKMatrixDiagnosticStokes(double kmax){ 299 299 … … 331 331 return Ke; 332 332 } 333 /*}}} 1*/334 /*FUNCTION Penpair::PenaltyCreateKMatrixPrognostic {{{ 1*/333 /*}}}*/ 334 /*FUNCTION Penpair::PenaltyCreateKMatrixPrognostic {{{*/ 335 335 ElementMatrix* Penpair::PenaltyCreateKMatrixPrognostic(double kmax){ 336 336 … … 353 353 return Ke; 354 354 } 355 /*}}} 1*/355 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Loads/Penpair.h ¶
r12014 r12365 6 6 7 7 /*Headers:*/ 8 /*{{{ 1*/8 /*{{{*/ 9 9 #include "./Load.h" 10 10 #include "../Node.h" … … 27 27 public: 28 28 29 /*Penpair constructors, destructors: {{{ 1*/29 /*Penpair constructors, destructors: {{{*/ 30 30 Penpair(); 31 31 Penpair(int penpair_id,int* penpair_node_ids,int analysis_type); 32 32 ~Penpair(); 33 33 /*}}}*/ 34 /*Object virtual functions definitions:{{{ 1*/34 /*Object virtual functions definitions:{{{ */ 35 35 void Echo(); 36 36 void DeepEcho(); … … 40 40 Object* copy(); 41 41 /*}}}*/ 42 /*Update virtual functions resolution: {{{ 1*/42 /*Update virtual functions resolution: {{{*/ 43 43 void InputUpdateFromVector(double* vector, int name, int type); 44 44 void InputUpdateFromVector(int* vector, int name, int type); … … 54 54 void InputUpdateFromIoModel(int index, IoModel* iomodel){_error_("not implemented yet");}; 55 55 /*}}}*/ 56 /*Load virtual functions definitions: {{{ 1*/56 /*Load virtual functions definitions: {{{*/ 57 57 void Configure(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters); 58 58 void SetCurrentConfiguration(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters); … … 65 65 bool InAnalysis(int analysis_type); 66 66 /*}}}*/ 67 /*Penpair management: {{{ 1*/67 /*Penpair management: {{{*/ 68 68 ElementMatrix* PenaltyCreateKMatrixDiagnosticHoriz(double kmax); 69 69 ElementMatrix* PenaltyCreateKMatrixDiagnosticMacAyealPattyn(double kmax); -
TabularUnified issm/trunk-jpl/src/c/objects/Loads/Riftfront.cpp ¶
r12014 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 24 24 25 25 /*Riftfront constructors and destructor*/ 26 /*FUNCTION Riftfront::Riftfront(){{{ 1*/26 /*FUNCTION Riftfront::Riftfront(){{{*/ 27 27 Riftfront::Riftfront(){ 28 28 this->inputs=NULL; … … 36 36 } 37 37 /*}}}*/ 38 /*FUNCTION Riftfront::Riftfront(int id, int i, IoModel* iomodel,int analysis_type){{{ 1*/38 /*FUNCTION Riftfront::Riftfront(int id, int i, IoModel* iomodel,int analysis_type){{{*/ 39 39 Riftfront::Riftfront(int riftfront_id,int i, IoModel* iomodel,int riftfront_analysis_type){ 40 40 … … 117 117 118 118 } 119 /*}}} 1*/120 /*FUNCTION Riftfront::~Riftfront(){{{ 1*/119 /*}}}*/ 120 /*FUNCTION Riftfront::~Riftfront(){{{*/ 121 121 Riftfront::~Riftfront(){ 122 122 delete inputs; … … 130 130 131 131 /*Object virtual functions definitions:*/ 132 /*FUNCTION Riftfront::Echo {{{ 1*/132 /*FUNCTION Riftfront::Echo {{{*/ 133 133 void Riftfront::Echo(void){ 134 134 … … 167 167 168 168 } 169 /*}}} 1*/170 /*FUNCTION Riftfront::DeepEcho{{{ 1*/169 /*}}}*/ 170 /*FUNCTION Riftfront::DeepEcho{{{*/ 171 171 void Riftfront::DeepEcho(void){ 172 172 … … 183 183 } 184 184 /*}}}*/ 185 /*FUNCTION Riftfront::Id {{{ 1*/185 /*FUNCTION Riftfront::Id {{{*/ 186 186 int Riftfront::Id(void){ return id; } 187 /*}}} 1*/188 /*FUNCTION Riftfront::MyRank {{{ 1*/187 /*}}}*/ 188 /*FUNCTION Riftfront::MyRank {{{*/ 189 189 int Riftfront::MyRank(void){ 190 190 extern int my_rank; 191 191 return my_rank; 192 192 } 193 /*}}} 1*/194 /*FUNCTION Riftfront::ObjectEnum{{{ 1*/193 /*}}}*/ 194 /*FUNCTION Riftfront::ObjectEnum{{{*/ 195 195 int Riftfront::ObjectEnum(void){ 196 196 … … 198 198 199 199 } 200 /*}}} 1*/201 /*FUNCTION Riftfront::copy {{{ 1*/200 /*}}}*/ 201 /*FUNCTION Riftfront::copy {{{*/ 202 202 Object* Riftfront::copy() { 203 203 … … 247 247 248 248 /*Update virtual functions definitions:*/ 249 /*FUNCTION Riftfront::InputUpdateFromConstant(bool constant,int name) {{{ 1*/249 /*FUNCTION Riftfront::InputUpdateFromConstant(bool constant,int name) {{{*/ 250 250 void Riftfront::InputUpdateFromConstant(bool constant,int name){ 251 251 … … 258 258 } 259 259 /*}}}*/ 260 /*FUNCTION Riftfront::InputUpdateFromConstant(double constant,int name) {{{ 1*/260 /*FUNCTION Riftfront::InputUpdateFromConstant(double constant,int name) {{{*/ 261 261 void Riftfront::InputUpdateFromConstant(double constant,int name){ 262 262 … … 269 269 } 270 270 /*}}}*/ 271 /*FUNCTION Riftfront::InputUpdateFromConstant(double* constant,int name) {{{ 1*/271 /*FUNCTION Riftfront::InputUpdateFromConstant(double* constant,int name) {{{*/ 272 272 void Riftfront::InputUpdateFromVector(double* vector, int name, int type){ 273 273 … … 284 284 285 285 /*Load virtual functions definitions:*/ 286 /*FUNCTION Riftfront::Configure {{{ 1*/286 /*FUNCTION Riftfront::Configure {{{*/ 287 287 void Riftfront::Configure(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){ 288 288 … … 303 303 } 304 304 /*}}}*/ 305 /*FUNCTION Riftfront::SetCurrentConfiguration {{{ 1*/305 /*FUNCTION Riftfront::SetCurrentConfiguration {{{*/ 306 306 void Riftfront::SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){ 307 307 308 308 } 309 309 /*}}}*/ 310 /*FUNCTION Riftfront::PenaltyCreateKMatrix {{{ 1*/310 /*FUNCTION Riftfront::PenaltyCreateKMatrix {{{*/ 311 311 void Riftfront::PenaltyCreateKMatrix(Matrix* Kff, Matrix* Kfs,double kmax){ 312 312 … … 333 333 } 334 334 } 335 /*}}} 1*/336 /*FUNCTION Riftfront::PenaltyCreatePVector {{{ 1*/335 /*}}}*/ 336 /*FUNCTION Riftfront::PenaltyCreatePVector {{{*/ 337 337 void Riftfront::PenaltyCreatePVector(Vector* pf,double kmax){ 338 338 … … 359 359 } 360 360 } 361 /*}}} 1*/362 /*FUNCTION Riftfront::CreateKMatrix {{{ 1*/361 /*}}}*/ 362 /*FUNCTION Riftfront::CreateKMatrix {{{*/ 363 363 void Riftfront::CreateKMatrix(Matrix* Kff, Matrix* Kfs){ 364 364 /*do nothing: */ 365 365 return; 366 366 } 367 /*}}} 1*/368 /*FUNCTION Riftfront::CreatePVector {{{ 1*/367 /*}}}*/ 368 /*FUNCTION Riftfront::CreatePVector {{{*/ 369 369 void Riftfront::CreatePVector(Vector* pf){ 370 370 /*do nothing: */ 371 371 return; 372 372 } 373 /*}}} 1*/374 /*FUNCTION Riftfront::InAnalysis{{{ 1*/373 /*}}}*/ 374 /*FUNCTION Riftfront::InAnalysis{{{*/ 375 375 bool Riftfront::InAnalysis(int in_analysis_type){ 376 376 if (in_analysis_type==this->analysis_type) return true; … … 380 380 381 381 /*Riftfront numerics*/ 382 /*FUNCTION Riftfront::PenaltyCreateKMatrixDiagnosticHoriz {{{ 1*/382 /*FUNCTION Riftfront::PenaltyCreateKMatrixDiagnosticHoriz {{{*/ 383 383 ElementMatrix* Riftfront::PenaltyCreateKMatrixDiagnosticHoriz(double kmax){ 384 384 … … 462 462 return Ke; 463 463 } 464 /*}}} 1*/465 /*FUNCTION Riftfront::PenaltyCreatePVectorDiagnosticHoriz {{{ 1*/464 /*}}}*/ 465 /*FUNCTION Riftfront::PenaltyCreatePVectorDiagnosticHoriz {{{*/ 466 466 ElementVector* Riftfront::PenaltyCreatePVectorDiagnosticHoriz(double kmax){ 467 467 … … 562 562 return pe; 563 563 } 564 /*}}} 1*/565 /*FUNCTION Riftfront::Constrain {{{ 1*/564 /*}}}*/ 565 /*FUNCTION Riftfront::Constrain {{{*/ 566 566 #define _ZIGZAGCOUNTER_ 567 567 … … 654 654 return 1; 655 655 } 656 /*}}} 1*/657 /*FUNCTION Riftfront::FreezeConstraints{{{ 1*/656 /*}}}*/ 657 /*FUNCTION Riftfront::FreezeConstraints{{{*/ 658 658 void Riftfront::FreezeConstraints(void){ 659 659 … … 662 662 663 663 } 664 /*}}} 1*/665 /*FUNCTION Riftfront::IsFrozen{{{ 1*/664 /*}}}*/ 665 /*FUNCTION Riftfront::IsFrozen{{{*/ 666 666 bool Riftfront::IsFrozen(void){ 667 667 … … 670 670 else return 0; 671 671 } 672 /*}}} 1*/673 /*FUNCTION Riftfront::IsMaterialStable {{{ 1*/672 /*}}}*/ 673 /*FUNCTION Riftfront::IsMaterialStable {{{*/ 674 674 int Riftfront::IsMaterialStable(void){ 675 675 … … 688 688 return this->material_converged; 689 689 } 690 /*}}} 1*/691 /*FUNCTION Riftfront::MaxPenetration {{{ 1*/690 /*}}}*/ 691 /*FUNCTION Riftfront::MaxPenetration {{{*/ 692 692 int Riftfront::MaxPenetration(double* ppenetration){ 693 693 … … 734 734 return 1; 735 735 } 736 /*}}} 1*/737 /*FUNCTION Riftfront::Penetration {{{ 1*/736 /*}}}*/ 737 /*FUNCTION Riftfront::Penetration {{{*/ 738 738 int Riftfront::Penetration(double* ppenetration){ 739 739 … … 773 773 return 1; 774 774 } 775 /*}}} 1*/776 /*FUNCTION Riftfront::PotentialUnstableConstraint {{{ 1*/775 /*}}}*/ 776 /*FUNCTION Riftfront::PotentialUnstableConstraint {{{*/ 777 777 int Riftfront::PotentialUnstableConstraint(int* punstable){ 778 778 … … 826 826 return 1; 827 827 } 828 /*}}} 1*/829 /*FUNCTION Riftfront::PreConstrain {{{ 1*/828 /*}}}*/ 829 /*FUNCTION Riftfront::PreConstrain {{{*/ 830 830 int Riftfront::PreConstrain(int* punstable){ 831 831 … … 891 891 return 1; 892 892 } 893 /*}}} 1*/894 /*FUNCTION Riftfront::PreStable {{{ 1*/893 /*}}}*/ 894 /*FUNCTION Riftfront::PreStable {{{*/ 895 895 bool Riftfront::PreStable(){ 896 896 return prestable; 897 897 } 898 /*}}} 1*/899 /*FUNCTION Riftfront::SetPreStable {{{ 1*/898 /*}}}*/ 899 /*FUNCTION Riftfront::SetPreStable {{{*/ 900 900 void Riftfront::SetPreStable(){ 901 901 prestable=1; 902 902 } 903 /*}}} 1*/904 /*FUNCTION Riftfront::IsInput{{{ 1*/903 /*}}}*/ 904 /*FUNCTION Riftfront::IsInput{{{*/ 905 905 bool Riftfront::IsInput(int name){ 906 906 if ( -
TabularUnified issm/trunk-jpl/src/c/objects/Loads/Riftfront.h ¶
r12014 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "./Load.h" 11 11 class Hook; … … 47 47 48 48 49 /*Riftfrontconstructors,destructors: {{{ 1*/49 /*Riftfrontconstructors,destructors: {{{*/ 50 50 Riftfront(); 51 51 Riftfront(int riftfront_id,int i, IoModel* iomodel,int analysis_type); 52 52 ~Riftfront(); 53 53 /*}}}*/ 54 /*Object virtual functions definitions:{{{ 1*/54 /*Object virtual functions definitions:{{{ */ 55 55 void Echo(); 56 56 void DeepEcho(); … … 60 60 Object* copy(); 61 61 /*}}}*/ 62 /*Update virtual functions resolution: {{{ 1*/62 /*Update virtual functions resolution: {{{*/ 63 63 void InputUpdateFromVector(double* vector, int name, int type); 64 64 void InputUpdateFromVector(int* vector, int name, int type){_error_("Not implemented yet!");} … … 74 74 void InputUpdateFromIoModel(int index, IoModel* iomodel){_error_("not implemented yet");}; 75 75 /*}}}*/ 76 /*Load virtual functions definitions: {{{ 1*/76 /*Load virtual functions definitions: {{{*/ 77 77 void Configure(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters); 78 78 void SetCurrentConfiguration(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters); … … 85 85 bool InAnalysis(int analysis_type); 86 86 /*}}}*/ 87 /*Riftfront specific routines: {{{ 1*/87 /*Riftfront specific routines: {{{*/ 88 88 bool PreStable(); 89 89 ElementMatrix* PenaltyCreateKMatrixDiagnosticHoriz(double kmax); -
TabularUnified issm/trunk-jpl/src/c/objects/Materials/Material.h ¶
r11695 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 class Object; 12 12 #include "../Object.h" -
TabularUnified issm/trunk-jpl/src/c/objects/Materials/Matice.cpp ¶
r12014 r12365 17 17 18 18 /*Matice constructors and destructor*/ 19 /*FUNCTION Matice::Matice(){{{ 1*/19 /*FUNCTION Matice::Matice(){{{*/ 20 20 Matice::Matice(){ 21 21 this->inputs=NULL; … … 24 24 } 25 25 /*}}}*/ 26 /*FUNCTION Matice::Matice(int id, int index, IoModel* iomodel, int num_vertices){{{ 1*/26 /*FUNCTION Matice::Matice(int id, int index, IoModel* iomodel, int num_vertices){{{*/ 27 27 Matice::Matice(int matice_mid,int index, IoModel* iomodel){ 28 28 … … 48 48 } 49 49 /*}}}*/ 50 /*FUNCTION Matice::~Matice(){{{ 1*/50 /*FUNCTION Matice::~Matice(){{{*/ 51 51 Matice::~Matice(){ 52 52 delete helement; … … 57 57 58 58 /*Object virtual functions definitions:*/ 59 /*FUNCTION Matice::Echo {{{ 1*/59 /*FUNCTION Matice::Echo {{{*/ 60 60 void Matice::Echo(void){ 61 61 … … 68 68 } 69 69 /*}}}*/ 70 /*FUNCTION Matice::DeepEcho {{{ 1*/70 /*FUNCTION Matice::DeepEcho {{{*/ 71 71 void Matice::DeepEcho(void){ 72 72 … … 79 79 } 80 80 /*}}}*/ 81 /*FUNCTION Matice::Id {{{ 1*/81 /*FUNCTION Matice::Id {{{*/ 82 82 int Matice::Id(void){ return mid; } 83 83 /*}}}*/ 84 /*FUNCTION Matice::MyRank {{{ 1*/84 /*FUNCTION Matice::MyRank {{{*/ 85 85 int Matice::MyRank(void){ 86 86 extern int my_rank; … … 88 88 } 89 89 /*}}}*/ 90 /*FUNCTION Matice::ObjectEnum{{{ 1*/90 /*FUNCTION Matice::ObjectEnum{{{*/ 91 91 int Matice::ObjectEnum(void){ 92 92 … … 95 95 } 96 96 /*}}}*/ 97 /*FUNCTION Matice::copy {{{ 1*/97 /*FUNCTION Matice::copy {{{*/ 98 98 Object* Matice::copy() { 99 99 … … 115 115 116 116 /*Matice management*/ 117 /*FUNCTION Matice::Configure {{{ 1*/117 /*FUNCTION Matice::Configure {{{*/ 118 118 void Matice::Configure(Elements* elementsin){ 119 119 … … 123 123 } 124 124 /*}}}*/ 125 /*FUNCTION Matice::SetCurrentConfiguration {{{ 1*/125 /*FUNCTION Matice::SetCurrentConfiguration {{{*/ 126 126 void Matice::SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin){ 127 127 128 128 } 129 129 /*}}}*/ 130 /*FUNCTION Matice::GetB {{{ 1*/130 /*FUNCTION Matice::GetB {{{*/ 131 131 double Matice::GetB(){ 132 132 … … 138 138 } 139 139 /*}}}*/ 140 /*FUNCTION Matice::GetBbar {{{ 1*/140 /*FUNCTION Matice::GetBbar {{{*/ 141 141 double Matice::GetBbar(){ 142 142 … … 148 148 } 149 149 /*}}}*/ 150 /*FUNCTION Matice::GetN {{{ 1*/150 /*FUNCTION Matice::GetN {{{*/ 151 151 double Matice::GetN(){ 152 152 … … 158 158 } 159 159 /*}}}*/ 160 /*FUNCTION Matice::GetVectorFromInputs{{{ 1*/160 /*FUNCTION Matice::GetVectorFromInputs{{{*/ 161 161 void Matice::GetVectorFromInputs(Vector* vector,int input_enum){ 162 162 … … 190 190 } 191 191 /*}}}*/ 192 /*FUNCTION Matice::GetViscosity2d {{{ 1*/192 /*FUNCTION Matice::GetViscosity2d {{{*/ 193 193 void Matice::GetViscosity2d(double* pviscosity, double* epsilon){ 194 194 /*From a string tensor and a material object, return viscosity, using Glen's flow law. … … 254 254 } 255 255 /*}}}*/ 256 /*FUNCTION Matice::GetViscosity3d {{{ 1*/256 /*FUNCTION Matice::GetViscosity3d {{{*/ 257 257 void Matice::GetViscosity3d(double* pviscosity3d, double* epsilon){ 258 258 … … 325 325 } 326 326 /*}}}*/ 327 /*FUNCTION Matice::GetViscosity3dStokes {{{ 1*/327 /*FUNCTION Matice::GetViscosity3dStokes {{{*/ 328 328 void Matice::GetViscosity3dStokes(double* pviscosity3d, double* epsilon){ 329 329 /*Return viscosity accounting for steady state power law creep [Thomas and MacAyeal, 1982]: … … 397 397 } 398 398 /*}}}*/ 399 /*FUNCTION Matice::GetViscosityComplement {{{ 1*/399 /*FUNCTION Matice::GetViscosityComplement {{{*/ 400 400 void Matice::GetViscosityComplement(double* pviscosity_complement, double* epsilon){ 401 401 /*Return viscosity accounting for steady state power law creep [Thomas and MacAyeal, 1982]: … … 453 453 } 454 454 /*}}}*/ 455 /*FUNCTION Matice::GetViscosityDerivativeEpsSquare{{{ 1*/455 /*FUNCTION Matice::GetViscosityDerivativeEpsSquare{{{*/ 456 456 void Matice::GetViscosityDerivativeEpsSquare(double* pmu_prime, double* epsilon){ 457 457 … … 487 487 } 488 488 /*}}}*/ 489 /*FUNCTION Matice::GetViscosity2dDerivativeEpsSquare{{{ 1*/489 /*FUNCTION Matice::GetViscosity2dDerivativeEpsSquare{{{*/ 490 490 void Matice::GetViscosity2dDerivativeEpsSquare(double* pmu_prime, double* epsilon){ 491 491 … … 518 518 } 519 519 /*}}}*/ 520 /*FUNCTION Matice::InputDuplicate{{{ 1*/520 /*FUNCTION Matice::InputDuplicate{{{*/ 521 521 void Matice::InputDuplicate(int original_enum,int new_enum){ 522 522 … … 526 526 } 527 527 /*}}}*/ 528 /*FUNCTION Matice::InputUpdateFromVector(double* vector, int name, int type) {{{ 1*/528 /*FUNCTION Matice::InputUpdateFromVector(double* vector, int name, int type) {{{*/ 529 529 void Matice::InputUpdateFromVector(double* vector, int name, int type){ 530 530 … … 556 556 } 557 557 /*}}}*/ 558 /*FUNCTION Matice::InputUpdateFromVector(int* vector, int name, int type) {{{ 1*/558 /*FUNCTION Matice::InputUpdateFromVector(int* vector, int name, int type) {{{*/ 559 559 void Matice::InputUpdateFromVector(int* vector, int name, int type){ 560 560 /*Nothing updated yet*/ 561 561 } 562 562 /*}}}*/ 563 /*FUNCTION Matice::InputUpdateFromVector(bool* vector, int name, int type) {{{ 1*/563 /*FUNCTION Matice::InputUpdateFromVector(bool* vector, int name, int type) {{{*/ 564 564 void Matice::InputUpdateFromVector(bool* vector, int name, int type){ 565 565 /*Nothing updated yet*/ 566 566 } 567 567 /*}}}*/ 568 /*FUNCTION Matice::InputUpdateFromVectorDakota(double* vector, int name, int type) {{{ 1*/568 /*FUNCTION Matice::InputUpdateFromVectorDakota(double* vector, int name, int type) {{{*/ 569 569 void Matice::InputUpdateFromVectorDakota(double* vector, int name, int type){ 570 570 … … 590 590 for (int i=0;i<3;i++) values[i]=vector[((Tria*)element)->nodes[i]->GetSidList()]; //use sid list, to index into serial oriented vector 591 591 this->inputs->AddInput(new TriaP1Input(name,values)); 592 /*Special case for rheology B in 2D: Pourave land for this solution{{{ 2*/592 /*Special case for rheology B in 2D: Pourave land for this solution{{{*/ 593 593 if(name==MaterialsRheologyBEnum){ 594 594 /*Are we in 2D?:*/ … … 617 617 } 618 618 /*}}}*/ 619 /*FUNCTION Matice::InputUpdateFromMatrixDakota(int* vector, int name, int type) {{{ 1*/619 /*FUNCTION Matice::InputUpdateFromMatrixDakota(int* vector, int name, int type) {{{*/ 620 620 void Matice::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols,int name, int type){ 621 621 /*Nothing updated yet*/ 622 622 } 623 623 /*}}}*/ 624 /*FUNCTION Matice::InputUpdateFromVectorDakota(int* vector, int name, int type) {{{ 1*/624 /*FUNCTION Matice::InputUpdateFromVectorDakota(int* vector, int name, int type) {{{*/ 625 625 void Matice::InputUpdateFromVectorDakota(int* vector, int name, int type){ 626 626 /*Nothing updated yet*/ 627 627 } 628 628 /*}}}*/ 629 /*FUNCTION Matice::InputUpdateFromVectorDakota(bool* vector, int name, int type) {{{ 1*/629 /*FUNCTION Matice::InputUpdateFromVectorDakota(bool* vector, int name, int type) {{{*/ 630 630 void Matice::InputUpdateFromVectorDakota(bool* vector, int name, int type){ 631 631 /*Nothing updated yet*/ 632 632 } 633 633 /*}}}*/ 634 /*FUNCTION Matice::InputUpdateFromConstant(double constant, int name) {{{ 1*/634 /*FUNCTION Matice::InputUpdateFromConstant(double constant, int name) {{{*/ 635 635 void Matice::InputUpdateFromConstant(double constant, int name){ 636 636 /*Nothing updated yet*/ 637 637 } 638 638 /*}}}*/ 639 /*FUNCTION Matice::InputUpdateFromConstant(int constant, int name) {{{ 1*/639 /*FUNCTION Matice::InputUpdateFromConstant(int constant, int name) {{{*/ 640 640 void Matice::InputUpdateFromConstant(int constant, int name){ 641 641 /*Nothing updated yet*/ 642 642 } 643 643 /*}}}*/ 644 /*FUNCTION Matice::InputUpdateFromConstant(bool constant, int name) {{{ 1*/644 /*FUNCTION Matice::InputUpdateFromConstant(bool constant, int name) {{{*/ 645 645 void Matice::InputUpdateFromConstant(bool constant, int name){ 646 646 /*Nothing updated yet*/ 647 647 } 648 648 /*}}}*/ 649 /*FUNCTION Matice::InputUpdateFromSolution{{{ 1*/649 /*FUNCTION Matice::InputUpdateFromSolution{{{*/ 650 650 void Matice::InputUpdateFromSolution(double* solution){ 651 651 /*Nothing updated yet*/ 652 652 } 653 653 /*}}}*/ 654 /*FUNCTION Matice::InputUpdateFromIoModel{{{ 1*/654 /*FUNCTION Matice::InputUpdateFromIoModel{{{*/ 655 655 void Matice::InputUpdateFromIoModel(int index, IoModel* iomodel){ 656 656 … … 756 756 } 757 757 /*}}}*/ 758 /*FUNCTION Matice::IsInput{{{ 1*/758 /*FUNCTION Matice::IsInput{{{*/ 759 759 bool Matice::IsInput(int name){ 760 760 if ( -
TabularUnified issm/trunk-jpl/src/c/objects/Materials/Matice.h ¶
r12014 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "./Material.h" 11 11 class IoModel; … … 25 25 Inputs* inputs; 26 26 27 /*Matice constructors, destructors: {{{ 1*/27 /*Matice constructors, destructors: {{{*/ 28 28 Matice(); 29 29 Matice(int mid,int i, IoModel* iomodel); 30 30 ~Matice(); 31 31 /*}}}*/ 32 /*Object virtual functions definitions:{{{ 1*/32 /*Object virtual functions definitions:{{{ */ 33 33 void Echo(); 34 34 void DeepEcho(); … … 38 38 Object* copy(); 39 39 /*}}}*/ 40 /*Update virtual functions definitions: {{{ 1*/40 /*Update virtual functions definitions: {{{*/ 41 41 void InputUpdateFromVector(double* vector, int name, int type); 42 42 void InputUpdateFromVector(int* vector, int name, int type); … … 52 52 void InputUpdateFromIoModel(int index, IoModel* iomodel); 53 53 /*}}}*/ 54 /*Material virtual functions resolution: {{{ 1*/54 /*Material virtual functions resolution: {{{*/ 55 55 void InputDuplicate(int original_enum,int new_enum); 56 56 void Configure(Elements* elements); 57 57 void GetVectorFromInputs(Vector* vector,int input_enum); 58 58 /*}}}*/ 59 /*Matice Numerics: {{{ 1*/59 /*Matice Numerics: {{{*/ 60 60 void SetCurrentConfiguration(Elements* elementsin,Loads* loadsin,Nodes* nodesin,Vertices* verticesin,Materials* materialsin,Parameters* parametersin); 61 61 void GetViscosity2d(double* pviscosity, double* pepsilon); -
TabularUnified issm/trunk-jpl/src/c/objects/Materials/Matpar.cpp ¶
r12326 r12365 17 17 18 18 /*Matpar constructors and destructor*/ 19 /*FUNCTION Matpar::Matpar() {{{ 1*/19 /*FUNCTION Matpar::Matpar() {{{*/ 20 20 Matpar::Matpar(){ 21 21 return; 22 22 } 23 /*}}} 1*/24 /*FUNCTION Matpar::Matpar(int matpar_mid,IoModel* iomodel){{{ 1*/23 /*}}}*/ 24 /*FUNCTION Matpar::Matpar(int matpar_mid,IoModel* iomodel){{{*/ 25 25 Matpar::Matpar(int matpar_mid, IoModel* iomodel){ 26 26 … … 46 46 iomodel->Constant(&this->hydro_q,HydrologyQEnum); 47 47 } 48 /*}}} 1*/49 /*FUNCTION Matpar::~Matpar() {{{ 1*/48 /*}}}*/ 49 /*FUNCTION Matpar::~Matpar() {{{*/ 50 50 Matpar::~Matpar(){ 51 51 return; 52 52 } 53 /*}}} 1*/53 /*}}}*/ 54 54 55 55 /*Object virtual functions definitions:*/ 56 /*FUNCTION Matpar::Echo {{{ 1*/56 /*FUNCTION Matpar::Echo {{{*/ 57 57 void Matpar::Echo(void){ 58 58 … … 74 74 return; 75 75 } 76 /*}}} 1*/77 /*FUNCTION Matpar::DeepEcho {{{ 1*/76 /*}}}*/ 77 /*FUNCTION Matpar::DeepEcho {{{*/ 78 78 void Matpar::DeepEcho(void){ 79 79 80 80 this->Echo(); 81 81 } 82 /*}}} 1*/83 /*FUNCTION Matpar::Id {{{ 1*/82 /*}}}*/ 83 /*FUNCTION Matpar::Id {{{*/ 84 84 int Matpar::Id(void){ return mid; } 85 /*}}} 1*/86 /*FUNCTION Matpar::MyRank {{{ 1*/85 /*}}}*/ 86 /*FUNCTION Matpar::MyRank {{{*/ 87 87 int Matpar::MyRank(void){ 88 88 extern int my_rank; 89 89 return my_rank; 90 90 } 91 /*}}} 1*/92 /*FUNCTION Matpar::ObjectEnum{{{ 1*/91 /*}}}*/ 92 /*FUNCTION Matpar::ObjectEnum{{{*/ 93 93 int Matpar::ObjectEnum(void){ 94 94 … … 96 96 97 97 } 98 /*}}} 1*/99 /*FUNCTION Matpar::copy {{{ 1*/98 /*}}}*/ 99 /*FUNCTION Matpar::copy {{{*/ 100 100 Object* Matpar::copy() { 101 101 return new Matpar(*this); 102 102 } 103 /*}}} 1*/103 /*}}}*/ 104 104 105 105 /*Update virtual functions definitions:*/ 106 /*FUNCTION Matpar::InputUpdateFromVector(double* vector, int name, int type) {{{ 1*/106 /*FUNCTION Matpar::InputUpdateFromVector(double* vector, int name, int type) {{{*/ 107 107 void Matpar::InputUpdateFromVector(double* vector, int name, int type){ 108 108 /*Nothing updated yet*/ 109 109 } 110 110 /*}}}*/ 111 /*FUNCTION Matpar::InputUpdateFromVector(int* vector, int name, int type) {{{ 1*/111 /*FUNCTION Matpar::InputUpdateFromVector(int* vector, int name, int type) {{{*/ 112 112 void Matpar::InputUpdateFromVector(int* vector, int name, int type){ 113 113 /*Nothing updated yet*/ 114 114 } 115 115 /*}}}*/ 116 /*FUNCTION Matpar::InputUpdateFromVector(bool* vector, int name, int type) {{{ 1*/116 /*FUNCTION Matpar::InputUpdateFromVector(bool* vector, int name, int type) {{{*/ 117 117 void Matpar::InputUpdateFromVector(bool* vector, int name, int type){ 118 118 /*Nothing updated yet*/ 119 119 } 120 120 /*}}}*/ 121 /*FUNCTION Matpar::InputUpdateFromVectorDakota(double* vector, int name, int type) {{{ 1*/121 /*FUNCTION Matpar::InputUpdateFromVectorDakota(double* vector, int name, int type) {{{*/ 122 122 void Matpar::InputUpdateFromVectorDakota(double* vector, int name, int type){ 123 123 /*Nothing updated yet*/ 124 124 } 125 125 /*}}}*/ 126 /*FUNCTION Matpar::InputUpdateFromVectorDakota(int* vector, int name, int type) {{{ 1*/126 /*FUNCTION Matpar::InputUpdateFromVectorDakota(int* vector, int name, int type) {{{*/ 127 127 void Matpar::InputUpdateFromVectorDakota(int* vector, int name, int type){ 128 128 /*Nothing updated yet*/ 129 129 } 130 130 /*}}}*/ 131 /*FUNCTION Matpar::InputUpdateFromVectorDakota(bool* vector, int name, int type) {{{ 1*/131 /*FUNCTION Matpar::InputUpdateFromVectorDakota(bool* vector, int name, int type) {{{*/ 132 132 void Matpar::InputUpdateFromVectorDakota(bool* vector, int name, int type){ 133 133 /*Nothing updated yet*/ 134 134 } 135 135 /*}}}*/ 136 /*FUNCTION Matpar::InputUpdateFromMatrixDakota(int* vector, int name, int type) {{{ 1*/136 /*FUNCTION Matpar::InputUpdateFromMatrixDakota(int* vector, int name, int type) {{{*/ 137 137 void Matpar::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols,int name, int type){ 138 138 /*Nothing updated yet*/ 139 139 } 140 140 /*}}}*/ 141 /*FUNCTION Matpar::InputUpdateFromConstant(double constant, int name) {{{ 1*/141 /*FUNCTION Matpar::InputUpdateFromConstant(double constant, int name) {{{*/ 142 142 void Matpar::InputUpdateFromConstant(double constant, int name){ 143 143 … … 188 188 } 189 189 /*}}}*/ 190 /*FUNCTION Matpar::InputUpdateFromConstant(int constant, int name) {{{ 1*/190 /*FUNCTION Matpar::InputUpdateFromConstant(int constant, int name) {{{*/ 191 191 void Matpar::InputUpdateFromConstant(int constant, int name){ 192 192 /*Nothing updated yet*/ 193 193 } 194 194 /*}}}*/ 195 /*FUNCTION Matpar::InputUpdateFromConstant(bool constant, int name) {{{ 1*/195 /*FUNCTION Matpar::InputUpdateFromConstant(bool constant, int name) {{{*/ 196 196 void Matpar::InputUpdateFromConstant(bool constant, int name){ 197 197 /*Nothing updated yet*/ 198 198 } 199 199 /*}}}*/ 200 /*FUNCTION Matpar::InputUpdateFromSolution{{{ 1*/200 /*FUNCTION Matpar::InputUpdateFromSolution{{{*/ 201 201 void Matpar::InputUpdateFromSolution(double* solution){ 202 202 /*Nothing updated yet*/ … … 205 205 206 206 /*Matpar management: */ 207 /*FUNCTION Matpar::Configure {{{ 1*/207 /*FUNCTION Matpar::Configure {{{*/ 208 208 void Matpar::Configure(Elements* elementsin){ 209 209 … … 212 212 } 213 213 /*}}}*/ 214 /*FUNCTION Matpar::GetBeta {{{ 1*/214 /*FUNCTION Matpar::GetBeta {{{*/ 215 215 double Matpar::GetBeta(){ 216 216 return beta; 217 217 } 218 /*}}} 1*/219 /*FUNCTION Matpar::GetG {{{ 1*/218 /*}}}*/ 219 /*FUNCTION Matpar::GetG {{{*/ 220 220 double Matpar::GetG(){ 221 221 return g; 222 222 } 223 /*}}} 1*/224 /*FUNCTION Matpar::GetHeatCapacity {{{ 1*/223 /*}}}*/ 224 /*FUNCTION Matpar::GetHeatCapacity {{{*/ 225 225 double Matpar::GetHeatCapacity(){ 226 226 return heatcapacity; 227 227 } 228 /*}}} 1*/229 /*FUNCTION Matpar::GetLatentHeat {{{ 1*/228 /*}}}*/ 229 /*FUNCTION Matpar::GetLatentHeat {{{*/ 230 230 double Matpar::GetLatentHeat(){ 231 231 return latentheat; 232 232 } 233 /*}}} 1*/234 /*FUNCTION Matpar::GetMeltingPoint {{{ 1*/233 /*}}}*/ 234 /*FUNCTION Matpar::GetMeltingPoint {{{*/ 235 235 double Matpar::GetMeltingPoint(){ 236 236 return meltingpoint; 237 237 } 238 /*}}} 1*/239 /*FUNCTION Matpar::GetReferenceTemperature {{{ 1*/238 /*}}}*/ 239 /*FUNCTION Matpar::GetReferenceTemperature {{{*/ 240 240 double Matpar::GetReferenceTemperature(){ 241 241 return referencetemperature; 242 242 } 243 /*}}} 1*/244 /*FUNCTION Matpar::GetMixedLayerCapacity {{{ 1*/243 /*}}}*/ 244 /*FUNCTION Matpar::GetMixedLayerCapacity {{{*/ 245 245 double Matpar::GetMixedLayerCapacity(){ 246 246 return mixed_layer_capacity; 247 247 } 248 /*}}} 1*/249 /*FUNCTION Matpar::GetRhoIce {{{ 1*/248 /*}}}*/ 249 /*FUNCTION Matpar::GetRhoIce {{{*/ 250 250 double Matpar::GetRhoIce(){ 251 251 252 252 return rho_ice; 253 253 } 254 /*}}} 1*/255 /*FUNCTION Matpar::GetRhoWater {{{ 1*/254 /*}}}*/ 255 /*FUNCTION Matpar::GetRhoWater {{{*/ 256 256 double Matpar::GetRhoWater(){ 257 257 return rho_water; 258 258 } 259 /*}}} 1*/260 /*FUNCTION Matpar::GetRhoFreshwater {{{ 1*/259 /*}}}*/ 260 /*FUNCTION Matpar::GetRhoFreshwater {{{*/ 261 261 double Matpar::GetRhoFreshwater(){ 262 262 return rho_freshwater; 263 263 } 264 /*}}} 1*/265 /*FUNCTION Matpar::GetMuWater {{{ 1*/264 /*}}}*/ 265 /*FUNCTION Matpar::GetMuWater {{{*/ 266 266 double Matpar::GetMuWater(){ 267 267 return mu_water; 268 268 } 269 /*}}} 1*/270 /*FUNCTION Matpar::GetThermalConductivity {{{ 1*/269 /*}}}*/ 270 /*FUNCTION Matpar::GetThermalConductivity {{{*/ 271 271 double Matpar::GetThermalConductivity(){ 272 272 return thermalconductivity; 273 273 } 274 /*}}} 1*/275 /*FUNCTION Matpar::GetThermalExchangeVelocity {{{ 1*/274 /*}}}*/ 275 /*FUNCTION Matpar::GetThermalExchangeVelocity {{{*/ 276 276 double Matpar::GetThermalExchangeVelocity(){ 277 277 return thermal_exchange_velocity; 278 278 } 279 /*}}} 1*/280 /*FUNCTION Matpar::GetKn {{{ 1*/279 /*}}}*/ 280 /*FUNCTION Matpar::GetKn {{{*/ 281 281 double Matpar::GetKn(){ 282 282 return kn; 283 283 } 284 /*}}} 1*/285 /*FUNCTION Matpar::GetHydrologyP {{{ 1*/284 /*}}}*/ 285 /*FUNCTION Matpar::GetHydrologyP {{{*/ 286 286 double Matpar::GetHydrologyP(){ 287 287 return hydro_p; 288 288 } 289 /*}}} 1*/290 /*FUNCTION Matqar::GetHydrologyQ {{{ 1*/289 /*}}}*/ 290 /*FUNCTION Matqar::GetHydrologyQ {{{*/ 291 291 double Matpar::GetHydrologyQ(){ 292 292 return hydro_q; 293 293 } 294 /*}}} 1*/295 /*FUNCTION Matpar::GetHydrologyCR {{{ 1*/294 /*}}}*/ 295 /*FUNCTION Matpar::GetHydrologyCR {{{*/ 296 296 double Matpar::GetHydrologyCR(){ 297 297 return hydro_CR; 298 298 } 299 /*}}} 1*/300 /*FUNCTION Matpar::GetHydrologyN {{{ 1*/299 /*}}}*/ 300 /*FUNCTION Matpar::GetHydrologyN {{{*/ 301 301 double Matpar::GetHydrologyN(){ 302 302 return hydro_n; 303 303 } 304 /*}}} 1*/305 /*FUNCTION Matpar::TMeltingPoint {{{ 1*/304 /*}}}*/ 305 /*FUNCTION Matpar::TMeltingPoint {{{*/ 306 306 double Matpar::TMeltingPoint(double pressure){ 307 307 return meltingpoint-beta*pressure; 308 308 } 309 /*}}} 1*/310 /*FUNCTION Matpar::PureIceEnthalpy{{{ 1*/309 /*}}}*/ 310 /*FUNCTION Matpar::PureIceEnthalpy{{{*/ 311 311 double Matpar::PureIceEnthalpy(double pressure){ 312 312 return heatcapacity*(TMeltingPoint(pressure)-referencetemperature); 313 313 } 314 /*}}} 1*/315 /*FUNCTION Matpar::GetEnthalpyDiffusionParameter{{{ 1*/314 /*}}}*/ 315 /*FUNCTION Matpar::GetEnthalpyDiffusionParameter{{{*/ 316 316 double Matpar::GetEnthalpyDiffusionParameter(double enthalpy,double pressure){ 317 317 if(enthalpy<PureIceEnthalpy(pressure)){ … … 322 322 } 323 323 } 324 /*}}} 1*/325 /*FUNCTION Matpar::EnthalpyToThermal {{{ 1*/324 /*}}}*/ 325 /*FUNCTION Matpar::EnthalpyToThermal {{{*/ 326 326 void Matpar::EnthalpyToThermal(double* ptemperature,double* pwaterfraction,double enthalpy,double pressure){ 327 327 … … 342 342 *ptemperature=temperature; 343 343 } 344 /*}}} 1*/345 /*FUNCTION Matpar::ThermalToEnthalpy {{{ 1*/344 /*}}}*/ 345 /*FUNCTION Matpar::ThermalToEnthalpy {{{*/ 346 346 void Matpar::ThermalToEnthalpy(double * penthalpy,double temperature,double waterfraction,double pressure){ 347 347 … … 359 359 *penthalpy=enthalpy; 360 360 } 361 /*}}} 1*/361 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Materials/Matpar.h ¶
r12326 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "./Material.h" 11 11 class IoModel; … … 42 42 ~Matpar(); 43 43 44 /*Object virtual functions definitions:{{{ 1*/44 /*Object virtual functions definitions:{{{ */ 45 45 void Echo(); 46 46 void DeepEcho(); … … 50 50 Object* copy(); 51 51 /*}}}*/ 52 /*Update virtual functions resolution: {{{ 1*/52 /*Update virtual functions resolution: {{{*/ 53 53 void InputUpdateFromVector(double* vector, int name, int type); 54 54 void InputUpdateFromVector(int* vector, int name, int type); … … 64 64 void InputUpdateFromIoModel(int index, IoModel* iomodel){_error_("not implemented yet");}; 65 65 /*}}}*/ 66 /*Material virtual functions resolution: {{{ 1*/66 /*Material virtual functions resolution: {{{*/ 67 67 void InputDuplicate(int original_enum,int new_enum){_error_("not implemented yet");}; 68 68 void Configure(Elements* elements); 69 69 void GetVectorFromInputs(Vector* vector,int input_enum){return;} 70 70 /*}}}*/ 71 /*Numerics: {{{ 1*/71 /*Numerics: {{{*/ 72 72 double GetG(); 73 73 double GetRhoIce(); -
TabularUnified issm/trunk-jpl/src/c/objects/Node.cpp ¶
r12350 r12365 3 3 */ 4 4 5 /*Include files: {{{ 1*/5 /*Include files: {{{*/ 6 6 #ifdef HAVE_CONFIG_H 7 7 #include <config.h> … … 21 21 22 22 /*Node constructors and destructors:*/ 23 /*FUNCTION Node::Node() default constructor {{{ 1*/23 /*FUNCTION Node::Node() default constructor {{{*/ 24 24 Node::Node(){ 25 25 this->inputs=NULL; … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION Node::Node(int node_id,int node_sid,int vertex_id,int io_index, IoModel* iomodel,int analysis_type) {{{ 1*/30 /*FUNCTION Node::Node(int node_id,int node_sid,int vertex_id,int io_index, IoModel* iomodel,int analysis_type) {{{*/ 31 31 Node::Node(int node_id,int node_sid,int vertex_id,int io_index, IoModel* iomodel,int analysis_type){ 32 32 … … 145 145 } 146 146 /*}}}*/ 147 /*FUNCTION Node::~Node(){{{ 1*/147 /*FUNCTION Node::~Node(){{{*/ 148 148 Node::~Node(){ 149 149 delete inputs; … … 154 154 155 155 /*Object virtual functions definitions:*/ 156 /*FUNCTION Node::Echo{{{ 1*/156 /*FUNCTION Node::Echo{{{*/ 157 157 void Node::Echo(void){ 158 158 … … 168 168 } 169 169 /*}}}*/ 170 /*FUNCTION Node::DeepEcho{{{ 1*/170 /*FUNCTION Node::DeepEcho{{{*/ 171 171 void Node::DeepEcho(void){ 172 172 … … 183 183 } 184 184 /*}}}*/ 185 /*FUNCTION Node::Id{{{ 1*/185 /*FUNCTION Node::Id{{{*/ 186 186 int Node::Id(void){ return id; } 187 187 /*}}}*/ 188 /*FUNCTION Node::MyRank{{{ 1*/188 /*FUNCTION Node::MyRank{{{*/ 189 189 int Node::MyRank(void){ 190 190 extern int my_rank; … … 193 193 } 194 194 /*}}}*/ 195 /*FUNCTION Node::ObjectEnum{{{ 1*/195 /*FUNCTION Node::ObjectEnum{{{*/ 196 196 int Node::ObjectEnum(void){ 197 197 … … 202 202 203 203 /*Node management:*/ 204 /*FUNCTION Node::Configure {{{ 1*/204 /*FUNCTION Node::Configure {{{*/ 205 205 void Node::Configure(DataSet* nodesin,Vertices* verticesin){ 206 206 … … 212 212 213 213 } 214 /*FUNCTION Node::SetCurrentConfiguration {{{ 1*/214 /*FUNCTION Node::SetCurrentConfiguration {{{*/ 215 215 void Node::SetCurrentConfiguration(DataSet* nodesin,Vertices* verticesin){ 216 216 217 217 } 218 /*FUNCTION Node::GetDof {{{ 1*/218 /*FUNCTION Node::GetDof {{{*/ 219 219 int Node::GetDof(int dofindex,int setenum){ 220 220 … … 235 235 } 236 236 /*}}}*/ 237 /*FUNCTION Node::GetDofList1{{{ 1*/237 /*FUNCTION Node::GetDofList1{{{*/ 238 238 int Node::GetDofList1(void){ 239 239 … … 245 245 } 246 246 /*}}}*/ 247 /*FUNCTION Node::GetDofList{{{ 1*/247 /*FUNCTION Node::GetDofList{{{*/ 248 248 void Node::GetDofList(int* outdoflist,int approximation_enum,int setenum){ 249 249 int i; … … 307 307 } 308 308 /*}}}*/ 309 /*FUNCTION Node::GetSidList{{{ 1*/309 /*FUNCTION Node::GetSidList{{{*/ 310 310 int Node::GetSidList(void){ 311 311 … … 317 317 } 318 318 /*}}}*/ 319 /*FUNCTION Node::GetLocalDofList{{{ 1*/319 /*FUNCTION Node::GetLocalDofList{{{*/ 320 320 void Node::GetLocalDofList(int* outdoflist,int approximation_enum,int setenum){ 321 321 int i; … … 416 416 } 417 417 /*}}}*/ 418 /*FUNCTION Node::Sid{{{ 1*/418 /*FUNCTION Node::Sid{{{*/ 419 419 int Node::Sid(void){ return sid; } 420 420 /*}}}*/ 421 /*FUNCTION Node::GetVertexId {{{ 1*/421 /*FUNCTION Node::GetVertexId {{{*/ 422 422 int Node::GetVertexId(void){ 423 423 … … 428 428 } 429 429 /*}}}*/ 430 /*FUNCTION Node::GetVertexDof {{{ 1*/430 /*FUNCTION Node::GetVertexDof {{{*/ 431 431 int Node::GetVertexDof(void){ 432 432 … … 438 438 /*}}}*/ 439 439 #ifdef _HAVE_DIAGNOSTIC_ 440 /*FUNCTION Node::GetCoordinateSystem{{{ 1*/440 /*FUNCTION Node::GetCoordinateSystem{{{*/ 441 441 void Node::GetCoordinateSystem(IssmDouble* coord_system_out){ 442 442 … … 447 447 /*}}}*/ 448 448 #endif 449 /*FUNCTION Node::SetVertexDof {{{ 1*/449 /*FUNCTION Node::SetVertexDof {{{*/ 450 450 void Node::SetVertexDof(int in_dof){ 451 451 … … 457 457 } 458 458 /*}}}*/ 459 /*FUNCTION Node::InAnalysis{{{ 1*/459 /*FUNCTION Node::InAnalysis{{{*/ 460 460 bool Node::InAnalysis(int in_analysis_type){ 461 461 if (in_analysis_type==this->analysis_type) return true; … … 465 465 466 466 /*Node numerics:*/ 467 /*FUNCTION Node::ApplyConstraints{{{ 1*/467 /*FUNCTION Node::ApplyConstraints{{{*/ 468 468 void Node::ApplyConstraint(int dof,IssmDouble value){ 469 469 … … 476 476 } 477 477 /*}}}*/ 478 /*FUNCTION Node::RelaxConstraint{{{ 1*/478 /*FUNCTION Node::RelaxConstraint{{{*/ 479 479 void Node::RelaxConstraint(int dof){ 480 480 … … 484 484 } 485 485 /*}}}*/ 486 /*FUNCTION Node::CreateVecSets {{{ 1*/486 /*FUNCTION Node::CreateVecSets {{{*/ 487 487 void Node::CreateVecSets(Vector* pv_g,Vector* pv_f,Vector* pv_s){ 488 488 … … 510 510 } 511 511 /*}}}*/ 512 /*FUNCTION Node::CreateNodalConstraints{{{ 1*/512 /*FUNCTION Node::CreateNodalConstraints{{{*/ 513 513 void Node::CreateNodalConstraints(Vector* ys){ 514 514 … … 539 539 } 540 540 /*}}}*/ 541 /*FUNCTION Node::DofInSSet {{{ 1*/541 /*FUNCTION Node::DofInSSet {{{*/ 542 542 void Node::DofInSSet(int dof){ 543 543 … … 549 549 } 550 550 /*}}}*/ 551 /*FUNCTION Node::DofInFSet {{{ 1*/551 /*FUNCTION Node::DofInFSet {{{*/ 552 552 void Node::DofInFSet(int dof){ 553 553 … … 559 559 } 560 560 /*}}}*/ 561 /*FUNCTION Node::FreezeDof{{{ 1*/561 /*FUNCTION Node::FreezeDof{{{*/ 562 562 void Node::FreezeDof(int dof){ 563 563 … … 566 566 } 567 567 /*}}}*/ 568 /*FUNCTION Node::GetApproximation {{{ 1*/568 /*FUNCTION Node::GetApproximation {{{*/ 569 569 int Node::GetApproximation(){ 570 570 … … 577 577 } 578 578 /*}}}*/ 579 /*FUNCTION Node::GetConnectivity {{{ 1*/579 /*FUNCTION Node::GetConnectivity {{{*/ 580 580 int Node::GetConnectivity(){ 581 581 … … 585 585 } 586 586 /*}}}*/ 587 /*FUNCTION Node::GetNumberOfDofs{{{ 1*/587 /*FUNCTION Node::GetNumberOfDofs{{{*/ 588 588 int Node::GetNumberOfDofs(int approximation_enum,int setenum){ 589 589 … … 633 633 } 634 634 /*}}}*/ 635 /*FUNCTION Node::GetSigma {{{ 1*/635 /*FUNCTION Node::GetSigma {{{*/ 636 636 IssmDouble Node::GetSigma(){ 637 637 Vertex* vertex=NULL; … … 641 641 } 642 642 /*}}}*/ 643 /*FUNCTION Node::GetX {{{ 1*/643 /*FUNCTION Node::GetX {{{*/ 644 644 IssmDouble Node::GetX(){ 645 645 Vertex* vertex=NULL; … … 649 649 } 650 650 /*}}}*/ 651 /*FUNCTION Node::GetY {{{ 1*/651 /*FUNCTION Node::GetY {{{*/ 652 652 IssmDouble Node::GetY(){ 653 653 Vertex* vertex=NULL; … … 657 657 } 658 658 /*}}}*/ 659 /*FUNCTION Node::GetZ {{{ 1*/659 /*FUNCTION Node::GetZ {{{*/ 660 660 IssmDouble Node::GetZ(){ 661 661 Vertex* vertex=NULL; … … 665 665 } 666 666 /*}}}*/ 667 /*FUNCTION Node::IsClone {{{ 1*/667 /*FUNCTION Node::IsClone {{{*/ 668 668 int Node::IsClone(){ 669 669 … … 672 672 } 673 673 /*}}}*/ 674 /*FUNCTION Node::IsOnBed {{{ 1*/674 /*FUNCTION Node::IsOnBed {{{*/ 675 675 int Node::IsOnBed(){ 676 676 … … 683 683 } 684 684 /*}}}*/ 685 /*FUNCTION Node::IsGrounded {{{ 1*/685 /*FUNCTION Node::IsGrounded {{{*/ 686 686 int Node::IsGrounded(){ 687 687 … … 694 694 } 695 695 /*}}}*/ 696 /*FUNCTION Node::IsFloating {{{ 1*/696 /*FUNCTION Node::IsFloating {{{*/ 697 697 int Node::IsFloating(){ 698 698 … … 705 705 } 706 706 /*}}}*/ 707 /*FUNCTION Node::IsOnSurface {{{ 1*/707 /*FUNCTION Node::IsOnSurface {{{*/ 708 708 int Node::IsOnSurface(){ 709 709 … … 716 716 } 717 717 /*}}}*/ 718 /*FUNCTION Node::InputUpdateFromVector(IssmDouble* vector, int name, int type){{{ 1*/718 /*FUNCTION Node::InputUpdateFromVector(IssmDouble* vector, int name, int type){{{*/ 719 719 void Node::InputUpdateFromVector(IssmDouble* vector, int name, int type){ 720 720 … … 722 722 } 723 723 /*}}}*/ 724 /*FUNCTION Node::InputUpdateFromVector(int* vector, int name, int type){{{ 1*/724 /*FUNCTION Node::InputUpdateFromVector(int* vector, int name, int type){{{*/ 725 725 void Node::InputUpdateFromVector(int* vector, int name, int type){ 726 726 … … 728 728 } 729 729 /*}}}*/ 730 /*FUNCTION Node::InputUpdateFromVector(bool* vector, int name, int type){{{ 1*/730 /*FUNCTION Node::InputUpdateFromVector(bool* vector, int name, int type){{{*/ 731 731 void Node::InputUpdateFromVector(bool* vector, int name, int type){ 732 732 … … 734 734 } 735 735 /*}}}*/ 736 /*FUNCTION Node::InputUpdateFromVectorDakota(IssmDouble* vector, int name, int type){{{ 1*/736 /*FUNCTION Node::InputUpdateFromVectorDakota(IssmDouble* vector, int name, int type){{{*/ 737 737 void Node::InputUpdateFromVectorDakota(IssmDouble* vector, int name, int type){ 738 738 … … 740 740 } 741 741 /*}}}*/ 742 /*FUNCTION Node::InputUpdateFromMatrixDakota(IssmDouble* matrix, int nrows, int ncols, int name, int type){{{ 1*/742 /*FUNCTION Node::InputUpdateFromMatrixDakota(IssmDouble* matrix, int nrows, int ncols, int name, int type){{{*/ 743 743 void Node::InputUpdateFromMatrixDakota(IssmDouble* matrix, int nrows, int ncols, int name, int type){ 744 744 … … 746 746 } 747 747 /*}}}*/ 748 /*FUNCTION Node::InputUpdateFromVectorDakota(int* vector, int name, int type){{{ 1*/748 /*FUNCTION Node::InputUpdateFromVectorDakota(int* vector, int name, int type){{{*/ 749 749 void Node::InputUpdateFromVectorDakota(int* vector, int name, int type){ 750 750 … … 752 752 } 753 753 /*}}}*/ 754 /*FUNCTION Node::InputUpdateFromVectorDakota(bool* vector, int name, int type){{{ 1*/754 /*FUNCTION Node::InputUpdateFromVectorDakota(bool* vector, int name, int type){{{*/ 755 755 void Node::InputUpdateFromVectorDakota(bool* vector, int name, int type){ 756 756 … … 758 758 } 759 759 /*}}}*/ 760 /*FUNCTION Node::InputUpdateFromConstant(IssmDouble constant, int name){{{ 1*/760 /*FUNCTION Node::InputUpdateFromConstant(IssmDouble constant, int name){{{*/ 761 761 void Node::InputUpdateFromConstant(IssmDouble constant, int name){ 762 762 … … 764 764 } 765 765 /*}}}*/ 766 /*FUNCTION Node::InputUpdateFromConstant(int constant, int name){{{ 1*/766 /*FUNCTION Node::InputUpdateFromConstant(int constant, int name){{{*/ 767 767 void Node::InputUpdateFromConstant(int constant, int name){ 768 768 … … 770 770 } 771 771 /*}}}*/ 772 /*FUNCTION Node::InputUpdateFromConstant(bool constant, int name){{{ 1*/772 /*FUNCTION Node::InputUpdateFromConstant(bool constant, int name){{{*/ 773 773 void Node::InputUpdateFromConstant(bool constant, int name){ 774 774 … … 776 776 } 777 777 /*}}}*/ 778 /*FUNCTION Node::UpdateSpcs {{{ 1*/778 /*FUNCTION Node::UpdateSpcs {{{*/ 779 779 void Node::UpdateSpcs(IssmDouble* ys){ 780 780 … … 791 791 } 792 792 /*}}}*/ 793 /*FUNCTION Node::VecMerge {{{ 1*/793 /*FUNCTION Node::VecMerge {{{*/ 794 794 void Node::VecMerge(Vector* ug, IssmDouble* vector_serial,int setenum){ 795 795 … … 842 842 } 843 843 /*}}}*/ 844 /*FUNCTION Node::VecReduce {{{ 1*/844 /*FUNCTION Node::VecReduce {{{*/ 845 845 void Node::VecReduce(Vector* vector, IssmDouble* ug_serial,int setenum){ 846 846 … … 889 889 890 890 /* DofObject routines:*/ 891 /*FUNCTION Node::DistributeDofs{{{ 1*/891 /*FUNCTION Node::DistributeDofs{{{*/ 892 892 void Node::DistributeDofs(int* pdofcount,int setenum){ 893 893 … … 936 936 } 937 937 /*}}}*/ 938 /*FUNCTION Node::Off_setDofs{{{ 1*/938 /*FUNCTION Node::Off_setDofs{{{*/ 939 939 void Node::OffsetDofs(int dofcount,int setenum){ 940 940 … … 960 960 } 961 961 /*}}}*/ 962 /*FUNCTION Node::ShowTrueDofs{{{ 1*/962 /*FUNCTION Node::ShowTrueDofs{{{*/ 963 963 void Node::ShowTrueDofs(int* truedofs, int ncols,int setenum){ 964 964 … … 977 977 } 978 978 /*}}}*/ 979 /*FUNCTION Node::UpdateCloneDofs{{{ 1*/979 /*FUNCTION Node::UpdateCloneDofs{{{*/ 980 980 void Node::UpdateCloneDofs(int* alltruedofs,int ncols,int setenum){ 981 981 … … 996 996 } 997 997 /*}}}*/ 998 /*FUNCTION Node::SetClone {{{ 1*/998 /*FUNCTION Node::SetClone {{{*/ 999 999 void Node::SetClone(int* minranks){ 1000 1000 -
TabularUnified issm/trunk-jpl/src/c/objects/Node.h ¶
r12322 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "./Object.h" 11 11 #include "../shared/shared.h" … … 34 34 IssmDouble coord_system[3][3]; 35 35 36 /*Node constructors, destructors {{{ 1*/36 /*Node constructors, destructors {{{*/ 37 37 Node(); 38 38 Node(int node_id,int node_sid, int vertex_id,int io_index, IoModel* iomodel,int analysis_type); 39 39 ~Node(); 40 40 /*}}}*/ 41 /*Object virtual functions definitions:{{{ 1*/41 /*Object virtual functions definitions:{{{ */ 42 42 void Echo(); 43 43 void DeepEcho(); … … 47 47 Object* copy(){_error_("Not implemented yet (similar to Elements)");}; 48 48 /*}}}*/ 49 /*Update virtual functions definitions: {{{ 1*/49 /*Update virtual functions definitions: {{{*/ 50 50 51 51 void InputUpdateFromVector(IssmDouble* vector, int name, int type); … … 62 62 void InputUpdateFromIoModel(int index, IoModel* iomodel){_error_("Not implemented yet!");} 63 63 /*}}}*/ 64 /*Node numerical routines {{{ 1*/64 /*Node numerical routines {{{*/ 65 65 void Configure(DataSet* nodes,Vertices* vertices); 66 66 void CreateNodalConstraints(Vector* ys); … … 102 102 103 103 /*}}}*/ 104 /*Dof Object routines {{{ 1*/104 /*Dof Object routines {{{*/ 105 105 void DistributeDofs(int* pdofcount,int setenum); 106 106 void OffsetDofs(int dofcount,int setenum); -
TabularUnified issm/trunk-jpl/src/c/objects/Numerics/ElementMatrix.cpp ¶
r11734 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 20 20 21 21 /*ElementMatrix constructors and destructor*/ 22 /*FUNCTION ElementMatrix::ElementMatrix(){{{ 1*/22 /*FUNCTION ElementMatrix::ElementMatrix(){{{*/ 23 23 ElementMatrix::ElementMatrix(){ 24 24 … … 44 44 } 45 45 /*}}}*/ 46 /*FUNCTION ElementMatrix::ElementMatrix(ElementMatrix* Ke){{{ 1*/46 /*FUNCTION ElementMatrix::ElementMatrix(ElementMatrix* Ke){{{*/ 47 47 ElementMatrix::ElementMatrix(ElementMatrix* Ke){ 48 48 … … 52 52 } 53 53 /*}}}*/ 54 /*FUNCTION ElementMatrix::ElementMatrix(ElementMatrix* Ke1, ElementMatrix* Ke2){{{ 1*/54 /*FUNCTION ElementMatrix::ElementMatrix(ElementMatrix* Ke1, ElementMatrix* Ke2){{{*/ 55 55 ElementMatrix::ElementMatrix(ElementMatrix* Ke1, ElementMatrix* Ke2){ 56 56 … … 181 181 } 182 182 /*}}}*/ 183 /*FUNCTION ElementMatrix::ElementMatrix(ElementMatrix* Ke1, ElementMatrix* Ke2,ElementMatrix* Ke3){{{ 1*/183 /*FUNCTION ElementMatrix::ElementMatrix(ElementMatrix* Ke1, ElementMatrix* Ke2,ElementMatrix* Ke3){{{*/ 184 184 ElementMatrix::ElementMatrix(ElementMatrix* Ke1, ElementMatrix* Ke2,ElementMatrix* Ke3){ 185 185 … … 196 196 } 197 197 /*}}}*/ 198 /*FUNCTION ElementMatrix::ElementMatrix(Node** nodes,int numnodes,Parameters* parameters,int approximation){{{ 1*/198 /*FUNCTION ElementMatrix::ElementMatrix(Node** nodes,int numnodes,Parameters* parameters,int approximation){{{*/ 199 199 ElementMatrix::ElementMatrix(Node** nodes,int numnodes,Parameters* parameters,int approximation){ 200 200 … … 228 228 } 229 229 /*}}}*/ 230 /*FUNCTION ElementMatrix::~ElementMatrix(){{{ 1*/230 /*FUNCTION ElementMatrix::~ElementMatrix(){{{*/ 231 231 ElementMatrix::~ElementMatrix(){ 232 232 … … 245 245 246 246 /*ElementMatrix specific routines: */ 247 /*FUNCTION ElementMatrix::AddToGlobal(Matrix* Kff, Matrix* Kfs){{{ 1*/247 /*FUNCTION ElementMatrix::AddToGlobal(Matrix* Kff, Matrix* Kfs){{{*/ 248 248 void ElementMatrix::AddToGlobal(Matrix* Kff, Matrix* Kfs){ 249 249 … … 300 300 } 301 301 /*}}}*/ 302 /*FUNCTION ElementMatrix::AddToGlobal(Matrix* Jff){{{ 1*/302 /*FUNCTION ElementMatrix::AddToGlobal(Matrix* Jff){{{*/ 303 303 void ElementMatrix::AddToGlobal(Matrix* Jff){ 304 304 … … 337 337 } 338 338 /*}}}*/ 339 /*FUNCTION ElementMatrix::CheckConsistency{{{ 1*/339 /*FUNCTION ElementMatrix::CheckConsistency{{{*/ 340 340 void ElementMatrix::CheckConsistency(void){ 341 341 /*Check element matrix values, only in debugging mode*/ … … 350 350 } 351 351 /*}}}*/ 352 /*FUNCTION ElementMatrix::Transpose{{{ 1*/352 /*FUNCTION ElementMatrix::Transpose{{{*/ 353 353 void ElementMatrix::Transpose(void){ 354 354 … … 373 373 } 374 374 /*}}}*/ 375 /*FUNCTION ElementMatrix::Echo{{{ 1*/375 /*FUNCTION ElementMatrix::Echo{{{*/ 376 376 void ElementMatrix::Echo(void){ 377 377 … … 419 419 } 420 420 /*}}}*/ 421 /*FUNCTION ElementMatrix::Init{{{ 1*/421 /*FUNCTION ElementMatrix::Init{{{*/ 422 422 void ElementMatrix::Init(ElementMatrix* Ke){ 423 423 … … 483 483 } 484 484 /*}}}*/ 485 /*FUNCTION ElementMatrix::SetDiag{{{ 1*/485 /*FUNCTION ElementMatrix::SetDiag{{{*/ 486 486 void ElementMatrix::SetDiag(double scalar){ 487 487 -
TabularUnified issm/trunk-jpl/src/c/objects/Numerics/ElementMatrix.h ¶
r11679 r12365 10 10 11 11 /*Headers:*/ 12 /*{{{ 1*/12 /*{{{*/ 13 13 #include "../Object.h" 14 14 #include "../../toolkits/toolkits.h" … … 49 49 int* col_sglobaldoflist; 50 50 51 /*ElementMatrix constructors, destructors {{{ 1*/51 /*ElementMatrix constructors, destructors {{{*/ 52 52 ElementMatrix(); 53 53 ElementMatrix(ElementMatrix* Ke); … … 57 57 ~ElementMatrix(); 58 58 /*}}}*/ 59 /*ElementMatrix specific routines {{{ 1*/59 /*ElementMatrix specific routines {{{*/ 60 60 void AddToGlobal(Matrix* Kff, Matrix* Kfs); 61 61 void AddToGlobal(Matrix* Jff); -
TabularUnified issm/trunk-jpl/src/c/objects/Numerics/ElementVector.cpp ¶
r12272 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 20 20 21 21 /*ElementVector constructors and destructor*/ 22 /*FUNCTION ElementVector::ElementVector(){{{ 1*/22 /*FUNCTION ElementVector::ElementVector(){{{*/ 23 23 ElementVector::ElementVector(){ 24 24 … … 31 31 } 32 32 /*}}}*/ 33 /*FUNCTION ElementVector::ElementVector(ElementVector* pe1, ElementVector* pe2){{{ 1*/33 /*FUNCTION ElementVector::ElementVector(ElementVector* pe1, ElementVector* pe2){{{*/ 34 34 ElementVector::ElementVector(ElementVector* pe1, ElementVector* pe2){ 35 35 … … 116 116 } 117 117 /*}}}*/ 118 /*FUNCTION ElementVector::ElementVector(ElementVector* pe1, ElementVector* pe2,ElementVector* pe3){{{ 1*/118 /*FUNCTION ElementVector::ElementVector(ElementVector* pe1, ElementVector* pe2,ElementVector* pe3){{{*/ 119 119 ElementVector::ElementVector(ElementVector* pe1, ElementVector* pe2,ElementVector* pe3){ 120 120 … … 131 131 } 132 132 /*}}}*/ 133 /*FUNCTION ElementVector::ElementVector(Node** nodes,int numnodes,Parameters* parameters,int approximation){{{ 1*/133 /*FUNCTION ElementVector::ElementVector(Node** nodes,int numnodes,Parameters* parameters,int approximation){{{*/ 134 134 ElementVector::ElementVector(Node** nodes,int numnodes,Parameters* parameters,int approximation){ 135 135 … … 149 149 } 150 150 /*}}}*/ 151 /*FUNCTION ElementVector::~ElementVector(){{{ 1*/151 /*FUNCTION ElementVector::~ElementVector(){{{*/ 152 152 ElementVector::~ElementVector(){ 153 153 … … 160 160 161 161 /*ElementVector specific routines: */ 162 /*FUNCTION ElementVector::AddToGlobal(Vector* pf){{{ 1*/162 /*FUNCTION ElementVector::AddToGlobal(Vector* pf){{{*/ 163 163 void ElementVector::AddToGlobal(Vector* pf){ 164 164 … … 184 184 } 185 185 /*}}}*/ 186 /*FUNCTION ElementVector::InsertIntoGlobal(Vector* pf){{{ 1*/186 /*FUNCTION ElementVector::InsertIntoGlobal(Vector* pf){{{*/ 187 187 void ElementVector::InsertIntoGlobal(Vector* pf){ 188 188 … … 205 205 } 206 206 /*}}}*/ 207 /*FUNCTION ElementVector::CheckConsistency{{{ 1*/207 /*FUNCTION ElementVector::CheckConsistency{{{*/ 208 208 void ElementVector::CheckConsistency(void){ 209 209 /*Check element matrix values, only in debugging mode*/ … … 216 216 } 217 217 /*}}}*/ 218 /*FUNCTION ElementVector::Echo{{{ 1*/218 /*FUNCTION ElementVector::Echo{{{*/ 219 219 void ElementVector::Echo(void){ 220 220 … … 238 238 } 239 239 /*}}}*/ 240 /*FUNCTION ElementVector::Init{{{ 1*/240 /*FUNCTION ElementVector::Init{{{*/ 241 241 void ElementVector::Init(ElementVector* pe){ 242 242 … … 264 264 } 265 265 /*}}}*/ 266 /*FUNCTION ElementVector::SetValue{{{ 1*/266 /*FUNCTION ElementVector::SetValue{{{*/ 267 267 void ElementVector::SetValue(double scalar){ 268 268 -
TabularUnified issm/trunk-jpl/src/c/objects/Numerics/ElementVector.h ¶
r12272 r12365 10 10 11 11 /*Headers:*/ 12 /*{{{ 1*/12 /*{{{*/ 13 13 #include "../Object.h" 14 14 #include "../../toolkits/toolkits.h" … … 32 32 int* fglobaldoflist; 33 33 34 /*ElementVector constructors, destructors {{{ 1*/34 /*ElementVector constructors, destructors {{{*/ 35 35 ElementVector(); 36 36 ElementVector(ElementVector* pe1,ElementVector* pe2); … … 39 39 ~ElementVector(); 40 40 /*}}}*/ 41 /*ElementVector specific routines {{{ 1*/41 /*ElementVector specific routines {{{*/ 42 42 void AddToGlobal(Vector* pf); 43 43 void InsertIntoGlobal(Vector* pf); -
TabularUnified issm/trunk-jpl/src/c/objects/Numerics/Matrix.cpp ¶
r12105 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 23 23 24 24 /*Matrix constructors and destructor*/ 25 /*FUNCTION Matrix::Matrix(){{{ 1*/25 /*FUNCTION Matrix::Matrix(){{{*/ 26 26 Matrix::Matrix(){ 27 27 … … 36 36 } 37 37 /*}}}*/ 38 /*FUNCTION Matrix::Matrix(int M,int N){{{ 1*/38 /*FUNCTION Matrix::Matrix(int M,int N){{{*/ 39 39 Matrix::Matrix(int M,int N){ 40 40 … … 49 49 } 50 50 /*}}}*/ 51 /*FUNCTION Matrix::Matrix(int M,int N,double sparsity){{{ 1*/51 /*FUNCTION Matrix::Matrix(int M,int N,double sparsity){{{*/ 52 52 Matrix::Matrix(int M,int N,double sparsity){ 53 53 … … 62 62 } 63 63 /*}}}*/ 64 /*FUNCTION Matrix::Matrix(double* serial_mat, int M,int N,double sparsity){{{ 1*/64 /*FUNCTION Matrix::Matrix(double* serial_mat, int M,int N,double sparsity){{{*/ 65 65 Matrix::Matrix(double* serial_mat, int M,int N,double sparsity){ 66 66 … … 89 89 } 90 90 /*}}}*/ 91 /*FUNCTION Matrix::Matrix(int M,int N,int connectivity,int numberofdofspernode){{{ 1*/91 /*FUNCTION Matrix::Matrix(int M,int N,int connectivity,int numberofdofspernode){{{*/ 92 92 Matrix::Matrix(int M,int N,int connectivity,int numberofdofspernode){ 93 93 … … 102 102 } 103 103 /*}}}*/ 104 /*FUNCTION Matrix::~Matrix(){{{ 1*/104 /*FUNCTION Matrix::~Matrix(){{{*/ 105 105 Matrix::~Matrix(){ 106 106 … … 117 117 118 118 /*Matrix specific routines: */ 119 /*FUNCTION Matrix::Echo{{{ 1*/119 /*FUNCTION Matrix::Echo{{{*/ 120 120 void Matrix::Echo(void){ 121 121 … … 140 140 } 141 141 /*}}}*/ 142 /*FUNCTION Matrix::Assemble{{{ 1*/142 /*FUNCTION Matrix::Assemble{{{*/ 143 143 void Matrix::Assemble(void){ 144 144 #ifdef _HAVE_PETSC_ … … 155 155 } 156 156 /*}}}*/ 157 /*FUNCTION Matrix::Norm{{{ 1*/157 /*FUNCTION Matrix::Norm{{{*/ 158 158 double Matrix::Norm(NormMode norm_type){ 159 159 … … 168 168 } 169 169 /*}}}*/ 170 /*FUNCTION Matrix::GetSize{{{ 1*/170 /*FUNCTION Matrix::GetSize{{{*/ 171 171 void Matrix::GetSize(int* pM,int* pN){ 172 172 … … 179 179 } 180 180 /*}}}*/ 181 /*FUNCTION Matrix::GetLocalSize{{{ 1*/181 /*FUNCTION Matrix::GetLocalSize{{{*/ 182 182 void Matrix::GetLocalSize(int* pM,int* pN){ 183 183 … … 190 190 } 191 191 /*}}}*/ 192 /*FUNCTION Matrix::MatMult{{{ 1*/192 /*FUNCTION Matrix::MatMult{{{*/ 193 193 void Matrix::MatMult(Vector* X,Vector* AX){ 194 194 … … 202 202 } 203 203 /*}}}*/ 204 /*FUNCTION Matrix::Duplicate{{{ 1*/204 /*FUNCTION Matrix::Duplicate{{{*/ 205 205 Matrix* Matrix::Duplicate(void){ 206 206 … … 219 219 } 220 220 /*}}}*/ 221 /*FUNCTION Matrix::ToSerial{{{ 1*/221 /*FUNCTION Matrix::ToSerial{{{*/ 222 222 double* Matrix::ToSerial(void){ 223 223 … … 232 232 } 233 233 /*}}}*/ 234 /*FUNCTION Matrix::SetValues{{{ 1*/234 /*FUNCTION Matrix::SetValues{{{*/ 235 235 void Matrix::SetValues(int m,int* idxm,int n,int* idxn,double* values,InsMode mode){ 236 236 … … 242 242 } 243 243 /*}}}*/ 244 /*FUNCTION Matrix::Convert{{{ 1*/244 /*FUNCTION Matrix::Convert{{{*/ 245 245 void Matrix::Convert(MatrixType type){ 246 246 -
TabularUnified issm/trunk-jpl/src/c/objects/Numerics/Matrix.h ¶
r12013 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 38 38 #endif 39 39 40 /*Matrix constructors, destructors {{{ 1*/40 /*Matrix constructors, destructors {{{*/ 41 41 Matrix(); 42 42 Matrix(int M,int N); … … 46 46 ~Matrix(); 47 47 /*}}}*/ 48 /*Matrix specific routines {{{ 1*/48 /*Matrix specific routines {{{*/ 49 49 void Echo(void); 50 50 void Assemble(void); -
TabularUnified issm/trunk-jpl/src/c/objects/Numerics/Vector.cpp ¶
r12181 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 22 22 23 23 /*Vector constructors and destructor*/ 24 /*FUNCTION Vector::Vector(){{{ 1*/24 /*FUNCTION Vector::Vector(){{{*/ 25 25 Vector::Vector(){ 26 26 … … 35 35 } 36 36 /*}}}*/ 37 /*FUNCTION Vector::Vector(int M,bool fromlocalsize){{{ 1*/37 /*FUNCTION Vector::Vector(int M,bool fromlocalsize){{{*/ 38 38 Vector::Vector(int pM,bool fromlocalsize){ 39 39 … … 48 48 } 49 49 /*}}}*/ 50 /*FUNCTION Vector::Vector(double* serial_vec,int M){{{ 1*/50 /*FUNCTION Vector::Vector(double* serial_vec,int M){{{*/ 51 51 Vector::Vector(double* serial_vec,int M){ 52 52 … … 70 70 /*}}}*/ 71 71 #ifdef _HAVE_PETSC_ 72 /*FUNCTION Vector::Vector(Vec petsc_vec){{{ 1*/72 /*FUNCTION Vector::Vector(Vec petsc_vec){{{*/ 73 73 Vector::Vector(Vec petsc_vec){ 74 74 … … 86 86 #endif 87 87 #if defined(_HAVE_GSL_) && !defined(_HAVE_PETSC_) 88 /*FUNCTION Vector::Vector(SeqVec* seq_vec){{{ 1*/88 /*FUNCTION Vector::Vector(SeqVec* seq_vec){{{*/ 89 89 Vector::Vector(SeqVec* seq_vec){ 90 90 … … 100 100 #endif 101 101 102 /*FUNCTION Vector::~Vector(){{{ 1*/102 /*FUNCTION Vector::~Vector(){{{*/ 103 103 Vector::~Vector(){ 104 104 … … 115 115 116 116 /*Vector specific routines: */ 117 /*FUNCTION Vector::Echo{{{ 1*/117 /*FUNCTION Vector::Echo{{{*/ 118 118 void Vector::Echo(void){ 119 119 … … 132 132 } 133 133 /*}}}*/ 134 /*FUNCTION Vector::Assemble{{{ 1*/134 /*FUNCTION Vector::Assemble{{{*/ 135 135 void Vector::Assemble(void){ 136 136 … … 145 145 } 146 146 /*}}}*/ 147 /*FUNCTION Vector::SetValues{{{ 1*/147 /*FUNCTION Vector::SetValues{{{*/ 148 148 void Vector::SetValues(int ssize, int* list, double* values, InsMode mode){ 149 149 … … 158 158 } 159 159 /*}}}*/ 160 /*FUNCTION Vector::SetValue{{{ 1*/160 /*FUNCTION Vector::SetValue{{{*/ 161 161 void Vector::SetValue(int dof, double value, InsMode mode){ 162 162 … … 170 170 } 171 171 /*}}}*/ 172 /*FUNCTION Vector::GetValue{{{ 1*/172 /*FUNCTION Vector::GetValue{{{*/ 173 173 void Vector::GetValue(double* pvalue,int dof){ 174 174 … … 181 181 } 182 182 /*}}}*/ 183 /*FUNCTION Vector::GetSize{{{ 1*/183 /*FUNCTION Vector::GetSize{{{*/ 184 184 void Vector::GetSize(int* pM){ 185 185 … … 193 193 } 194 194 /*}}}*/ 195 /*FUNCTION Vector::IsEmpty{{{ 1*/195 /*FUNCTION Vector::IsEmpty{{{*/ 196 196 bool Vector::IsEmpty(void){ 197 197 … … 207 207 } 208 208 /*}}}*/ 209 /*FUNCTION Vector::GetLocalSize{{{ 1*/209 /*FUNCTION Vector::GetLocalSize{{{*/ 210 210 void Vector::GetLocalSize(int* pM){ 211 211 … … 219 219 } 220 220 /*}}}*/ 221 /*FUNCTION Vector::Duplicate{{{ 1*/221 /*FUNCTION Vector::Duplicate{{{*/ 222 222 Vector* Vector::Duplicate(void){ 223 223 … … 237 237 } 238 238 /*}}}*/ 239 /*FUNCTION Vector::Set{{{ 1*/239 /*FUNCTION Vector::Set{{{*/ 240 240 void Vector::Set(double value){ 241 241 … … 249 249 } 250 250 /*}}}*/ 251 /*FUNCTION Vector::AXPY{{{ 1*/251 /*FUNCTION Vector::AXPY{{{*/ 252 252 void Vector::AXPY(Vector* X, double a){ 253 253 … … 260 260 } 261 261 /*}}}*/ 262 /*FUNCTION Vector::AYPX{{{ 1*/262 /*FUNCTION Vector::AYPX{{{*/ 263 263 void Vector::AYPX(Vector* X, double a){ 264 264 … … 272 272 } 273 273 /*}}}*/ 274 /*FUNCTION Vector::ToMPISerial{{{ 1*/274 /*FUNCTION Vector::ToMPISerial{{{*/ 275 275 double* Vector::ToMPISerial(void){ 276 276 … … 287 287 } 288 288 /*}}}*/ 289 /*FUNCTION Vector::Copy{{{ 1*/289 /*FUNCTION Vector::Copy{{{*/ 290 290 void Vector::Copy(Vector* to){ 291 291 … … 298 298 } 299 299 /*}}}*/ 300 /*FUNCTION Vector::Norm{{{ 1*/300 /*FUNCTION Vector::Norm{{{*/ 301 301 double Vector::Norm(NormMode norm_type){ 302 302 … … 311 311 } 312 312 /*}}}*/ 313 /*FUNCTION Vector::Scale{{{ 1*/313 /*FUNCTION Vector::Scale{{{*/ 314 314 void Vector::Scale(double scale_factor){ 315 315 … … 322 322 } 323 323 /*}}}*/ 324 /*FUNCTION Vector::Dot{{{ 1*/324 /*FUNCTION Vector::Dot{{{*/ 325 325 double Vector::Dot(Vector* vector){ 326 326 … … 335 335 } 336 336 /*}}}*/ 337 /*FUNCTION Vector::PointwiseDivide{{{ 1*/337 /*FUNCTION Vector::PointwiseDivide{{{*/ 338 338 void Vector::PointwiseDivide(Vector* x,Vector* y){ 339 339 -
TabularUnified issm/trunk-jpl/src/c/objects/Numerics/Vector.h ¶
r12181 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 36 36 #endif 37 37 38 /*Vector constructors, destructors {{{ 1*/38 /*Vector constructors, destructors {{{*/ 39 39 Vector(); 40 40 Vector(int M,bool fromlocalsize=false); … … 48 48 ~Vector(); 49 49 /*}}}*/ 50 /*Vector specific routines {{{ 1*/50 /*Vector specific routines {{{*/ 51 51 void Echo(void); 52 52 void AXPY(Vector *X, double a); -
TabularUnified issm/trunk-jpl/src/c/objects/Options/Option.cpp ¶
r9761 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION Option::Option(){{{ 1*/23 /*FUNCTION Option::Option(){{{*/ 24 24 Option::Option(){ 25 25 … … 31 31 } 32 32 /*}}}*/ 33 /*FUNCTION Option::~Option(){{{ 1*/33 /*FUNCTION Option::~Option(){{{*/ 34 34 Option::~Option(){ 35 35 … … 41 41 42 42 /*Other*/ 43 /*FUNCTION Option::Echo {{{ 1*/43 /*FUNCTION Option::Echo {{{*/ 44 44 void Option::Echo(){ 45 45 … … 57 57 } 58 58 /*}}}*/ 59 /*FUNCTION Option::DeepEcho() {{{ 1*/59 /*FUNCTION Option::DeepEcho() {{{*/ 60 60 void Option::DeepEcho(){ 61 61 … … 67 67 } 68 68 /*}}}*/ 69 /*FUNCTION Option::DeepEcho(char* indent) {{{ 1*/69 /*FUNCTION Option::DeepEcho(char* indent) {{{*/ 70 70 void Option::DeepEcho(char* indent){ 71 71 … … 83 83 } 84 84 /*}}}*/ 85 /*FUNCTION Option::Name {{{ 1*/85 /*FUNCTION Option::Name {{{*/ 86 86 char* Option::Name(){ 87 87 … … 89 89 } 90 90 /*}}}*/ 91 /*FUNCTION Option::NumEl {{{ 1*/91 /*FUNCTION Option::NumEl {{{*/ 92 92 int Option::NumEl(){ 93 93 … … 95 95 } 96 96 /*}}}*/ 97 /*FUNCTION Option::NDims {{{ 1*/97 /*FUNCTION Option::NDims {{{*/ 98 98 int Option::NDims(){ 99 99 … … 101 101 } 102 102 /*}}}*/ 103 /*FUNCTION Option::Size {{{ 1*/103 /*FUNCTION Option::Size {{{*/ 104 104 int* Option::Size(){ 105 105 … … 107 107 } 108 108 /*}}}*/ 109 /*FUNCTION Option::Get {{{ 1*/109 /*FUNCTION Option::Get {{{*/ 110 110 //void* Option::Get(){ 111 111 -
TabularUnified issm/trunk-jpl/src/c/objects/Options/Option.h ¶
r12292 r12365 6 6 #define _OPTIONOBJECT_H_ 7 7 8 /*Headers:{{{ 1*/8 /*Headers:{{{*/ 9 9 #include "../../include/include.h" 10 10 #include "../../shared/Exceptions/exceptions.h" … … 23 23 int* size; 24 24 25 /*Option constructors, destructors {{{ 1*/25 /*Option constructors, destructors {{{*/ 26 26 Option(); 27 27 ~Option(); 28 28 /*}}}*/ 29 /*Object virtual functions definitions:{{{ 1*/29 /*Object virtual functions definitions:{{{*/ 30 30 virtual void Echo(); 31 31 virtual void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/Options/OptionCell.cpp ¶
r9761 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION OptionCell::OptionCell(){{{ 1*/23 /*FUNCTION OptionCell::OptionCell(){{{*/ 24 24 OptionCell::OptionCell(){ 25 25 … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION OptionCell::~OptionCell(){{{ 1*/30 /*FUNCTION OptionCell::~OptionCell(){{{*/ 31 31 OptionCell::~OptionCell(){ 32 32 … … 40 40 41 41 /*Other*/ 42 /*FUNCTION OptionCell::Echo {{{ 1*/42 /*FUNCTION OptionCell::Echo {{{*/ 43 43 void OptionCell::Echo(){ 44 44 … … 56 56 } 57 57 /*}}}*/ 58 /*FUNCTION OptionCell::DeepEcho() {{{ 1*/58 /*FUNCTION OptionCell::DeepEcho() {{{*/ 59 59 void OptionCell::DeepEcho(){ 60 60 … … 66 66 } 67 67 /*}}}*/ 68 /*FUNCTION OptionCell::DeepEcho(char* indent) {{{ 1*/68 /*FUNCTION OptionCell::DeepEcho(char* indent) {{{*/ 69 69 void OptionCell::DeepEcho(char* indent){ 70 70 … … 95 95 } 96 96 /*}}}*/ 97 /*FUNCTION OptionCell::Name {{{ 1*/97 /*FUNCTION OptionCell::Name {{{*/ 98 98 char* OptionCell::Name(){ 99 99 … … 101 101 } 102 102 /*}}}*/ 103 /*FUNCTION OptionCell::NumEl {{{ 1*/103 /*FUNCTION OptionCell::NumEl {{{*/ 104 104 int OptionCell::NumEl(){ 105 105 … … 107 107 } 108 108 /*}}}*/ 109 /*FUNCTION OptionCell::NDims {{{ 1*/109 /*FUNCTION OptionCell::NDims {{{*/ 110 110 int OptionCell::NDims(){ 111 111 … … 113 113 } 114 114 /*}}}*/ 115 /*FUNCTION OptionCell::Size {{{ 1*/115 /*FUNCTION OptionCell::Size {{{*/ 116 116 int* OptionCell::Size(){ 117 117 … … 119 119 } 120 120 /*}}}*/ 121 /*FUNCTION OptionCell::Get(Options** pvalue) {{{ 1*/121 /*FUNCTION OptionCell::Get(Options** pvalue) {{{*/ 122 122 void OptionCell::Get(Options** pvalue){ 123 123 -
TabularUnified issm/trunk-jpl/src/c/objects/Options/OptionCell.h ¶
r12292 r12365 6 6 #define _OPTIONCELL_H_ 7 7 8 /*Headers:{{{ 1*/8 /*Headers:{{{*/ 9 9 #include "../../include/include.h" 10 10 #include "../../shared/Exceptions/exceptions.h" … … 20 20 Options* values; 21 21 22 /*OptionCell constructors, destructors {{{ 1*/22 /*OptionCell constructors, destructors {{{*/ 23 23 OptionCell(); 24 24 ~OptionCell(); 25 25 /*}}}*/ 26 /*Object virtual functions definitions:{{{ 1*/26 /*Object virtual functions definitions:{{{*/ 27 27 void Echo(); 28 28 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/Options/OptionChar.cpp ¶
r9761 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION OptionChar::OptionChar(){{{ 1*/23 /*FUNCTION OptionChar::OptionChar(){{{*/ 24 24 OptionChar::OptionChar(){ 25 25 … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION OptionChar::~OptionChar(){{{ 1*/30 /*FUNCTION OptionChar::~OptionChar(){{{*/ 31 31 OptionChar::~OptionChar(){ 32 32 … … 37 37 38 38 /*Other*/ 39 /*FUNCTION OptionChar::Echo {{{ 1*/39 /*FUNCTION OptionChar::Echo {{{*/ 40 40 void OptionChar::Echo(){ 41 41 … … 60 60 } 61 61 /*}}}*/ 62 /*FUNCTION OptionChar::DeepEcho() {{{ 1*/62 /*FUNCTION OptionChar::DeepEcho() {{{*/ 63 63 void OptionChar::DeepEcho(){ 64 64 … … 70 70 } 71 71 /*}}}*/ 72 /*FUNCTION OptionChar::DeepEcho(char* indent) {{{ 1*/72 /*FUNCTION OptionChar::DeepEcho(char* indent) {{{*/ 73 73 void OptionChar::DeepEcho(char* indent){ 74 74 … … 106 106 } 107 107 /*}}}*/ 108 /*FUNCTION OptionChar::Name {{{ 1*/108 /*FUNCTION OptionChar::Name {{{*/ 109 109 char* OptionChar::Name(){ 110 110 … … 112 112 } 113 113 /*}}}*/ 114 /*FUNCTION OptionChar::NumEl {{{ 1*/114 /*FUNCTION OptionChar::NumEl {{{*/ 115 115 int OptionChar::NumEl(){ 116 116 … … 118 118 } 119 119 /*}}}*/ 120 /*FUNCTION OptionChar::NDims {{{ 1*/120 /*FUNCTION OptionChar::NDims {{{*/ 121 121 int OptionChar::NDims(){ 122 122 … … 124 124 } 125 125 /*}}}*/ 126 /*FUNCTION OptionChar::Size {{{ 1*/126 /*FUNCTION OptionChar::Size {{{*/ 127 127 int* OptionChar::Size(){ 128 128 … … 130 130 } 131 131 /*}}}*/ 132 /*FUNCTION OptionChar::Get(char** pvalue) {{{ 1*/132 /*FUNCTION OptionChar::Get(char** pvalue) {{{*/ 133 133 void OptionChar::Get(char** pvalue){ 134 134 … … 144 144 } 145 145 /*}}}*/ 146 /*FUNCTION OptionChar::Get(char*** ppvalue,int *pnumel) {{{ 1*/146 /*FUNCTION OptionChar::Get(char*** ppvalue,int *pnumel) {{{*/ 147 147 void OptionChar::Get(char*** ppvalue,int *pnumel){ 148 148 -
TabularUnified issm/trunk-jpl/src/c/objects/Options/OptionChar.h ¶
r12292 r12365 6 6 #define _OPTIONCHAR_H_ 7 7 8 /*Headers:{{{ 1*/8 /*Headers:{{{*/ 9 9 #include "../../include/include.h" 10 10 #include "../../shared/Exceptions/exceptions.h" … … 20 20 char* values; 21 21 22 /*OptionChar constructors, destructors {{{ 1*/22 /*OptionChar constructors, destructors {{{*/ 23 23 OptionChar(); 24 24 ~OptionChar(); 25 25 /*}}}*/ 26 /*Object virtual functions definitions:{{{ 1*/26 /*Object virtual functions definitions:{{{*/ 27 27 void Echo(); 28 28 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/Options/OptionDouble.cpp ¶
r12292 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION OptionDouble::OptionDouble(){{{ 1*/23 /*FUNCTION OptionDouble::OptionDouble(){{{*/ 24 24 OptionDouble::OptionDouble(){ 25 25 … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION OptionDouble::~OptionDouble(){{{ 1*/30 /*FUNCTION OptionDouble::~OptionDouble(){{{*/ 31 31 OptionDouble::~OptionDouble(){ 32 32 … … 37 37 38 38 /*Other*/ 39 /*FUNCTION OptionDouble::Echo {{{ 1*/39 /*FUNCTION OptionDouble::Echo {{{*/ 40 40 void OptionDouble::Echo(){ 41 41 … … 56 56 } 57 57 /*}}}*/ 58 /*FUNCTION OptionDouble::DeepEcho() {{{ 1*/58 /*FUNCTION OptionDouble::DeepEcho() {{{*/ 59 59 void OptionDouble::DeepEcho(){ 60 60 … … 66 66 } 67 67 /*}}}*/ 68 /*FUNCTION OptionDouble::DeepEcho(char* indent) {{{ 1*/68 /*FUNCTION OptionDouble::DeepEcho(char* indent) {{{*/ 69 69 void OptionDouble::DeepEcho(char* indent){ 70 70 … … 96 96 } 97 97 /*}}}*/ 98 /*FUNCTION OptionDouble::Name {{{ 1*/98 /*FUNCTION OptionDouble::Name {{{*/ 99 99 char* OptionDouble::Name(){ 100 100 … … 102 102 } 103 103 /*}}}*/ 104 /*FUNCTION OptionDouble::NumEl {{{ 1*/104 /*FUNCTION OptionDouble::NumEl {{{*/ 105 105 int OptionDouble::NumEl(){ 106 106 … … 108 108 } 109 109 /*}}}*/ 110 /*FUNCTION OptionDouble::NDims {{{ 1*/110 /*FUNCTION OptionDouble::NDims {{{*/ 111 111 int OptionDouble::NDims(){ 112 112 … … 114 114 } 115 115 /*}}}*/ 116 /*FUNCTION OptionDouble::Size {{{ 1*/116 /*FUNCTION OptionDouble::Size {{{*/ 117 117 int* OptionDouble::Size(){ 118 118 … … 120 120 } 121 121 /*}}}*/ 122 /*FUNCTION OptionDouble::Get(int* pvalue) {{{ 1*/122 /*FUNCTION OptionDouble::Get(int* pvalue) {{{*/ 123 123 void OptionDouble::Get(int* pvalue){ 124 124 … … 132 132 } 133 133 /*}}}*/ 134 /*FUNCTION OptionDouble::Get(double* pvalue) {{{ 1*/134 /*FUNCTION OptionDouble::Get(double* pvalue) {{{*/ 135 135 void OptionDouble::Get(double* pvalue){ 136 136 … … 144 144 } 145 145 /*}}}*/ 146 /*FUNCTION OptionDouble::Get(double** pvalue,int* numel) {{{ 1*/146 /*FUNCTION OptionDouble::Get(double** pvalue,int* numel) {{{*/ 147 147 void OptionDouble::Get(double** pvalue,int* numel){ 148 148 -
TabularUnified issm/trunk-jpl/src/c/objects/Options/OptionDouble.h ¶
r12292 r12365 6 6 #define _OPTIONDOUBLE_H_ 7 7 8 /*Headers:{{{ 1*/8 /*Headers:{{{*/ 9 9 #include "../../include/include.h" 10 10 #include "../../shared/Exceptions/exceptions.h" … … 20 20 double* values; 21 21 22 /*OptionDouble constructors, destructors {{{ 1*/22 /*OptionDouble constructors, destructors {{{*/ 23 23 OptionDouble(); 24 24 ~OptionDouble(); 25 25 /*}}}*/ 26 /*Object virtual functions definitions:{{{ 1*/26 /*Object virtual functions definitions:{{{*/ 27 27 void Echo(); 28 28 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/Options/OptionLogical.cpp ¶
r9761 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION OptionLogical::OptionLogical(){{{ 1*/23 /*FUNCTION OptionLogical::OptionLogical(){{{*/ 24 24 OptionLogical::OptionLogical(){ 25 25 … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION OptionLogical::~OptionLogical(){{{ 1*/30 /*FUNCTION OptionLogical::~OptionLogical(){{{*/ 31 31 OptionLogical::~OptionLogical(){ 32 32 … … 37 37 38 38 /*Other*/ 39 /*FUNCTION OptionLogical::Echo {{{ 1*/39 /*FUNCTION OptionLogical::Echo {{{*/ 40 40 void OptionLogical::Echo(){ 41 41 … … 56 56 } 57 57 /*}}}*/ 58 /*FUNCTION OptionLogical::DeepEcho() {{{ 1*/58 /*FUNCTION OptionLogical::DeepEcho() {{{*/ 59 59 void OptionLogical::DeepEcho(){ 60 60 … … 66 66 } 67 67 /*}}}*/ 68 /*FUNCTION OptionLogical::DeepEcho(char* indent) {{{ 1*/68 /*FUNCTION OptionLogical::DeepEcho(char* indent) {{{*/ 69 69 void OptionLogical::DeepEcho(char* indent){ 70 70 … … 96 96 } 97 97 /*}}}*/ 98 /*FUNCTION OptionLogical::Name {{{ 1*/98 /*FUNCTION OptionLogical::Name {{{*/ 99 99 char* OptionLogical::Name(){ 100 100 … … 102 102 } 103 103 /*}}}*/ 104 /*FUNCTION OptionLogical::NumEl {{{ 1*/104 /*FUNCTION OptionLogical::NumEl {{{*/ 105 105 int OptionLogical::NumEl(){ 106 106 … … 108 108 } 109 109 /*}}}*/ 110 /*FUNCTION OptionLogical::NDims {{{ 1*/110 /*FUNCTION OptionLogical::NDims {{{*/ 111 111 int OptionLogical::NDims(){ 112 112 … … 114 114 } 115 115 /*}}}*/ 116 /*FUNCTION OptionLogical::Size {{{ 1*/116 /*FUNCTION OptionLogical::Size {{{*/ 117 117 int* OptionLogical::Size(){ 118 118 … … 120 120 } 121 121 /*}}}*/ 122 /*FUNCTION OptionLogical::Get(bool* pvalue) {{{ 1*/122 /*FUNCTION OptionLogical::Get(bool* pvalue) {{{*/ 123 123 void OptionLogical::Get(bool* pvalue){ 124 124 -
TabularUnified issm/trunk-jpl/src/c/objects/Options/OptionLogical.h ¶
r12292 r12365 6 6 #define _OPTIONLOGICAL_H_ 7 7 8 /*Headers:{{{ 1*/8 /*Headers:{{{*/ 9 9 #include "../../include/include.h" 10 10 #include "../../shared/Exceptions/exceptions.h" … … 20 20 bool* values; 21 21 22 /*OptionLogical constructors, destructors {{{ 1*/22 /*OptionLogical constructors, destructors {{{*/ 23 23 OptionLogical(); 24 24 ~OptionLogical(); 25 25 /*}}}*/ 26 /*Object virtual functions definitions:{{{ 1*/26 /*Object virtual functions definitions:{{{*/ 27 27 void Echo(); 28 28 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/Options/OptionStruct.cpp ¶
r9761 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION OptionStruct::OptionStruct(){{{ 1*/23 /*FUNCTION OptionStruct::OptionStruct(){{{*/ 24 24 OptionStruct::OptionStruct(){ 25 25 … … 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION OptionStruct::~OptionStruct(){{{ 1*/30 /*FUNCTION OptionStruct::~OptionStruct(){{{*/ 31 31 OptionStruct::~OptionStruct(){ 32 32 … … 45 45 46 46 /*Other*/ 47 /*FUNCTION OptionStruct::Echo {{{ 1*/47 /*FUNCTION OptionStruct::Echo {{{*/ 48 48 void OptionStruct::Echo(){ 49 49 … … 61 61 } 62 62 /*}}}*/ 63 /*FUNCTION OptionStruct::DeepEcho() {{{ 1*/63 /*FUNCTION OptionStruct::DeepEcho() {{{*/ 64 64 void OptionStruct::DeepEcho(){ 65 65 … … 71 71 } 72 72 /*}}}*/ 73 /*FUNCTION OptionStruct::DeepEcho(char* indent) {{{ 1*/73 /*FUNCTION OptionStruct::DeepEcho(char* indent) {{{*/ 74 74 void OptionStruct::DeepEcho(char* indent){ 75 75 … … 103 103 } 104 104 /*}}}*/ 105 /*FUNCTION OptionStruct::Name {{{ 1*/105 /*FUNCTION OptionStruct::Name {{{*/ 106 106 char* OptionStruct::Name(){ 107 107 … … 109 109 } 110 110 /*}}}*/ 111 /*FUNCTION OptionStruct::NumEl {{{ 1*/111 /*FUNCTION OptionStruct::NumEl {{{*/ 112 112 int OptionStruct::NumEl(){ 113 113 … … 115 115 } 116 116 /*}}}*/ 117 /*FUNCTION OptionStruct::NDims {{{ 1*/117 /*FUNCTION OptionStruct::NDims {{{*/ 118 118 int OptionStruct::NDims(){ 119 119 … … 121 121 } 122 122 /*}}}*/ 123 /*FUNCTION OptionStruct::Size {{{ 1*/123 /*FUNCTION OptionStruct::Size {{{*/ 124 124 int* OptionStruct::Size(){ 125 125 … … 127 127 } 128 128 /*}}}*/ 129 /*FUNCTION OptionStruct::Get(Options** pvalue) {{{ 1*/129 /*FUNCTION OptionStruct::Get(Options** pvalue) {{{*/ 130 130 void OptionStruct::Get(Options** pvalue){ 131 131 … … 139 139 } 140 140 /*}}}*/ 141 /*FUNCTION OptionStruct::Get(Options*** ppvalue,int* numel) {{{ 1*/141 /*FUNCTION OptionStruct::Get(Options*** ppvalue,int* numel) {{{*/ 142 142 void OptionStruct::Get(Options*** ppvalue,int* numel){ 143 143 -
TabularUnified issm/trunk-jpl/src/c/objects/Options/OptionStruct.h ¶
r12292 r12365 6 6 #define _OPTIONSTRUCT_H_ 7 7 8 /*Headers:{{{ 1*/8 /*Headers:{{{*/ 9 9 #include "../../include/include.h" 10 10 #include "../../shared/Exceptions/exceptions.h" … … 20 20 Options** values; 21 21 22 /*OptionStruct constructors, destructors {{{ 1*/22 /*OptionStruct constructors, destructors {{{*/ 23 23 OptionStruct(); 24 24 ~OptionStruct(); 25 25 /*}}}*/ 26 /*Object virtual functions definitions:{{{ 1*/26 /*Object virtual functions definitions:{{{*/ 27 27 void Echo(); 28 28 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/Options/OptionUtilities.cpp ¶
r9320 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 19 19 /*}}}*/ 20 20 21 /*FUNCTION ColumnWiseDimsFromIndex{{{ 1*/21 /*FUNCTION ColumnWiseDimsFromIndex{{{*/ 22 22 int ColumnWiseDimsFromIndex(int* dims,int index,int* size,int ndims){ 23 23 … … 38 38 return(0); 39 39 }/*}}}*/ 40 /*FUNCTION IndexFromColumnWiseDims{{{ 1*/40 /*FUNCTION IndexFromColumnWiseDims{{{*/ 41 41 int IndexFromColumnWiseDims(int* dims, int* size, int ndims) { 42 42 … … 57 57 return(index); 58 58 }/*}}}*/ 59 /*FUNCTION RowWiseDimsFromIndex{{{ 1*/59 /*FUNCTION RowWiseDimsFromIndex{{{*/ 60 60 int RowWiseDimsFromIndex(int* dims, int index, int* size, int ndims) { 61 61 … … 76 76 return(0); 77 77 }/*}}}*/ 78 /*FUNCTION IndexFromRowWiseDims{{{ 1*/78 /*FUNCTION IndexFromRowWiseDims{{{*/ 79 79 int IndexFromRowWiseDims(int* dims, int* size, int ndims) { 80 80 … … 95 95 return(index); 96 96 }/*}}}*/ 97 /*FUNCTION StringFromDims{{{ 1*/97 /*FUNCTION StringFromDims{{{*/ 98 98 int StringFromDims(char* cstr, int* dims, int ndims) { 99 99 … … 104 104 return(0); 105 105 }/*}}}*/ 106 /*FUNCTION StringFromSize{{{ 1*/106 /*FUNCTION StringFromSize{{{*/ 107 107 int StringFromSize(char* cstr, int* size, int ndims) { 108 108 -
TabularUnified issm/trunk-jpl/src/c/objects/Options/OptionUtilities.h ¶
r8535 r12365 6 6 #define _OPTIONUTILITIES_H_ 7 7 8 /*Headers:{{{ 1*/8 /*Headers:{{{*/ 9 9 #include "../../include/include.h" 10 10 #include "../../shared/Exceptions/exceptions.h" -
TabularUnified issm/trunk-jpl/src/c/objects/Params/BoolParam.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*BoolParam constructors and destructor*/ 23 /*FUNCTION BoolParam::BoolParam(){{{ 1*/23 /*FUNCTION BoolParam::BoolParam(){{{*/ 24 24 BoolParam::BoolParam(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION BoolParam::BoolParam(int enum_type,IssmBool value){{{ 1*/28 /*FUNCTION BoolParam::BoolParam(int enum_type,IssmBool value){{{*/ 29 29 BoolParam::BoolParam(int in_enum_type,IssmBool in_value){ 30 30 … … 33 33 } 34 34 /*}}}*/ 35 /*FUNCTION BoolParam::~BoolParam(){{{ 1*/35 /*FUNCTION BoolParam::~BoolParam(){{{*/ 36 36 BoolParam::~BoolParam(){ 37 37 return; … … 40 40 41 41 /*Object virtual functions definitions:*/ 42 /*FUNCTION BoolParam::Echo {{{ 1*/42 /*FUNCTION BoolParam::Echo {{{*/ 43 43 void BoolParam::Echo(void){ 44 44 this->DeepEcho(); 45 45 } 46 46 /*}}}*/ 47 /*FUNCTION BoolParam::DeepEcho{{{ 1*/47 /*FUNCTION BoolParam::DeepEcho{{{*/ 48 48 void BoolParam::DeepEcho(void){ 49 49 … … 53 53 } 54 54 /*}}}*/ 55 /*FUNCTION BoolParam::Id{{{ 1*/55 /*FUNCTION BoolParam::Id{{{*/ 56 56 int BoolParam::Id(void){ return -1; } 57 57 /*}}}*/ 58 /*FUNCTION BoolParam::MyRank{{{ 1*/58 /*FUNCTION BoolParam::MyRank{{{*/ 59 59 int BoolParam::MyRank(void){ 60 60 extern int my_rank; … … 62 62 } 63 63 /*}}}*/ 64 /*FUNCTION BoolParam::ObjectEnum{{{ 1*/64 /*FUNCTION BoolParam::ObjectEnum{{{*/ 65 65 int BoolParam::ObjectEnum(void){ 66 66 … … 69 69 } 70 70 /*}}}*/ 71 /*FUNCTION BoolParam::copy{{{ 1*/71 /*FUNCTION BoolParam::copy{{{*/ 72 72 Object* BoolParam::copy() { 73 73 … … 78 78 79 79 /*BoolParam virtual functions definitions: */ 80 /*FUNCTION BoolParam::GetParameterName{{{ 1*/80 /*FUNCTION BoolParam::GetParameterName{{{*/ 81 81 void BoolParam::GetParameterName(char**pname){ 82 82 EnumToStringx(pname,this->enum_type); 83 83 } 84 84 /*}}}*/ 85 /*FUNCTION BoolParam::UnitConversion{{{ 1*/85 /*FUNCTION BoolParam::UnitConversion{{{*/ 86 86 void BoolParam::UnitConversion(int direction_enum){ 87 87 /*do nothing, no unit conversion*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Params/BoolParam.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 27 27 IssmBool value; 28 28 29 /*BoolParam constructors, destructors: {{{ 1*/29 /*BoolParam constructors, destructors: {{{*/ 30 30 BoolParam(); 31 31 BoolParam(int enum_type,IssmBool value); 32 32 ~BoolParam(); 33 33 /*}}}*/ 34 /*Object virtual functions definitions:{{{ 1*/34 /*Object virtual functions definitions:{{{ */ 35 35 void Echo(); 36 36 void DeepEcho(); … … 40 40 Object* copy(); 41 41 /*}}}*/ 42 /*Param vritual function definitions: {{{ 1*/42 /*Param vritual function definitions: {{{*/ 43 43 int InstanceEnum(){return enum_type;} 44 44 void GetParameterValue(bool* pbool){*pbool=value;} -
TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleMatArrayParam.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*DoubleMatArrayParam constructors and destructor*/ 23 /*FUNCTION DoubleMatArrayParam::DoubleMatArrayParam(){{{ 1*/23 /*FUNCTION DoubleMatArrayParam::DoubleMatArrayParam(){{{*/ 24 24 DoubleMatArrayParam::DoubleMatArrayParam(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION DoubleMatArrayParam::DoubleMatArrayParam(int enum_type,double** array, int M, int* mdim_array, int* ndim_array){{{ 1*/28 /*FUNCTION DoubleMatArrayParam::DoubleMatArrayParam(int enum_type,double** array, int M, int* mdim_array, int* ndim_array){{{*/ 29 29 DoubleMatArrayParam::DoubleMatArrayParam(int in_enum_type,double** in_array, int in_M, int* in_mdim_array, int* in_ndim_array){ 30 30 … … 64 64 } 65 65 /*}}}*/ 66 /*FUNCTION DoubleMatArrayParam::~DoubleMatArrayParam(){{{ 1*/66 /*FUNCTION DoubleMatArrayParam::~DoubleMatArrayParam(){{{*/ 67 67 DoubleMatArrayParam::~DoubleMatArrayParam(){ 68 68 … … 84 84 85 85 /*Object virtual functions definitions:*/ 86 /*FUNCTION DoubleMatArrayParam::Echo {{{ 1*/86 /*FUNCTION DoubleMatArrayParam::Echo {{{*/ 87 87 void DoubleMatArrayParam::Echo(void){ 88 88 … … 94 94 } 95 95 /*}}}*/ 96 /*FUNCTION DoubleMatArrayParam::DeepEcho{{{ 1*/96 /*FUNCTION DoubleMatArrayParam::DeepEcho{{{*/ 97 97 void DoubleMatArrayParam::DeepEcho(void){ 98 98 … … 118 118 } 119 119 /*}}}*/ 120 /*FUNCTION DoubleMatArrayParam::Id{{{ 1*/120 /*FUNCTION DoubleMatArrayParam::Id{{{*/ 121 121 int DoubleMatArrayParam::Id(void){ return -1; } 122 122 /*}}}*/ 123 /*FUNCTION DoubleMatArrayParam::MyRank{{{ 1*/123 /*FUNCTION DoubleMatArrayParam::MyRank{{{*/ 124 124 int DoubleMatArrayParam::MyRank(void){ 125 125 extern int my_rank; … … 127 127 } 128 128 /*}}}*/ 129 /*FUNCTION DoubleMatArrayParam::ObjectEnum{{{ 1*/129 /*FUNCTION DoubleMatArrayParam::ObjectEnum{{{*/ 130 130 int DoubleMatArrayParam::ObjectEnum(void){ 131 131 … … 134 134 } 135 135 /*}}}*/ 136 /*FUNCTION DoubleMatArrayParam::copy{{{ 1*/136 /*FUNCTION DoubleMatArrayParam::copy{{{*/ 137 137 Object* DoubleMatArrayParam::copy() { 138 138 … … 143 143 144 144 /*DoubleMatArrayParam virtual functions definitions: */ 145 /*FUNCTION DoubleMatArrayParam::GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){{{ 1*/145 /*FUNCTION DoubleMatArrayParam::GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){{{*/ 146 146 void DoubleMatArrayParam::GetParameterValue(double*** pout_array, int* pout_M,int** pout_mdim_array, int** pout_ndim_array){ 147 147 … … 196 196 } 197 197 /*}}}*/ 198 /*FUNCTION DoubleMatArrayParam::GetParameterName{{{ 1*/198 /*FUNCTION DoubleMatArrayParam::GetParameterName{{{*/ 199 199 void DoubleMatArrayParam::GetParameterName(char**pname){ 200 200 EnumToStringx(pname,this->enum_type); 201 201 } 202 202 /*}}}*/ 203 /*FUNCTION DoubleMatArrayParam::SetValue(double** array, int M, int* mdim_array, int* ndim_array){{{ 1*/203 /*FUNCTION DoubleMatArrayParam::SetValue(double** array, int M, int* mdim_array, int* ndim_array){{{*/ 204 204 void DoubleMatArrayParam::SetValue(double** in_array, int in_M, int* in_mdim_array, int* in_ndim_array){ 205 205 … … 239 239 } 240 240 /*}}}*/ 241 /*FUNCTION DoubleMatArrayParam::UnitConversion{{{ 1*/241 /*FUNCTION DoubleMatArrayParam::UnitConversion{{{*/ 242 242 void DoubleMatArrayParam::UnitConversion(int direction_enum){ 243 243 /*go through all matrices and convert: */ -
TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleMatArrayParam.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 30 30 31 31 public: 32 /*DoubleMatArrayParam constructors, destructors: {{{ 1*/32 /*DoubleMatArrayParam constructors, destructors: {{{*/ 33 33 DoubleMatArrayParam(); 34 34 DoubleMatArrayParam(int enum_type,double** array, int M, int* mdim_array, int* ndim_array); 35 35 ~DoubleMatArrayParam(); 36 36 /*}}}*/ 37 /*Object virtual functions definitions:{{{ 1*/37 /*Object virtual functions definitions:{{{ */ 38 38 void Echo(); 39 39 void DeepEcho(); … … 43 43 Object* copy(); 44 44 /*}}}*/ 45 /*Param vritual function definitions: {{{ 1*/45 /*Param vritual function definitions: {{{*/ 46 46 int InstanceEnum(){return enum_type;} 47 47 void GetParameterValue(bool* pbool){_error_("DoubleMatArray param of enum %i (%s) cannot return a bool",enum_type,EnumToStringx(enum_type));} -
TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleMatParam.cpp ¶
r12018 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*DoubleMatParam constructors and destructor*/ 23 /*FUNCTION DoubleMatParam::DoubleMatParam(){{{ 1*/23 /*FUNCTION DoubleMatParam::DoubleMatParam(){{{*/ 24 24 DoubleMatParam::DoubleMatParam(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION DoubleMatParam::DoubleMatParam(int enum_type,IssmDoubleMat value){{{ 1*/28 /*FUNCTION DoubleMatParam::DoubleMatParam(int enum_type,IssmDoubleMat value){{{*/ 29 29 DoubleMatParam::DoubleMatParam(int in_enum_type,double* in_value, int in_M,int in_N){ 30 30 … … 37 37 } 38 38 /*}}}*/ 39 /*FUNCTION DoubleMatParam::~DoubleMatParam(){{{ 1*/39 /*FUNCTION DoubleMatParam::~DoubleMatParam(){{{*/ 40 40 DoubleMatParam::~DoubleMatParam(){ 41 41 xfree((void**)&value); … … 45 45 46 46 /*Object virtual functions definitions:*/ 47 /*FUNCTION DoubleMatParam::Echo {{{ 1*/47 /*FUNCTION DoubleMatParam::Echo {{{*/ 48 48 void DoubleMatParam::Echo(void){ 49 49 … … 54 54 } 55 55 /*}}}*/ 56 /*FUNCTION DoubleMatParam::DeepEcho{{{ 1*/56 /*FUNCTION DoubleMatParam::DeepEcho{{{*/ 57 57 void DoubleMatParam::DeepEcho(void){ 58 58 … … 69 69 } 70 70 /*}}}*/ 71 /*FUNCTION DoubleMatParam::Id{{{ 1*/71 /*FUNCTION DoubleMatParam::Id{{{*/ 72 72 int DoubleMatParam::Id(void){ return -1; } 73 73 /*}}}*/ 74 /*FUNCTION DoubleMatParam::MyRank{{{ 1*/74 /*FUNCTION DoubleMatParam::MyRank{{{*/ 75 75 int DoubleMatParam::MyRank(void){ 76 76 extern int my_rank; … … 78 78 } 79 79 /*}}}*/ 80 /*FUNCTION DoubleMatParam::ObjectEnum{{{ 1*/80 /*FUNCTION DoubleMatParam::ObjectEnum{{{*/ 81 81 int DoubleMatParam::ObjectEnum(void){ 82 82 … … 85 85 } 86 86 /*}}}*/ 87 /*FUNCTION DoubleMatParam::copy{{{ 1*/87 /*FUNCTION DoubleMatParam::copy{{{*/ 88 88 Object* DoubleMatParam::copy() { 89 89 … … 94 94 95 95 /*DoubleMatParam virtual functions definitions: */ 96 /*FUNCTION DoubleMatParam::GetParameterValue(double** pdoublearray,int* pM,int* pN){{{ 1*/96 /*FUNCTION DoubleMatParam::GetParameterValue(double** pdoublearray,int* pM,int* pN){{{*/ 97 97 void DoubleMatParam::GetParameterValue(double** pdoublearray,int* pM,int* pN){ 98 98 double* output=NULL; … … 107 107 } 108 108 /*}}}*/ 109 /*FUNCTION DoubleMatParam::GetParameterValue(int** pintarray,int* pM,int* pN){{{ 1*/109 /*FUNCTION DoubleMatParam::GetParameterValue(int** pintarray,int* pM,int* pN){{{*/ 110 110 void DoubleMatParam::GetParameterValue(int** pintarray,int* pM,int* pN){ 111 111 _error_("DoubleMat of enum %i (%s) cannot return an array of int",enum_type,EnumToStringx(enum_type)); 112 112 } 113 113 /*}}}*/ 114 /*FUNCTION DoubleMatParam::GetParameterName{{{ 1*/114 /*FUNCTION DoubleMatParam::GetParameterName{{{*/ 115 115 void DoubleMatParam::GetParameterName(char**pname){ 116 116 EnumToStringx(pname,this->enum_type); 117 117 } 118 118 /*}}}*/ 119 /*FUNCTION DoubleMatParam::SetValue{{{ 1*/119 /*FUNCTION DoubleMatParam::SetValue{{{*/ 120 120 void DoubleMatParam::SetValue(double* doublearray,int in_M,int in_N){ 121 121 … … 130 130 } 131 131 /*}}}*/ 132 /*FUNCTION DoubleMatParam::UnitConversion{{{ 1*/132 /*FUNCTION DoubleMatParam::UnitConversion{{{*/ 133 133 void DoubleMatParam::UnitConversion(int direction_enum){ 134 134 ::UnitConversion(this->value,this->M*this->N,direction_enum,this->enum_type); … … 137 137 138 138 /*diverse: */ 139 /*FUNCTION DoubleMatParam::GetPointer{{{ 1*/139 /*FUNCTION DoubleMatParam::GetPointer{{{*/ 140 140 double* DoubleMatParam::GetPointer(void){ 141 141 return this->value; -
TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleMatParam.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 29 29 30 30 public: 31 /*DoubleMatParam constructors, destructors: {{{ 1*/31 /*DoubleMatParam constructors, destructors: {{{*/ 32 32 DoubleMatParam(); 33 33 DoubleMatParam(int enum_type,IssmDouble* value,int M,int N); 34 34 ~DoubleMatParam(); 35 35 /*}}}*/ 36 /*Object virtual functions definitions:{{{ 1*/36 /*Object virtual functions definitions:{{{ */ 37 37 void Echo(); 38 38 void DeepEcho(); … … 42 42 Object* copy(); 43 43 /*}}}*/ 44 /*Param vritual function definitions: {{{ 1*/44 /*Param vritual function definitions: {{{*/ 45 45 int InstanceEnum(){return enum_type;} 46 46 void GetParameterValue(bool* pbool){_error_("DoubleMat param of enum %i (%s) cannot return a bool",enum_type,EnumToStringx(enum_type));} -
TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleParam.cpp ¶
r12018 r12365 18 18 19 19 /*DoubleParam constructors and destructor*/ 20 /*FUNCTION DoubleParam::DoubleParam(){{{ 1*/20 /*FUNCTION DoubleParam::DoubleParam(){{{*/ 21 21 DoubleParam::DoubleParam(){ 22 22 return; 23 23 } 24 24 /*}}}*/ 25 /*FUNCTION DoubleParam::DoubleParam(int enum_type,IssmDouble value){{{ 1*/25 /*FUNCTION DoubleParam::DoubleParam(int enum_type,IssmDouble value){{{*/ 26 26 DoubleParam::DoubleParam(int in_enum_type,IssmDouble in_value){ 27 27 … … 30 30 } 31 31 /*}}}*/ 32 /*FUNCTION DoubleParam::~DoubleParam(){{{ 1*/32 /*FUNCTION DoubleParam::~DoubleParam(){{{*/ 33 33 DoubleParam::~DoubleParam(){ 34 34 return; … … 37 37 38 38 /*Object virtual functions definitions:*/ 39 /*FUNCTION DoubleParam::Echo {{{ 1*/39 /*FUNCTION DoubleParam::Echo {{{*/ 40 40 void DoubleParam::Echo(void){ 41 41 this->DeepEcho(); 42 42 } 43 43 /*}}}*/ 44 /*FUNCTION DoubleParam::DeepEcho{{{ 1*/44 /*FUNCTION DoubleParam::DeepEcho{{{*/ 45 45 void DoubleParam::DeepEcho(void){ 46 46 … … 50 50 } 51 51 /*}}}*/ 52 /*FUNCTION DoubleParam::Id{{{ 1*/52 /*FUNCTION DoubleParam::Id{{{*/ 53 53 int DoubleParam::Id(void){ return -1; } 54 54 /*}}}*/ 55 /*FUNCTION DoubleParam::MyRank{{{ 1*/55 /*FUNCTION DoubleParam::MyRank{{{*/ 56 56 int DoubleParam::MyRank(void){ 57 57 extern int my_rank; … … 59 59 } 60 60 /*}}}*/ 61 /*FUNCTION DoubleParam::ObjectEnum{{{ 1*/61 /*FUNCTION DoubleParam::ObjectEnum{{{*/ 62 62 int DoubleParam::ObjectEnum(void){ 63 63 … … 66 66 } 67 67 /*}}}*/ 68 /*FUNCTION DoubleParam::copy{{{ 1*/68 /*FUNCTION DoubleParam::copy{{{*/ 69 69 Object* DoubleParam::copy() { 70 70 … … 75 75 76 76 /*DoubleParam virtual functions definitions: */ 77 /*FUNCTION DoubleParam::GetParameterName{{{ 1*/77 /*FUNCTION DoubleParam::GetParameterName{{{*/ 78 78 void DoubleParam::GetParameterName(char**pname){ 79 79 EnumToStringx(pname,this->enum_type); 80 80 } 81 81 /*}}}*/ 82 /*FUNCTION DoubleParam::GetParameterValue(int* pinteger){{{ 1*/82 /*FUNCTION DoubleParam::GetParameterValue(int* pinteger){{{*/ 83 83 void DoubleParam::GetParameterValue(int* pinteger){ 84 84 _error_("Double param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type)); 85 85 } 86 86 /*}}}*/ 87 /*FUNCTION DoubleParam::GetParameterValue(bool* pbool){{{ 1*/87 /*FUNCTION DoubleParam::GetParameterValue(bool* pbool){{{*/ 88 88 void DoubleParam::GetParameterValue(bool* pbool){ 89 89 _error_("Double param of enum %i (%s) cannot return an bool",enum_type,EnumToStringx(enum_type)); 90 90 } 91 91 /*}}}*/ 92 /*FUNCTION DoubleParam::GetParameterValue(int** pintarray,int* pM){{{ 1*/92 /*FUNCTION DoubleParam::GetParameterValue(int** pintarray,int* pM){{{*/ 93 93 void DoubleParam::GetParameterValue(int** pintarray,int* pM){ 94 94 _error_("Double param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type)); 95 95 } 96 96 /*}}}*/ 97 /*FUNCTION DoubleParam::GetParameterValue(int** pintarray,int* pM,int* pN){{{ 1*/97 /*FUNCTION DoubleParam::GetParameterValue(int** pintarray,int* pM,int* pN){{{*/ 98 98 void DoubleParam::GetParameterValue(int** pintarray,int* pM,int* pN){ 99 99 _error_("Double param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type)); 100 100 } 101 101 /*}}}*/ 102 /*FUNCTION DoubleParam::GetParameterValue(double** pdoublearray,int* pM){{{ 1*/102 /*FUNCTION DoubleParam::GetParameterValue(double** pdoublearray,int* pM){{{*/ 103 103 void DoubleParam::GetParameterValue(double** pdoublearray,int* pM){ 104 104 _error_("Double param of enum %i (%s) cannot return an array of double",enum_type,EnumToStringx(enum_type)); 105 105 } 106 106 /*}}}*/ 107 /*FUNCTION DoubleParam::GetParameterValue(double** pdoublearray,int* pM,int* pN){{{ 1*/107 /*FUNCTION DoubleParam::GetParameterValue(double** pdoublearray,int* pM,int* pN){{{*/ 108 108 void DoubleParam::GetParameterValue(double** pdoublearray,int* pM,int* pN){ 109 109 _error_("Double param of enum %i (%s) cannot return an array of double",enum_type,EnumToStringx(enum_type)); 110 110 } 111 111 /*}}}*/ 112 /*FUNCTION DoubleParam::UnitConversion{{{ 1*/112 /*FUNCTION DoubleParam::UnitConversion{{{*/ 113 113 void DoubleParam::UnitConversion(int direction_enum){ 114 114 ::UnitConversion(&this->value,1,direction_enum,this->enum_type); -
TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleParam.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 28 28 29 29 public: 30 /*DoubleParam constructors, destructors: {{{ 1*/30 /*DoubleParam constructors, destructors: {{{*/ 31 31 DoubleParam(); 32 32 DoubleParam(int enum_type,IssmDouble value); 33 33 ~DoubleParam(); 34 34 /*}}}*/ 35 /*Object virtual functions definitions:{{{ 1*/35 /*Object virtual functions definitions:{{{ */ 36 36 void Echo(); 37 37 void DeepEcho(); … … 41 41 Object* copy(); 42 42 /*}}}*/ 43 /*Param vritual function definitions: {{{ 1*/43 /*Param vritual function definitions: {{{*/ 44 44 int InstanceEnum(){return enum_type;} 45 45 void GetParameterValue(bool* pbool); -
TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleTransientMatParam.cpp ¶
r10660 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 20 20 /*}}}*/ 21 21 22 /*FUNCTION DoubleTransientMatParam::DoubleTransientMatParam(int enum_type,IssmDoubleMat value){{{ 1*/22 /*FUNCTION DoubleTransientMatParam::DoubleTransientMatParam(int enum_type,IssmDoubleMat value){{{*/ 23 23 DoubleTransientMatParam::DoubleTransientMatParam(int in_enum_type,double* in_value, int in_M,int in_N):DoubleMatParam(in_enum_type,in_value,in_M,in_N){ 24 24 } 25 25 /*}}}*/ 26 26 27 /*FUNCTION DoubleTransientMatParam::UnitConversion{{{ 1*/27 /*FUNCTION DoubleTransientMatParam::UnitConversion{{{*/ 28 28 void DoubleTransientMatParam::UnitConversion(int direction_enum){ 29 29 ::UnitConversion(this->value,(this->M-1)*this->N,direction_enum,this->enum_type); -
TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleTransientMatParam.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 23 23 24 24 public: 25 /*DoubleTransientMatParam constructors, destructors: {{{ 1*/25 /*DoubleTransientMatParam constructors, destructors: {{{*/ 26 26 DoubleTransientMatParam(int enum_type,IssmDouble* value,int M,int N); 27 27 /*}}}*/ 28 /*Param vritual function definitions: {{{ 1*/28 /*Param vritual function definitions: {{{*/ 29 29 void UnitConversion(int direction_enum); 30 30 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleVecParam.cpp ¶
r12018 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*DoubleVecParam constructors and destructor*/ 23 /*FUNCTION DoubleVecParam::DoubleVecParam(){{{ 1*/23 /*FUNCTION DoubleVecParam::DoubleVecParam(){{{*/ 24 24 DoubleVecParam::DoubleVecParam(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION DoubleVecParam::DoubleVecParam(int enum_type,IssmDoubleVec values,int M){{{ 1*/28 /*FUNCTION DoubleVecParam::DoubleVecParam(int enum_type,IssmDoubleVec values,int M){{{*/ 29 29 DoubleVecParam::DoubleVecParam(int in_enum_type,double* in_values, int in_M){ 30 30 … … 36 36 } 37 37 /*}}}*/ 38 /*FUNCTION DoubleVecParam::~DoubleVecParam(){{{ 1*/38 /*FUNCTION DoubleVecParam::~DoubleVecParam(){{{*/ 39 39 DoubleVecParam::~DoubleVecParam(){ 40 40 xfree((void**)&values); … … 44 44 45 45 /*Object virtual functions definitions:*/ 46 /*FUNCTION DoubleVecParam::Echo {{{ 1*/46 /*FUNCTION DoubleVecParam::Echo {{{*/ 47 47 void DoubleVecParam::Echo(void){ 48 48 … … 53 53 } 54 54 /*}}}*/ 55 /*FUNCTION DoubleVecParam::DeepEcho{{{ 1*/55 /*FUNCTION DoubleVecParam::DeepEcho{{{*/ 56 56 void DoubleVecParam::DeepEcho(void){ 57 57 … … 66 66 } 67 67 /*}}}*/ 68 /*FUNCTION DoubleVecParam::Id{{{ 1*/68 /*FUNCTION DoubleVecParam::Id{{{*/ 69 69 int DoubleVecParam::Id(void){ return -1; } 70 70 /*}}}*/ 71 /*FUNCTION DoubleVecParam::MyRank{{{ 1*/71 /*FUNCTION DoubleVecParam::MyRank{{{*/ 72 72 int DoubleVecParam::MyRank(void){ 73 73 extern int my_rank; … … 75 75 } 76 76 /*}}}*/ 77 /*FUNCTION DoubleVecParam::ObjectEnum{{{ 1*/77 /*FUNCTION DoubleVecParam::ObjectEnum{{{*/ 78 78 int DoubleVecParam::ObjectEnum(void){ 79 79 … … 82 82 } 83 83 /*}}}*/ 84 /*FUNCTION DoubleVecParam::copy{{{ 1*/84 /*FUNCTION DoubleVecParam::copy{{{*/ 85 85 Object* DoubleVecParam::copy() { 86 86 … … 91 91 92 92 /*DoubleVecParam virtual functions definitions: */ 93 /*FUNCTION DoubleVecParam::GetParameterValue(double** pdoublearray,int* pM){{{ 1*/93 /*FUNCTION DoubleVecParam::GetParameterValue(double** pdoublearray,int* pM){{{*/ 94 94 void DoubleVecParam::GetParameterValue(double** pdoublearray,int* pM){ 95 95 double* output=NULL; … … 105 105 } 106 106 /*}}}*/ 107 /*FUNCTION DoubleVecParam::GetParameterValue(double** pdoublearray,int* pM){{{ 1*/107 /*FUNCTION DoubleVecParam::GetParameterValue(double** pdoublearray,int* pM){{{*/ 108 108 void DoubleVecParam::GetParameterValue(double** pdoublearray,int* pM,int* pN){ 109 109 double* output=NULL; … … 122 122 } 123 123 /*}}}*/ 124 /*FUNCTION DoubleVecParam::GetParameterValue(int** pintarray,int* pM){{{ 1*/124 /*FUNCTION DoubleVecParam::GetParameterValue(int** pintarray,int* pM){{{*/ 125 125 void DoubleVecParam::GetParameterValue(int** pintarray,int* pM){ 126 126 _error_("DoubleVec param of enum %i (%s) cannot return an array of int",enum_type,EnumToStringx(enum_type)); 127 127 } 128 128 /*}}}*/ 129 /*FUNCTION DoubleVecParam::GetParameterName{{{ 1*/129 /*FUNCTION DoubleVecParam::GetParameterName{{{*/ 130 130 void DoubleVecParam::GetParameterName(char**pname){ 131 131 EnumToStringx(pname,this->enum_type); 132 132 } 133 133 /*}}}*/ 134 /*FUNCTION DoubleVecParam::SetValue{{{ 1*/134 /*FUNCTION DoubleVecParam::SetValue{{{*/ 135 135 void DoubleVecParam::SetValue(double* doublearray,int in_M){ 136 136 … … 144 144 } 145 145 /*}}}*/ 146 /*FUNCTION DoubleVecParam::UnitConversion{{{ 1*/146 /*FUNCTION DoubleVecParam::UnitConversion{{{*/ 147 147 void DoubleVecParam::UnitConversion(int direction_enum){ 148 148 ::UnitConversion(this->values,this->M,direction_enum,this->enum_type); -
TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleVecParam.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 28 28 29 29 public: 30 /*DoubleVecParam constructors, destructors: {{{ 1*/30 /*DoubleVecParam constructors, destructors: {{{*/ 31 31 DoubleVecParam(); 32 32 DoubleVecParam(int enum_type,IssmDouble* values,int M); 33 33 ~DoubleVecParam(); 34 34 /*}}}*/ 35 /*Object virtual functions definitions:{{{ 1*/35 /*Object virtual functions definitions:{{{ */ 36 36 void Echo(); 37 37 void DeepEcho(); … … 41 41 Object* copy(); 42 42 /*}}}*/ 43 /*Param virtual functions definitions: {{{ 1*/43 /*Param virtual functions definitions: {{{*/ 44 44 int InstanceEnum(){return enum_type;} 45 45 void GetParameterValue(bool* pbool){_error_("DoubleVec param of enum %i (%s) cannot return a bool",enum_type,EnumToStringx(enum_type));} -
TabularUnified issm/trunk-jpl/src/c/objects/Params/FileParam.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*FileParam constructors and destructor*/ 23 /*FUNCTION FileParam::FileParam(){{{ 1*/23 /*FUNCTION FileParam::FileParam(){{{*/ 24 24 FileParam::FileParam(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION FileParam::FileParam(int enum_type,FILE *value){{{ 1*/28 /*FUNCTION FileParam::FileParam(int enum_type,FILE *value){{{*/ 29 29 FileParam::FileParam(int in_enum_type,FILE* in_value){ 30 30 … … 33 33 } 34 34 /*}}}*/ 35 /*FUNCTION FileParam::~FileParam(){{{ 1*/35 /*FUNCTION FileParam::~FileParam(){{{*/ 36 36 FileParam::~FileParam(){ 37 37 return; … … 40 40 41 41 /*Object virtual functions definitions:*/ 42 /*FUNCTION FileParam::Echo {{{ 1*/42 /*FUNCTION FileParam::Echo {{{*/ 43 43 void FileParam::Echo(void){ 44 44 this->DeepEcho(); 45 45 } 46 46 /*}}}*/ 47 /*FUNCTION FileParam::DeepEcho{{{ 1*/47 /*FUNCTION FileParam::DeepEcho{{{*/ 48 48 void FileParam::DeepEcho(void){ 49 49 … … 53 53 } 54 54 /*}}}*/ 55 /*FUNCTION FileParam::Id{{{ 1*/55 /*FUNCTION FileParam::Id{{{*/ 56 56 int FileParam::Id(void){ return -1; } 57 57 /*}}}*/ 58 /*FUNCTION FileParam::MyRank{{{ 1*/58 /*FUNCTION FileParam::MyRank{{{*/ 59 59 int FileParam::MyRank(void){ 60 60 extern int my_rank; … … 62 62 } 63 63 /*}}}*/ 64 /*FUNCTION FileParam::ObjectEnum{{{ 1*/64 /*FUNCTION FileParam::ObjectEnum{{{*/ 65 65 int FileParam::ObjectEnum(void){ 66 66 … … 69 69 } 70 70 /*}}}*/ 71 /*FUNCTION FileParam::copy{{{ 1*/71 /*FUNCTION FileParam::copy{{{*/ 72 72 Object* FileParam::copy() { 73 73 … … 78 78 79 79 /*FileParam virtual functions definitions: */ 80 /*FUNCTION FileParam::GetParameterName{{{ 1*/80 /*FUNCTION FileParam::GetParameterName{{{*/ 81 81 void FileParam::GetParameterName(char**pname){ 82 82 EnumToStringx(pname,this->enum_type); 83 83 } 84 84 /*}}}*/ 85 /*FUNCTION FileParam::UnitConversion{{{ 1*/85 /*FUNCTION FileParam::UnitConversion{{{*/ 86 86 void FileParam::UnitConversion(int direction_enum){ 87 87 /*do nothing, no unit conversion*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Params/FileParam.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 27 27 28 28 public: 29 /*FileParam constructors, destructors: {{{ 1*/29 /*FileParam constructors, destructors: {{{*/ 30 30 FileParam(); 31 31 FileParam(int enum_type,FILE* fid); 32 32 ~FileParam(); 33 33 /*}}}*/ 34 /*Object virtual functions definitions:{{{ 1*/34 /*Object virtual functions definitions:{{{ */ 35 35 void Echo(); 36 36 void DeepEcho(); … … 40 40 Object* copy(); 41 41 /*}}}*/ 42 /*Param vritual function definitions: {{{ 1*/42 /*Param vritual function definitions: {{{*/ 43 43 int InstanceEnum(){return enum_type;} 44 44 void GetParameterValue(bool* pbool){ _error_("FileParam of enum %i (%s) cannot return a bool",enum_type,EnumToStringx(enum_type));} -
TabularUnified issm/trunk-jpl/src/c/objects/Params/IntMatParam.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*IntMatParam constructors and destructor*/ 23 /*FUNCTION IntMatParam::IntMatParam(){{{ 1*/23 /*FUNCTION IntMatParam::IntMatParam(){{{*/ 24 24 IntMatParam::IntMatParam(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION IntMatParam::IntMatParam(int enum_type,IssmIntMat value){{{ 1*/28 /*FUNCTION IntMatParam::IntMatParam(int enum_type,IssmIntMat value){{{*/ 29 29 IntMatParam::IntMatParam(int in_enum_type,int* in_value, int in_M,int in_N){ 30 30 … … 37 37 } 38 38 /*}}}*/ 39 /*FUNCTION IntMatParam::~IntMatParam(){{{ 1*/39 /*FUNCTION IntMatParam::~IntMatParam(){{{*/ 40 40 IntMatParam::~IntMatParam(){ 41 41 xfree((void**)&value); … … 45 45 46 46 /*Object virtual functions definitions:*/ 47 /*FUNCTION IntMatParam::Echo {{{ 1*/47 /*FUNCTION IntMatParam::Echo {{{*/ 48 48 void IntMatParam::Echo(void){ 49 49 … … 54 54 } 55 55 /*}}}*/ 56 /*FUNCTION IntMatParam::DeepEcho{{{ 1*/56 /*FUNCTION IntMatParam::DeepEcho{{{*/ 57 57 void IntMatParam::DeepEcho(void){ 58 58 … … 69 69 } 70 70 /*}}}*/ 71 /*FUNCTION IntMatParam::Id{{{ 1*/71 /*FUNCTION IntMatParam::Id{{{*/ 72 72 int IntMatParam::Id(void){ return -1; } 73 73 /*}}}*/ 74 /*FUNCTION IntMatParam::MyRank{{{ 1*/74 /*FUNCTION IntMatParam::MyRank{{{*/ 75 75 int IntMatParam::MyRank(void){ 76 76 extern int my_rank; … … 78 78 } 79 79 /*}}}*/ 80 /*FUNCTION IntMatParam::ObjectEnum{{{ 1*/80 /*FUNCTION IntMatParam::ObjectEnum{{{*/ 81 81 int IntMatParam::ObjectEnum(void){ 82 82 … … 85 85 } 86 86 /*}}}*/ 87 /*FUNCTION IntMatParam::copy{{{ 1*/87 /*FUNCTION IntMatParam::copy{{{*/ 88 88 Object* IntMatParam::copy() { 89 89 … … 94 94 95 95 /*IntMatParam virtual functions definitions: */ 96 /*FUNCTION IntMatParam::GetParameterValue{{{ 1*/96 /*FUNCTION IntMatParam::GetParameterValue{{{*/ 97 97 void IntMatParam::GetParameterValue(int** pintarray,int* pM,int* pN){ 98 98 int* output=NULL; … … 107 107 } 108 108 /*}}}*/ 109 /*FUNCTION IntMatParam::GetParameterName{{{ 1*/109 /*FUNCTION IntMatParam::GetParameterName{{{*/ 110 110 void IntMatParam::GetParameterName(char**pname){ 111 111 EnumToStringx(pname,this->enum_type); 112 112 } 113 113 /*}}}*/ 114 /*FUNCTION IntMatParam::SetValue{{{ 1*/114 /*FUNCTION IntMatParam::SetValue{{{*/ 115 115 void IntMatParam::SetValue(int* intarray,int in_M,int in_N){ 116 116 … … 125 125 } 126 126 /*}}}*/ 127 /*FUNCTION IntMatParam::UnitConversion{{{ 1*/127 /*FUNCTION IntMatParam::UnitConversion{{{*/ 128 128 void IntMatParam::UnitConversion(int direction_enum){ 129 129 /*do nothing, no unit conversion*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Params/IntMatParam.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 29 29 30 30 public: 31 /*IntMatParam constructors, destructors: {{{ 1*/31 /*IntMatParam constructors, destructors: {{{*/ 32 32 IntMatParam(); 33 33 IntMatParam(int enum_type,int* value,int M,int N); 34 34 ~IntMatParam(); 35 35 /*}}}*/ 36 /*Object virtual functions definitions:{{{ 1*/36 /*Object virtual functions definitions:{{{ */ 37 37 void Echo(); 38 38 void DeepEcho(); … … 42 42 Object* copy(); 43 43 /*}}}*/ 44 /*Param vritual function definitions: {{{ 1*/44 /*Param vritual function definitions: {{{*/ 45 45 int InstanceEnum(){return enum_type;} 46 46 void GetParameterValue(bool* pbool){_error_("IntMat param of enum %i (%s) cannot return a bool",enum_type,EnumToStringx(enum_type));} -
TabularUnified issm/trunk-jpl/src/c/objects/Params/IntParam.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*IntParam constructors and destructor*/ 23 /*FUNCTION IntParam::IntParam(){{{ 1*/23 /*FUNCTION IntParam::IntParam(){{{*/ 24 24 IntParam::IntParam(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION IntParam::IntParam(int enum_type,IssmInt value){{{ 1*/28 /*FUNCTION IntParam::IntParam(int enum_type,IssmInt value){{{*/ 29 29 IntParam::IntParam(int in_enum_type,IssmInt in_value){ 30 30 … … 33 33 } 34 34 /*}}}*/ 35 /*FUNCTION IntParam::~IntParam(){{{ 1*/35 /*FUNCTION IntParam::~IntParam(){{{*/ 36 36 IntParam::~IntParam(){ 37 37 return; … … 40 40 41 41 /*Object virtual functions definitions:*/ 42 /*FUNCTION IntParam::Echo {{{ 1*/42 /*FUNCTION IntParam::Echo {{{*/ 43 43 void IntParam::Echo(void){ 44 44 this->DeepEcho(); 45 45 } 46 46 /*}}}*/ 47 /*FUNCTION IntParam::DeepEcho{{{ 1*/47 /*FUNCTION IntParam::DeepEcho{{{*/ 48 48 void IntParam::DeepEcho(void){ 49 49 … … 53 53 } 54 54 /*}}}*/ 55 /*FUNCTION IntParam::Id{{{ 1*/55 /*FUNCTION IntParam::Id{{{*/ 56 56 int IntParam::Id(void){ return -1; } 57 57 /*}}}*/ 58 /*FUNCTION IntParam::MyRank{{{ 1*/58 /*FUNCTION IntParam::MyRank{{{*/ 59 59 int IntParam::MyRank(void){ 60 60 extern int my_rank; … … 62 62 } 63 63 /*}}}*/ 64 /*FUNCTION IntParam::ObjectEnum{{{ 1*/64 /*FUNCTION IntParam::ObjectEnum{{{*/ 65 65 int IntParam::ObjectEnum(void){ 66 66 … … 69 69 } 70 70 /*}}}*/ 71 /*FUNCTION IntParam::copy{{{ 1*/71 /*FUNCTION IntParam::copy{{{*/ 72 72 Object* IntParam::copy() { 73 73 … … 78 78 79 79 /*IntParam virtual functions definitions: */ 80 /*FUNCTION IntParam::GetParameterName{{{ 1*/80 /*FUNCTION IntParam::GetParameterName{{{*/ 81 81 void IntParam::GetParameterName(char**pname){ 82 82 EnumToStringx(pname,this->enum_type); 83 83 } 84 84 /*}}}*/ 85 /*FUNCTION IntParam::UnitConversion{{{ 1*/85 /*FUNCTION IntParam::UnitConversion{{{*/ 86 86 void IntParam::UnitConversion(int direction_enum){ 87 87 /*do nothing, no unit conversion*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Params/IntParam.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 28 28 29 29 public: 30 /*IntParam constructors, destructors: {{{ 1*/30 /*IntParam constructors, destructors: {{{*/ 31 31 IntParam(); 32 32 IntParam(int enum_type,IssmInt value); 33 33 ~IntParam(); 34 34 /*}}}*/ 35 /*Object virtual functions definitions:{{{ 1*/35 /*Object virtual functions definitions:{{{ */ 36 36 void Echo(); 37 37 void DeepEcho(); … … 41 41 Object* copy(); 42 42 /*}}}*/ 43 /*Param vritual function definitions: {{{ 1*/43 /*Param vritual function definitions: {{{*/ 44 44 int InstanceEnum(){return enum_type;} 45 45 void GetParameterValue(bool* pbool){_error_("Int param of enum %i (%s) cannot return a bool",enum_type,EnumToStringx(enum_type));} -
TabularUnified issm/trunk-jpl/src/c/objects/Params/IntVecParam.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*IntVecParam constructors and destructor*/ 23 /*FUNCTION IntVecParam::IntVecParam(){{{ 1*/23 /*FUNCTION IntVecParam::IntVecParam(){{{*/ 24 24 IntVecParam::IntVecParam(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION IntVecParam::IntVecParam(int enum_type,int* values,int M){{{ 1*/28 /*FUNCTION IntVecParam::IntVecParam(int enum_type,int* values,int M){{{*/ 29 29 IntVecParam::IntVecParam(int in_enum_type,int* in_values, int in_M){ 30 30 … … 39 39 } 40 40 /*}}}*/ 41 /*FUNCTION IntVecParam::IntVecParam(int enum_type,double* values,int M){{{ 1*/41 /*FUNCTION IntVecParam::IntVecParam(int enum_type,double* values,int M){{{*/ 42 42 IntVecParam::IntVecParam(int in_enum_type,double* in_values, int in_M){ 43 43 … … 52 52 } 53 53 /*}}}*/ 54 /*FUNCTION IntVecParam::~IntVecParam(){{{ 1*/54 /*FUNCTION IntVecParam::~IntVecParam(){{{*/ 55 55 IntVecParam::~IntVecParam(){ 56 56 xfree((void**)&values); … … 60 60 61 61 /*Object virtual functions definitions:*/ 62 /*FUNCTION IntVecParam::Echo {{{ 1*/62 /*FUNCTION IntVecParam::Echo {{{*/ 63 63 void IntVecParam::Echo(void){ 64 64 … … 69 69 } 70 70 /*}}}*/ 71 /*FUNCTION IntVecParam::DeepEcho{{{ 1*/71 /*FUNCTION IntVecParam::DeepEcho{{{*/ 72 72 void IntVecParam::DeepEcho(void){ 73 73 … … 82 82 } 83 83 /*}}}*/ 84 /*FUNCTION IntVecParam::Id{{{ 1*/84 /*FUNCTION IntVecParam::Id{{{*/ 85 85 int IntVecParam::Id(void){ return -1; } 86 86 /*}}}*/ 87 /*FUNCTION IntVecParam::MyRank{{{ 1*/87 /*FUNCTION IntVecParam::MyRank{{{*/ 88 88 int IntVecParam::MyRank(void){ 89 89 extern int my_rank; … … 91 91 } 92 92 /*}}}*/ 93 /*FUNCTION IntVecParam::ObjectEnum{{{ 1*/93 /*FUNCTION IntVecParam::ObjectEnum{{{*/ 94 94 int IntVecParam::ObjectEnum(void){ 95 95 … … 98 98 } 99 99 /*}}}*/ 100 /*FUNCTION IntVecParam::copy{{{ 1*/100 /*FUNCTION IntVecParam::copy{{{*/ 101 101 Object* IntVecParam::copy() { 102 102 … … 107 107 108 108 /*IntVecParam virtual functions definitions: */ 109 /*FUNCTION IntVecParam::GetParameterValue{{{ 1*/109 /*FUNCTION IntVecParam::GetParameterValue{{{*/ 110 110 void IntVecParam::GetParameterValue(int** pintarray,int* pM){ 111 111 int* output=NULL; … … 121 121 } 122 122 /*}}}*/ 123 /*FUNCTION IntVecParam::GetParameterName{{{ 1*/123 /*FUNCTION IntVecParam::GetParameterName{{{*/ 124 124 void IntVecParam::GetParameterName(char**pname){ 125 125 EnumToStringx(pname,this->enum_type); 126 126 } 127 127 /*}}}*/ 128 /*FUNCTION IntVecParam::SetValue{{{ 1*/128 /*FUNCTION IntVecParam::SetValue{{{*/ 129 129 void IntVecParam::SetValue(int* intarray,int in_M){ 130 130 … … 141 141 } 142 142 /*}}}*/ 143 /*FUNCTION IntVecParam::UnitConversion{{{ 1*/143 /*FUNCTION IntVecParam::UnitConversion{{{*/ 144 144 void IntVecParam::UnitConversion(int direction_enum){ 145 145 /*do nothing, no unit conversion*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Params/IntVecParam.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 28 28 29 29 public: 30 /*IntVecParam constructors, destructors: {{{ 1*/30 /*IntVecParam constructors, destructors: {{{*/ 31 31 IntVecParam(); 32 32 IntVecParam(int enum_type,int* values,int M); … … 34 34 ~IntVecParam(); 35 35 /*}}}*/ 36 /*Object virtual functions definitions:{{{ 1*/36 /*Object virtual functions definitions:{{{ */ 37 37 void Echo(); 38 38 void DeepEcho(); … … 42 42 Object* copy(); 43 43 /*}}}*/ 44 /*Param virtual functions definitions: {{{ 1*/44 /*Param virtual functions definitions: {{{*/ 45 45 int InstanceEnum(){return enum_type;} 46 46 void GetParameterValue(bool* pbool){_error_("IntVec param of enum %i (%s) cannot return a bool",enum_type,EnumToStringx(enum_type));} -
TabularUnified issm/trunk-jpl/src/c/objects/Params/MatrixParam.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*MatrixParam constructors and destructor*/ 23 /*FUNCTION MatrixParam::MatrixParam(){{{ 1*/23 /*FUNCTION MatrixParam::MatrixParam(){{{*/ 24 24 MatrixParam::MatrixParam(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION MatrixParam::MatrixParam(int enum_type,Matrix* value){{{ 1*/28 /*FUNCTION MatrixParam::MatrixParam(int enum_type,Matrix* value){{{*/ 29 29 MatrixParam::MatrixParam(int in_enum_type,Matrix* in_value){ 30 30 … … 37 37 } 38 38 /*}}}*/ 39 /*FUNCTION MatrixParam::~MatrixParam(){{{ 1*/39 /*FUNCTION MatrixParam::~MatrixParam(){{{*/ 40 40 MatrixParam::~MatrixParam(){ 41 41 xdelete(&value); … … 44 44 45 45 /*Object virtual functions definitions:*/ 46 /*FUNCTION MatrixParam::Echo {{{ 1*/46 /*FUNCTION MatrixParam::Echo {{{*/ 47 47 void MatrixParam::Echo(void){ 48 48 … … 52 52 } 53 53 /*}}}*/ 54 /*FUNCTION MatrixParam::DeepEcho{{{ 1*/54 /*FUNCTION MatrixParam::DeepEcho{{{*/ 55 55 void MatrixParam::DeepEcho(void){ 56 56 … … 61 61 } 62 62 /*}}}*/ 63 /*FUNCTION MatrixParam::Id{{{ 1*/63 /*FUNCTION MatrixParam::Id{{{*/ 64 64 int MatrixParam::Id(void){ return -1; } 65 65 /*}}}*/ 66 /*FUNCTION MatrixParam::MyRank{{{ 1*/66 /*FUNCTION MatrixParam::MyRank{{{*/ 67 67 int MatrixParam::MyRank(void){ 68 68 extern int my_rank; … … 70 70 } 71 71 /*}}}*/ 72 /*FUNCTION MatrixParam::ObjectEnum{{{ 1*/72 /*FUNCTION MatrixParam::ObjectEnum{{{*/ 73 73 int MatrixParam::ObjectEnum(void){ 74 74 … … 77 77 } 78 78 /*}}}*/ 79 /*FUNCTION MatrixParam::copy{{{ 1*/79 /*FUNCTION MatrixParam::copy{{{*/ 80 80 Object* MatrixParam::copy() { 81 81 … … 86 86 87 87 /*MatrixParam virtual functions definitions: */ 88 /*FUNCTION MatrixParam::GetParameterValue{{{ 1*/88 /*FUNCTION MatrixParam::GetParameterValue{{{*/ 89 89 void MatrixParam::GetParameterValue(Matrix** poutput){ 90 90 Matrix* output=NULL; … … 96 96 } 97 97 /*}}}*/ 98 /*FUNCTION MatrixParam::GetParameterName{{{ 1*/98 /*FUNCTION MatrixParam::GetParameterName{{{*/ 99 99 void MatrixParam::GetParameterName(char**pname){ 100 100 EnumToStringx(pname,this->enum_type); 101 101 } 102 102 /*}}}*/ 103 /*FUNCTION MatrixParam::SetValue{{{ 1*/103 /*FUNCTION MatrixParam::SetValue{{{*/ 104 104 void MatrixParam::SetValue(Matrix* matrix){ 105 105 … … 111 111 } 112 112 /*}}}*/ 113 /*FUNCTION MatrixParam::UnitConversion{{{ 1*/113 /*FUNCTION MatrixParam::UnitConversion{{{*/ 114 114 void MatrixParam::UnitConversion(int direction_enum){ 115 115 /*do nothing, no unit conversion*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Params/MatrixParam.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 28 28 29 29 public: 30 /*MatrixParam constructors, destructors: {{{ 1*/30 /*MatrixParam constructors, destructors: {{{*/ 31 31 MatrixParam(); 32 32 MatrixParam(int enum_type,Matrix* value); 33 33 ~MatrixParam(); 34 34 /*}}}*/ 35 /*Object virtual functions definitions:{{{ 1*/35 /*Object virtual functions definitions:{{{ */ 36 36 void Echo(); 37 37 void DeepEcho(); … … 41 41 Object* copy(); 42 42 /*}}}*/ 43 /*Param vritual function definitions: {{{ 1*/43 /*Param vritual function definitions: {{{*/ 44 44 int InstanceEnum(){return enum_type;} 45 45 void GetParameterValue(bool* pbool){_error_("Matrix param of enum %i (%s) cannot return a bool",enum_type,EnumToStringx(enum_type));} -
TabularUnified issm/trunk-jpl/src/c/objects/Params/Param.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 12 12 #ifdef HAVE_CONFIG_H -
TabularUnified issm/trunk-jpl/src/c/objects/Params/StringArrayParam.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*StringArrayParam constructors and destructor*/ 23 /*FUNCTION StringArrayParam::StringArrayParam(){{{ 1*/23 /*FUNCTION StringArrayParam::StringArrayParam(){{{*/ 24 24 StringArrayParam::StringArrayParam(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION StringArrayParam::StringArrayParam(int enum_type,char** in_values,int in_numstrings){{{ 1*/28 /*FUNCTION StringArrayParam::StringArrayParam(int enum_type,char** in_values,int in_numstrings){{{*/ 29 29 StringArrayParam::StringArrayParam(int in_enum_type,char** in_values, int in_numstrings){ 30 30 … … 49 49 } 50 50 /*}}}*/ 51 /*FUNCTION StringArrayParam::~StringArrayParam(){{{ 1*/51 /*FUNCTION StringArrayParam::~StringArrayParam(){{{*/ 52 52 StringArrayParam::~StringArrayParam(){ 53 53 … … 64 64 65 65 /*Object virtual functions definitions:*/ 66 /*FUNCTION StringArrayParam::Echo {{{ 1*/66 /*FUNCTION StringArrayParam::Echo {{{*/ 67 67 void StringArrayParam::Echo(void){ 68 68 this->DeepEcho(); 69 69 } 70 70 /*}}}*/ 71 /*FUNCTION StringArrayParam::DeepEcho{{{ 1*/71 /*FUNCTION StringArrayParam::DeepEcho{{{*/ 72 72 void StringArrayParam::DeepEcho(void){ 73 73 … … 83 83 } 84 84 /*}}}*/ 85 /*FUNCTION StringArrayParam::Id{{{ 1*/85 /*FUNCTION StringArrayParam::Id{{{*/ 86 86 int StringArrayParam::Id(void){ return -1; } 87 87 /*}}}*/ 88 /*FUNCTION StringArrayParam::MyRank{{{ 1*/88 /*FUNCTION StringArrayParam::MyRank{{{*/ 89 89 int StringArrayParam::MyRank(void){ 90 90 extern int my_rank; … … 92 92 } 93 93 /*}}}*/ 94 /*FUNCTION StringArrayParam::ObjectEnum{{{ 1*/94 /*FUNCTION StringArrayParam::ObjectEnum{{{*/ 95 95 int StringArrayParam::ObjectEnum(void){ 96 96 … … 99 99 } 100 100 /*}}}*/ 101 /*FUNCTION StringArrayParam::copy{{{ 1*/101 /*FUNCTION StringArrayParam::copy{{{*/ 102 102 Object* StringArrayParam::copy() { 103 103 … … 108 108 109 109 /*StringArrayParam virtual functions definitions: */ 110 /*FUNCTION StringArrayParam::GetParameterValue{{{ 1*/110 /*FUNCTION StringArrayParam::GetParameterValue{{{*/ 111 111 void StringArrayParam::GetParameterValue(char*** pstringarray,int* pM){ 112 112 … … 139 139 } 140 140 /*}}}*/ 141 /*FUNCTION StringArrayParam::GetParameterName{{{ 1*/141 /*FUNCTION StringArrayParam::GetParameterName{{{*/ 142 142 void StringArrayParam::GetParameterName(char**pname){ 143 143 EnumToStringx(pname,this->enum_type); 144 144 } 145 145 /*}}}*/ 146 /*FUNCTION StringArrayParam::SetValue{{{ 1*/146 /*FUNCTION StringArrayParam::SetValue{{{*/ 147 147 void StringArrayParam::SetValue(char** stringarray,int M){ 148 148 … … 173 173 } 174 174 /*}}}*/ 175 /*FUNCTION StringArrayParam::UnitConversion{{{ 1*/175 /*FUNCTION StringArrayParam::UnitConversion{{{*/ 176 176 void StringArrayParam::UnitConversion(int direction_enum){ 177 177 /*do nothing, no unit conversion*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Params/StringArrayParam.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 30 30 31 31 public: 32 /*StringArrayParam constructors, destructors: {{{ 1*/32 /*StringArrayParam constructors, destructors: {{{*/ 33 33 StringArrayParam(); 34 34 StringArrayParam(int enum_type,char** values, int numstrings); 35 35 ~StringArrayParam(); 36 36 /*}}}*/ 37 /*Object virtual functions definitions:{{{ 1*/37 /*Object virtual functions definitions:{{{ */ 38 38 void Echo(); 39 39 void DeepEcho(); … … 43 43 Object* copy(); 44 44 /*}}}*/ 45 /*Param vritual function definitions: {{{ 1*/45 /*Param vritual function definitions: {{{*/ 46 46 int InstanceEnum(){return enum_type;} 47 47 void GetParameterValue(bool* pbool){_error_("StringArray param of enum %i (%s) cannot return a bool",enum_type,EnumToStringx(enum_type));} -
TabularUnified issm/trunk-jpl/src/c/objects/Params/StringParam.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*StringParam constructors and destructor*/ 23 /*FUNCTION StringParam::StringParam(){{{ 1*/23 /*FUNCTION StringParam::StringParam(){{{*/ 24 24 StringParam::StringParam(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION StringParam::StringParam(int enum_type,IssmString value){{{ 1*/28 /*FUNCTION StringParam::StringParam(int enum_type,IssmString value){{{*/ 29 29 StringParam::StringParam(int in_enum_type,char* in_value){ 30 30 … … 36 36 } 37 37 /*}}}*/ 38 /*FUNCTION StringParam::~StringParam(){{{ 1*/38 /*FUNCTION StringParam::~StringParam(){{{*/ 39 39 StringParam::~StringParam(){ 40 40 xfree((void**)&value); … … 43 43 44 44 /*Object virtual functions definitions:*/ 45 /*FUNCTION StringParam::Echo {{{ 1*/45 /*FUNCTION StringParam::Echo {{{*/ 46 46 void StringParam::Echo(void){ 47 47 this->DeepEcho(); 48 48 } 49 49 /*}}}*/ 50 /*FUNCTION StringParam::DeepEcho{{{ 1*/50 /*FUNCTION StringParam::DeepEcho{{{*/ 51 51 void StringParam::DeepEcho(void){ 52 52 printf("StringParam:\n"); … … 55 55 } 56 56 /*}}}*/ 57 /*FUNCTION StringParam::Id{{{ 1*/57 /*FUNCTION StringParam::Id{{{*/ 58 58 int StringParam::Id(void){ return -1; } 59 59 /*}}}*/ 60 /*FUNCTION StringParam::MyRank{{{ 1*/60 /*FUNCTION StringParam::MyRank{{{*/ 61 61 int StringParam::MyRank(void){ 62 62 extern int my_rank; … … 64 64 } 65 65 /*}}}*/ 66 /*FUNCTION StringParam::ObjectEnum{{{ 1*/66 /*FUNCTION StringParam::ObjectEnum{{{*/ 67 67 int StringParam::ObjectEnum(void){ 68 68 … … 71 71 } 72 72 /*}}}*/ 73 /*FUNCTION StringParam::copy{{{ 1*/73 /*FUNCTION StringParam::copy{{{*/ 74 74 Object* StringParam::copy() { 75 75 … … 80 80 81 81 /*StringParam virtual functions definitions: */ 82 /*FUNCTION StringParam::GetParameterValue{{{ 1*/82 /*FUNCTION StringParam::GetParameterValue{{{*/ 83 83 void StringParam::GetParameterValue(char** pstring){ 84 84 … … 95 95 } 96 96 /*}}}*/ 97 /*FUNCTION StringParam::GetParameterName{{{ 1*/97 /*FUNCTION StringParam::GetParameterName{{{*/ 98 98 void StringParam::GetParameterName(char**pname){ 99 99 EnumToStringx(pname,this->enum_type); 100 100 } 101 101 /*}}}*/ 102 /*FUNCTION StringParam::SetValue{{{ 1*/102 /*FUNCTION StringParam::SetValue{{{*/ 103 103 void StringParam::SetValue(char* string){ 104 104 … … 115 115 } 116 116 /*}}}*/ 117 /*FUNCTION StringParam::UnitConversion{{{ 1*/117 /*FUNCTION StringParam::UnitConversion{{{*/ 118 118 void StringParam::UnitConversion(int direction_enum){ 119 119 /*do nothing, no unit conversion*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Params/StringParam.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 28 28 29 29 public: 30 /*StringParam constructors, destructors: {{{ 1*/30 /*StringParam constructors, destructors: {{{*/ 31 31 StringParam(); 32 32 StringParam(int enum_type,char* value); 33 33 ~StringParam(); 34 34 /*}}}*/ 35 /*Object virtual functions definitions:{{{ 1*/35 /*Object virtual functions definitions:{{{ */ 36 36 void Echo(); 37 37 void DeepEcho(); … … 41 41 Object* copy(); 42 42 /*}}}*/ 43 /*Param vritual function definitions: {{{ 1*/43 /*Param vritual function definitions: {{{*/ 44 44 int InstanceEnum(){return enum_type;} 45 45 void GetParameterValue(bool* pbool){_error_("String param of enum %i (%s) cannot return a bool",enum_type,EnumToStringx(enum_type));} -
TabularUnified issm/trunk-jpl/src/c/objects/Params/VectorParam.cpp ¶
r12014 r12365 4 4 5 5 /*header files: */ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 21 21 22 22 /*VectorParam constructors and destructor*/ 23 /*FUNCTION VectorParam::VectorParam(){{{ 1*/23 /*FUNCTION VectorParam::VectorParam(){{{*/ 24 24 VectorParam::VectorParam(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION VectorParam::VectorParam(int enum_type,IssmVector value){{{ 1*/28 /*FUNCTION VectorParam::VectorParam(int enum_type,IssmVector value){{{*/ 29 29 VectorParam::VectorParam(int in_enum_type,Vector* in_value){ 30 30 … … 39 39 } 40 40 /*}}}*/ 41 /*FUNCTION VectorParam::~VectorParam(){{{ 1*/41 /*FUNCTION VectorParam::~VectorParam(){{{*/ 42 42 VectorParam::~VectorParam(){ 43 43 xdelete(&value); … … 46 46 47 47 /*Object virtual functions definitions:*/ 48 /*FUNCTION VectorParam::Echo {{{ 1*/48 /*FUNCTION VectorParam::Echo {{{*/ 49 49 void VectorParam::Echo(void){ 50 50 … … 54 54 } 55 55 /*}}}*/ 56 /*FUNCTION VectorParam::DeepEcho{{{ 1*/56 /*FUNCTION VectorParam::DeepEcho{{{*/ 57 57 void VectorParam::DeepEcho(void){ 58 58 … … 63 63 } 64 64 /*}}}*/ 65 /*FUNCTION VectorParam::Id{{{ 1*/65 /*FUNCTION VectorParam::Id{{{*/ 66 66 int VectorParam::Id(void){ return -1; } 67 67 /*}}}*/ 68 /*FUNCTION VectorParam::MyRank{{{ 1*/68 /*FUNCTION VectorParam::MyRank{{{*/ 69 69 int VectorParam::MyRank(void){ 70 70 extern int my_rank; … … 72 72 } 73 73 /*}}}*/ 74 /*FUNCTION VectorParam::ObjectEnum{{{ 1*/74 /*FUNCTION VectorParam::ObjectEnum{{{*/ 75 75 int VectorParam::ObjectEnum(void){ 76 76 … … 79 79 } 80 80 /*}}}*/ 81 /*FUNCTION VectorParam::copy{{{ 1*/81 /*FUNCTION VectorParam::copy{{{*/ 82 82 Object* VectorParam::copy() { 83 83 … … 88 88 89 89 /*VectorParam virtual functions definitions: */ 90 /*FUNCTION VectorParam::GetParameterValue{{{ 1*/90 /*FUNCTION VectorParam::GetParameterValue{{{*/ 91 91 void VectorParam::GetParameterValue(Vector** poutput){ 92 92 Vector* output=NULL; … … 99 99 } 100 100 /*}}}*/ 101 /*FUNCTION VectorParam::GetParameterName{{{ 1*/101 /*FUNCTION VectorParam::GetParameterName{{{*/ 102 102 void VectorParam::GetParameterName(char**pname){ 103 103 EnumToStringx(pname,this->enum_type); 104 104 } 105 105 /*}}}*/ 106 /*FUNCTION VectorParam::SetValue{{{ 1*/106 /*FUNCTION VectorParam::SetValue{{{*/ 107 107 void VectorParam::SetValue(Vector* vector){ 108 108 … … 115 115 } 116 116 /*}}}*/ 117 /*FUNCTION VectorParam::UnitConversion{{{ 1*/117 /*FUNCTION VectorParam::UnitConversion{{{*/ 118 118 void VectorParam::UnitConversion(int direction_enum){ 119 119 /*do nothing, no unit conversion*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Params/VectorParam.h ¶
r12014 r12365 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 28 28 29 29 public: 30 /*VectorParam constructors, destructors: {{{ 1*/30 /*VectorParam constructors, destructors: {{{*/ 31 31 VectorParam(); 32 32 VectorParam(int enum_type,Vector* value); 33 33 ~VectorParam(); 34 34 /*}}}*/ 35 /*Object virtual functions definitions:{{{ 1*/35 /*Object virtual functions definitions:{{{ */ 36 36 void Echo(); 37 37 void DeepEcho(); … … 41 41 Object* copy(); 42 42 /*}}}*/ 43 /*Param vritual function definitions: {{{ 1*/43 /*Param vritual function definitions: {{{*/ 44 44 int InstanceEnum(){return enum_type;} 45 45 void GetParameterValue(bool* pbool){_error_("Vector param of enum %i (%s) cannot return a bool",enum_type,EnumToStringx(enum_type));} -
TabularUnified issm/trunk-jpl/src/c/objects/Patch.cpp ¶
r12102 r12365 3 3 */ 4 4 5 /*Include files: {{{ 1*/5 /*Include files: {{{*/ 6 6 #ifdef HAVE_CONFIG_H 7 7 #include <config.h> … … 22 22 23 23 /*Object constructors and destructors:*/ 24 /*FUNCTION Patch::Patch() default constructor {{{ 1*/24 /*FUNCTION Patch::Patch() default constructor {{{*/ 25 25 Patch::Patch(){ 26 26 this->numrows=0; … … 31 31 } 32 32 /*}}}*/ 33 /*FUNCTION Patch::Patch(int numrows, int maxvertices, int maxnodes){{{ 1*/33 /*FUNCTION Patch::Patch(int numrows, int maxvertices, int maxnodes){{{*/ 34 34 Patch::Patch(int in_numrows, int in_maxvertices, int in_maxnodes){ 35 35 … … 62 62 } 63 63 /*}}}*/ 64 /*FUNCTION Patch::~Patch(){{{ 1*/64 /*FUNCTION Patch::~Patch(){{{*/ 65 65 Patch::~Patch(){ 66 66 xfree((void**)&values); … … 69 69 70 70 /*Object methods*/ 71 /*FUNCTION Patch::fillelementinfo{{{ 1*/71 /*FUNCTION Patch::fillelementinfo{{{*/ 72 72 void Patch::fillelementinfo(int count, int element_id, int* vertices_ids, int num_vertices){ 73 73 … … 88 88 } 89 89 /*}}}*/ 90 /*FUNCTION Patch::fillresultinfo{{{ 1*/90 /*FUNCTION Patch::fillresultinfo{{{*/ 91 91 void Patch::fillresultinfo(int count,int enum_type,int step, double time, int interpolation, double* nodal_values, int num_nodes){ 92 92 … … 110 110 } 111 111 /*}}}*/ 112 /*FUNCTION Patch::Gather{{{ 1*/112 /*FUNCTION Patch::Gather{{{*/ 113 113 void Patch::Gather(void){ 114 114 -
TabularUnified issm/trunk-jpl/src/c/objects/Segment.cpp ¶
r12339 r12365 3 3 */ 4 4 5 /*Include files: {{{ 1*/5 /*Include files: {{{*/ 6 6 #ifdef HAVE_CONFIG_H 7 7 #include <config.h> … … 20 20 21 21 /*Segment constructors and destructors:*/ 22 /*FUNCTION Segment::Segment() default constructor {{{ 1*/22 /*FUNCTION Segment::Segment() default constructor {{{*/ 23 23 Segment::Segment(){ 24 24 this->eid=UNDEF; … … 29 29 } 30 30 /*}}}*/ 31 /*FUNCTION Segment::Segment(int eid, IssmDouble x1,IssmDouble y1,IssmDouble x2, IssmDouble y2){{{ 1*/31 /*FUNCTION Segment::Segment(int eid, IssmDouble x1,IssmDouble y1,IssmDouble x2, IssmDouble y2){{{*/ 32 32 Segment::Segment(int segment_eid, IssmDouble segment_x1,IssmDouble segment_y1,IssmDouble segment_x2, IssmDouble segment_y2){ 33 33 … … 40 40 } 41 41 /*}}}*/ 42 /*FUNCTION Segment::~Segment(){{{ 1*/42 /*FUNCTION Segment::~Segment(){{{*/ 43 43 Segment::~Segment(){ 44 44 } … … 46 46 47 47 /*Object virtual functions definitions:*/ 48 /*FUNCTION Segment::Echo{{{ 1*/48 /*FUNCTION Segment::Echo{{{*/ 49 49 void Segment::Echo(void){ 50 50 … … 56 56 } 57 57 /*}}}*/ 58 /*FUNCTION Segment::DeepEcho{{{ 1*/58 /*FUNCTION Segment::DeepEcho{{{*/ 59 59 void Segment::DeepEcho(void){ 60 60 this->Echo(); 61 61 } 62 62 /*}}}*/ 63 /*FUNCTION Segment::Id{{{ 1*/63 /*FUNCTION Segment::Id{{{*/ 64 64 int Segment::Id(void){ return eid; } 65 65 /*}}}*/ 66 /*FUNCTION Segment::MyRank{{{ 1*/66 /*FUNCTION Segment::MyRank{{{*/ 67 67 int Segment::MyRank(void){ 68 68 extern int my_rank; … … 71 71 } 72 72 /*}}}*/ 73 /*FUNCTION Segment::ObjectEnum{{{ 1*/73 /*FUNCTION Segment::ObjectEnum{{{*/ 74 74 int Segment::ObjectEnum(void){ 75 75 … … 78 78 } 79 79 /*}}}*/ 80 /*FUNCTION Segment::copy {{{ 1*/80 /*FUNCTION Segment::copy {{{*/ 81 81 Object* Segment::copy() { 82 82 return new Segment(this->eid,this->x1,this->y1,this->x2,this->y2); -
TabularUnified issm/trunk-jpl/src/c/objects/Segment.h ¶
r12322 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "./Object.h" 11 11 /*}}}*/ … … 20 20 IssmDouble y2; 21 21 22 /*Segment constructors, destructors {{{ 1*/22 /*Segment constructors, destructors {{{*/ 23 23 Segment(); 24 24 Segment(int eid,IssmDouble x1,IssmDouble y1, IssmDouble x2, IssmDouble y2); 25 25 ~Segment(); 26 26 /*}}}*/ 27 /*Object virtual functions definitions:{{{ 1*/27 /*Object virtual functions definitions:{{{ */ 28 28 void Echo(); 29 29 void DeepEcho(); -
TabularUnified issm/trunk-jpl/src/c/objects/Update.h ¶
r12322 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "../shared/shared.h" 11 11 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/objects/Vertex.cpp ¶
r12340 r12365 3 3 */ 4 4 5 /*Include files: {{{ 1*/5 /*Include files: {{{*/ 6 6 #ifdef HAVE_CONFIG_H 7 7 #include <config.h> … … 18 18 19 19 /*Vertex constructors and destructor:*/ 20 /*FUNCTION Vertex::Vertex() {{{ 1*/20 /*FUNCTION Vertex::Vertex() {{{*/ 21 21 Vertex::Vertex(){ 22 22 return; 23 23 } 24 24 /*}}}*/ 25 /*FUNCTION Vertex::Vertex(int vertex_id, IssmDouble vertex_x, IssmDouble vertex_y, IssmDouble vertex_z, IssmDouble vertex_sigma){{{ 1*/25 /*FUNCTION Vertex::Vertex(int vertex_id, IssmDouble vertex_x, IssmDouble vertex_y, IssmDouble vertex_z, IssmDouble vertex_sigma){{{*/ 26 26 Vertex::Vertex(int vertex_id, int vertex_sid,IssmDouble vertex_x, IssmDouble vertex_y, IssmDouble vertex_z, IssmDouble vertex_sigma,int vertex_connectivity){ 27 27 this->Init(vertex_id, vertex_sid,vertex_x, vertex_y, vertex_z, vertex_sigma,vertex_connectivity); 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION Vertex::Vertex(int vertex_id, int vertex_sid,int i, IoModel* iomodel) {{{ 1*/30 /*FUNCTION Vertex::Vertex(int vertex_id, int vertex_sid,int i, IoModel* iomodel) {{{*/ 31 31 Vertex::Vertex(int vertex_id, int vertex_sid,int i, IoModel* iomodel){ 32 32 … … 38 38 } 39 39 /*}}}*/ 40 /*FUNCTION Vertex::~Vertex() {{{ 1*/40 /*FUNCTION Vertex::~Vertex() {{{*/ 41 41 Vertex::~Vertex(){ 42 42 return; 43 43 } 44 44 /*}}}*/ 45 /*FUNCTION Vertex::Init{{{ 1*/45 /*FUNCTION Vertex::Init{{{*/ 46 46 void Vertex::Init(int vertex_id, int vertex_sid,IssmDouble vertex_x, IssmDouble vertex_y, IssmDouble vertex_z, IssmDouble vertex_sigma,int vertex_connectivity){ 47 47 … … 61 61 62 62 /*Object virtual functions definitions:*/ 63 /*FUNCTION Vertex::Echo{{{ 1*/63 /*FUNCTION Vertex::Echo{{{*/ 64 64 void Vertex::Echo(void){ 65 65 … … 78 78 } 79 79 /*}}}*/ 80 /*FUNCTION Vertex::DeepEcho{{{ 1*/80 /*FUNCTION Vertex::DeepEcho{{{*/ 81 81 void Vertex::DeepEcho(void){ 82 82 this->Echo(); 83 83 } 84 84 /*}}}*/ 85 /*FUNCTION Vertex::Id{{{ 1*/85 /*FUNCTION Vertex::Id{{{*/ 86 86 int Vertex::Id(void){ return id; } 87 87 /*}}}*/ 88 /*FUNCTION Vertex::MyRank {{{ 1*/88 /*FUNCTION Vertex::MyRank {{{*/ 89 89 int Vertex::MyRank(void){ 90 90 extern int my_rank; … … 92 92 } 93 93 /*}}}*/ 94 /*FUNCTION Vertex::ObjectEnum{{{ 1*/94 /*FUNCTION Vertex::ObjectEnum{{{*/ 95 95 int Vertex::ObjectEnum(void){ 96 96 … … 99 99 } 100 100 /*}}}*/ 101 /*FUNCTION Vertex::copy {{{ 1*/101 /*FUNCTION Vertex::copy {{{*/ 102 102 Object* Vertex::copy() { 103 103 … … 108 108 109 109 /* DofObject routines: */ 110 /*FUNCTION Vertex::DistributeDofs{{{ 1*/110 /*FUNCTION Vertex::DistributeDofs{{{*/ 111 111 void Vertex::DistributeDofs(int* pdofcount){ 112 112 … … 131 131 } 132 132 /*}}}*/ 133 /*FUNCTION Vertex::OffsetDofs{{{ 1*/133 /*FUNCTION Vertex::OffsetDofs{{{*/ 134 134 void Vertex::OffsetDofs(int dofcount){ 135 135 … … 146 146 } 147 147 /*}}}*/ 148 /*FUNCTION Vertex::ShowTrueDofs{{{ 1*/148 /*FUNCTION Vertex::ShowTrueDofs{{{*/ 149 149 void Vertex::ShowTrueDofs(int* truedofs){ 150 150 … … 160 160 } 161 161 /*}}}*/ 162 /*FUNCTION Vertex::UpdateCloneDofs{{{ 1*/162 /*FUNCTION Vertex::UpdateCloneDofs{{{*/ 163 163 void Vertex::UpdateCloneDofs(int* alltruedofs){ 164 164 … … 174 174 } 175 175 /*}}}*/ 176 /*FUNCTION Vertex::SetClone {{{ 1*/176 /*FUNCTION Vertex::SetClone {{{*/ 177 177 void Vertex::SetClone(int* minranks){ 178 178 … … 192 192 193 193 /*Vertex management: */ 194 /*FUNCTION Vertex::Connectivity{{{ 1*/194 /*FUNCTION Vertex::Connectivity{{{*/ 195 195 int Vertex::Connectivity(void){return connectivity;} 196 196 /*}}}*/ 197 /*FUNCTION Vertex::Sid{{{ 1*/197 /*FUNCTION Vertex::Sid{{{*/ 198 198 int Vertex::Sid(void){ return sid; } 199 199 /*}}}*/ 200 /*FUNCTION Vertex::UpdateVertexPosition {{{ 1*/200 /*FUNCTION Vertex::UpdateVertexPosition {{{*/ 201 201 void Vertex::UpdatePosition(Vector* vz,Parameters* parameters,IssmDouble* thickness,IssmDouble* bed){ 202 202 -
TabularUnified issm/trunk-jpl/src/c/objects/Vertex.h ¶
r12322 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #include "./Object.h" 11 11 class IoModel; … … 35 35 int dof; //dof to recover values in a vertex indexed vector 36 36 37 /*Vertex constructors, destructors {{{ 1*/37 /*Vertex constructors, destructors {{{*/ 38 38 Vertex(); 39 39 Vertex(int id, int sid,IssmDouble x, IssmDouble y, IssmDouble z, IssmDouble sigma, int connectivity); … … 42 42 ~Vertex(); 43 43 /*}}}*/ 44 /*Object virtual functions definitions:{{{ 1*/44 /*Object virtual functions definitions:{{{ */ 45 45 void Echo(); 46 46 void DeepEcho(); … … 50 50 Object* copy(); 51 51 /*}}}*/ 52 /*DofObject routines {{{ 1*/52 /*DofObject routines {{{*/ 53 53 void DistributeDofs(int* pdofcount); 54 54 void OffsetDofs(int dofcount); … … 57 57 void SetClone(int* minranks); 58 58 /*}}}*/ 59 /*Vertex management: {{{ 1*/59 /*Vertex management: {{{*/ 60 60 int Sid(void); 61 61 int Connectivity(void); -
TabularUnified issm/trunk-jpl/src/c/python/include/python_macros.h ¶
r12119 r12365 6 6 #define _PYTHON_MACROS_H_ 7 7 8 /*Header {{{ 1*/8 /*Header {{{*/ 9 9 10 10 #ifdef HAVE_CONFIG_H … … 16 16 17 17 #ifdef _HAVE_PYTHON_ 18 /* MODULEBOOT/MODULEEND {{{ 1*/18 /* MODULEBOOT/MODULEEND {{{*/ 19 19 20 20 /*The following macros hide the error exception handling in a matlab module. Just put … … 30 30 //}}} 31 31 #if _PYTHON_MAJOR_ >=3 32 /* WRAPPER 3.2 {{{ 1*/32 /* WRAPPER 3.2 {{{*/ 33 33 #define WRAPPER(modulename,...) \ 34 34 \ … … 57 57 /*}}}*/ 58 58 #else 59 /* WRAPPER 2.7 {{{ 1*/59 /* WRAPPER 2.7 {{{*/ 60 60 #define WRAPPER(modulename,...) \ 61 61 \ … … 75 75 /*}}}*/ 76 76 #endif 77 /* CHECKARGUMENTS {{{ 1*/77 /* CHECKARGUMENTS {{{*/ 78 78 #define CHECKARGUMENTS(NLHS,NRHS,functionpointer) CheckNumPythonArguments(args, NRHS,functionpointer) 79 79 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/python/io/FetchPythonData.cpp ¶
r12120 r12365 17 17 18 18 /*Primitive data types*/ 19 /*FUNCTION FetchData(double* pscalar,PyObject* py_float){{{ 1*/19 /*FUNCTION FetchData(double* pscalar,PyObject* py_float){{{*/ 20 20 void FetchData(double* pscalar,PyObject* py_float){ 21 21 … … 29 29 } 30 30 /*}}}*/ 31 /*FUNCTION FetchData(int* pinteger,PyObject* py_long){{{ 1*/31 /*FUNCTION FetchData(int* pinteger,PyObject* py_long){{{*/ 32 32 void FetchData(int* pinteger, PyObject* py_long){ 33 33 … … 41 41 } 42 42 /*}}}*/ 43 /*FUNCTION FetchData(bool* pboolean,PyObject* py_boolean){{{ 1*/43 /*FUNCTION FetchData(bool* pboolean,PyObject* py_boolean){{{*/ 44 44 void FetchData(bool* pboolean,PyObject* py_boolean){ 45 45 … … 57 57 } 58 58 /*}}}*/ 59 /*FUNCTION FetchData(double** pmatrix,int* pM, int* pN, PyObject* py_matrix){{{ 1*/59 /*FUNCTION FetchData(double** pmatrix,int* pM, int* pN, PyObject* py_matrix){{{*/ 60 60 void FetchData(double** pmatrix,int* pM,int *pN,PyObject* py_matrix){ 61 61 … … 81 81 } 82 82 /*}}}*/ 83 /*FUNCTION FetchData(double** pvector,int* pM, PyObject* py_vector){{{ 1*/83 /*FUNCTION FetchData(double** pvector,int* pM, PyObject* py_vector){{{*/ 84 84 void FetchData(double** pvector,int* pM,PyObject* py_vector){ 85 85 … … 107 107 /*Python version dependent: */ 108 108 #if _PYTHON_MAJOR_ >= 3 109 /*FUNCTION FetchData(char** pstring,PyObject* py_unicode){{{ 1*/109 /*FUNCTION FetchData(char** pstring,PyObject* py_unicode){{{*/ 110 110 void FetchData(char** pstring,PyObject* py_unicode){ 111 111 … … 124 124 /*}}}*/ 125 125 #else 126 /*FUNCTION FetchData(char** pstring,PyObject* py_string){{{ 1*/126 /*FUNCTION FetchData(char** pstring,PyObject* py_string){{{*/ 127 127 void FetchData(char** pstring,PyObject* py_string){ 128 128 -
TabularUnified issm/trunk-jpl/src/c/python/io/WritePythonData.cpp ¶
r12112 r12365 21 21 22 22 23 /*FUNCTION WriteData(PyObject* py_tuple,int index,char* string){{{ 1*/23 /*FUNCTION WriteData(PyObject* py_tuple,int index,char* string){{{*/ 24 24 void WriteData(PyObject* py_tuple, int index, char* string){ 25 25 26 26 PyTuple_SetItem(py_tuple, index, PyUnicode_FromString(string)); 27 27 28 } 29 /*}}}*/ 30 /*FUNCTION WriteData(PyObject* tuple,int index,Matrix* matrix){{{1*/ 28 }/*}}}*/ 29 /*FUNCTION WriteData(PyObject* tuple,int index,Matrix* matrix){{{*/ 31 30 void WriteData(PyObject* tuple,int index,Matrix* matrix){ 32 31 … … 45 44 46 45 47 } 48 /*FUNCTION WriteData(PyObject* py_tuple,int index,Vector* vector){{{ 1*/46 }/*}}}*/ 47 /*FUNCTION WriteData(PyObject* py_tuple,int index,Vector* vector){{{*/ 49 48 void WriteData(PyObject* tuple,int index,Vector* vector){ 50 49 … … 64 63 } 65 64 /*}}}*/ 66 /*FUNCTION WriteData(PyObject* py_tuple,int index, double* matrix, int M, int N){{{ 1*/65 /*FUNCTION WriteData(PyObject* py_tuple,int index, double* matrix, int M, int N){{{*/ 67 66 void WriteData(PyObject* tuple, int index, double* matrix, int M,int N){ 68 67 … … 76 75 PyTuple_SetItem(tuple, index, array); 77 76 78 } 77 }/*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/shared/Exp/IsInPoly.cpp ¶
r11695 r12365 14 14 #endif 15 15 16 /*IsInPoly {{{ 1*/16 /*IsInPoly {{{*/ 17 17 int IsInPoly(Vector* in,double* xc,double* yc,int numvertices,double* x,double* y,int i0,int i1, int edgevalue){ 18 18 … … 55 55 return 1; 56 56 }/*}}}*/ 57 /*IsOutsidePoly {{{ 1*/57 /*IsOutsidePoly {{{*/ 58 58 int IsOutsidePoly(Vector* in,double* xc,double* yc,int numvertices,double* x,double* y,int i0,int i1, int edgevalue){ 59 59 … … 96 96 return 1; 97 97 }/*}}}*/ 98 /*pnpoly{{{ 1*/98 /*pnpoly{{{*/ 99 99 int pnpoly(int npol, double *xp, double *yp, double x, double y, int edgevalue) { 100 100 int i, j, c = 0; -
TabularUnified issm/trunk-jpl/src/c/shared/Matrix/MatrixUtils.cpp ¶
r11973 r12365 4 4 5 5 /*Headers*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #include "./matrix.h" 8 8 #include "../Exceptions/exceptions.h" … … 16 16 /*}}}*/ 17 17 18 /*FUNCTION TripleMultiply {{{ 1*/18 /*FUNCTION TripleMultiply {{{*/ 19 19 int TripleMultiply( double* a, int nrowa, int ncola, int itrna, double* b, int nrowb, int ncolb, int itrnb, double* c, int nrowc, int ncolc, int itrnc, double* d, int iaddd){ 20 20 /*TripleMultiply Perform triple matrix product a*b*c+d.*/ … … 98 98 return 1; 99 99 }/*}}}*/ 100 /*FUNCTION MatrixMuliply {{{ 1*/100 /*FUNCTION MatrixMuliply {{{*/ 101 101 int MatrixMultiply( double* a, int nrowa, int ncola, int itrna, double* b, int nrowb, int ncolb, int itrnb, double* c, int iaddc ){ 102 102 /*MatrixMultiply Perform matrix multiplication a*b+c.*/ … … 167 167 return noerr; 168 168 }/*}}}*/ 169 /*FUNCTION MatrixInverse {{{ 1*/169 /*FUNCTION MatrixInverse {{{*/ 170 170 int MatrixInverse( double* a, int ndim, int nrow, double* b, int nvec, double* pdet ){ 171 171 /* MatrixInverse Perform matrix inversion and linear equation solution. … … 344 344 return noerr; 345 345 }/*}}}*/ 346 /*FUNCTION Matrix2x2Determinant(double* Adet,double* A) {{{ 1*/346 /*FUNCTION Matrix2x2Determinant(double* Adet,double* A) {{{*/ 347 347 void Matrix2x2Determinant(double* Adet,double* A){ 348 348 /*Compute determinant of a 2x2 matrix*/ … … 352 352 } 353 353 /*}}}*/ 354 /*FUNCTION Matrix2x2Invert(double* Ainv,double* A) {{{ 1*/354 /*FUNCTION Matrix2x2Invert(double* Ainv,double* A) {{{*/ 355 355 void Matrix2x2Invert(double* Ainv,double* A){ 356 356 … … 369 369 370 370 }/*}}}*/ 371 /*FUNCTION Matrix3x3Determinant(double* Adet,double* A) {{{ 1*/371 /*FUNCTION Matrix3x3Determinant(double* Adet,double* A) {{{*/ 372 372 void Matrix3x3Determinant(double* Adet,double* A){ 373 373 /*Compute determinant of a 3x3 matrix*/ … … 377 377 } 378 378 /*}}}*/ 379 /*FUNCTION Matrix3x3Invert(double* Ainv,double* A) {{{ 1*/379 /*FUNCTION Matrix3x3Invert(double* Ainv,double* A) {{{*/ 380 380 void Matrix3x3Invert(double* Ainv,double* A){ 381 381 … … 399 399 400 400 }/*}}}*/ 401 /*FUNCTION MatrixTranspose(double* Adet,double* A) {{{ 1*/401 /*FUNCTION MatrixTranspose(double* Adet,double* A) {{{*/ 402 402 void MatrixTranspose(double* tA,double* A, int nrows, int ncols){ 403 403 /*Transpose a n*m matrix*/ -
TabularUnified issm/trunk-jpl/src/c/shared/Numerics/GaussPoints.cpp ¶
r11973 r12365 10 10 11 11 /*General Gauss points*/ 12 /*FUNCTION GaussLegendreLinear {{{ 1*/12 /*FUNCTION GaussLegendreLinear {{{*/ 13 13 void GaussLegendreLinear( double** pxgaus, double** pxwgt, int ngaus){ 14 14 /* Gauss-Legendre quadrature points. … … 87 87 xfree((void **)&alpha); 88 88 } 89 }/*}}} 1*/90 /*FUNCTION GaussLegendreTria{{{ 1*/89 }/*}}}*/ 90 /*FUNCTION GaussLegendreTria{{{*/ 91 91 void GaussLegendreTria( int* pngaus, double** pl1, double** pl2, double** pl3, double** pwgt, int iord ) { 92 92 /*Gauss quadrature points for the triangle. … … 102 102 103 103 /*Hardcoded Gauss points declaration*/ 104 /*p= 1, npoint= 1{{{ 2*/104 /*p= 1, npoint= 1{{{*/ 105 105 static double wgt1[]={ 106 106 1.732050807568877}; … … 111 111 static double l31[]={ 112 112 0.333333333333333}; 113 /*}}} 2*/114 /*p= 2, npoint= 3 {{{ 2*/113 /*}}}*/ 114 /*p= 2, npoint= 3 {{{*/ 115 115 static double wgt2[]={ 116 116 0.577350269189625, 0.577350269189625, 0.577350269189625}; … … 121 121 static double l32[]={ 122 122 0.166666666666667, 0.166666666666667, 0.666666666666667}; 123 /*}}} 2*/124 /*p= 3, npoint= 4 {{{ 2*/123 /*}}}*/ 124 /*p= 3, npoint= 4 {{{*/ 125 125 static double wgt3[]={ 126 126 -0.974278579257493, 0.902109795608790, 0.902109795608790, … … 135 135 0.333333333333333, 0.200000000000000, 0.200000000000000, 136 136 0.600000000000000}; 137 /*}}} 2*/138 /*p= 4, npoint= 6 {{{ 2*/137 /*}}}*/ 138 /*p= 4, npoint= 6 {{{*/ 139 139 static double wgt4[]={ 140 140 0.386908262797819, 0.386908262797819, 0.386908262797819, … … 149 149 0.445948490915965, 0.445948490915965, 0.108103018168070, 150 150 0.091576213509771, 0.091576213509771, 0.816847572980459}; 151 /*}}} 2*/152 /*p= 5, npoint= 7 {{{ 2*/151 /*}}}*/ 152 /*p= 5, npoint= 7 {{{*/ 153 153 static double wgt5[]={ 154 154 0.389711431702997, 0.229313399254729, 0.229313399254729, … … 167 167 0.059715871789770, 0.101286507323456, 0.101286507323456, 168 168 0.797426985353087}; 169 /*}}} 2*/170 /*p= 6, npoint=12 {{{ 2*/169 /*}}}*/ 170 /*p= 6, npoint=12 {{{*/ 171 171 static double wgt6[]={ 172 172 0.202279763184836, 0.202279763184836, 0.202279763184836, … … 189 189 0.636502499121399, 0.310352451033784, 0.636502499121399, 190 190 0.310352451033784, 0.053145049844817, 0.053145049844817}; 191 /*}}} 2*/192 /*p= 7, npoint=13 {{{ 2*/191 /*}}}*/ 192 /*p= 7, npoint=13 {{{*/ 193 193 static double wgt7[]={ 194 194 -0.259062916308362, 0.304174548458604, 0.304174548458604, … … 215 215 0.638444188569810, 0.312865496004874, 0.048690315425316, 216 216 0.048690315425316}; 217 /*}}} 2*/218 /*p= 8, npoint=16 {{{ 2*/217 /*}}}*/ 218 /*p= 8, npoint=16 {{{*/ 219 219 static double wgt8[]={ 220 220 0.249961964823104, 0.164703541925695, 0.164703541925695, … … 245 245 0.728492392955404, 0.263112829634638, 0.008394777409958, 246 246 0.008394777409958}; 247 /*}}} 2*/248 /*p= 9, npoint=19 {{{ 2*/247 /*}}}*/ 248 /*p= 9, npoint=19 {{{*/ 249 249 static double wgt9[]={ 250 250 0.168244134395468, 0.054273292833345, 0.054273292833345, … … 279 279 0.741198598784498, 0.221962989160766, 0.036838412054736, 280 280 0.036838412054736}; 281 /*}}} 2*/282 /*p=10, npoint=25 {{{ 2*/281 /*}}}*/ 282 /*p=10, npoint=25 {{{*/ 283 283 static double wgt10[]={ 284 284 0.157301373584232, 0.063611224790829, 0.063611224790829, … … 321 321 0.923655933587500, 0.066803251012200, 0.009540815400299, 322 322 0.009540815400299}; 323 /*}}} 2*/324 /*p=11, npoint=27 {{{ 2*/323 /*}}}*/ 324 /*p=11, npoint=27 {{{*/ 325 325 static double wgt11[]={ 326 326 0.001605622060698, 0.001605622060698, 0.001605622060698, … … 363 363 0.807489003159792, 0.171488980304042, 0.807489003159792, 364 364 0.171488980304042, 0.021022016536166, 0.021022016536166}; 365 /*}}} 2*/366 /*p=12, npoint=33 {{{ 2*/365 /*}}}*/ 366 /*p=12, npoint=33 {{{*/ 367 367 static double wgt12[]={ 368 368 0.044567514407799, 0.044567514407799, 0.044567514407799, … … 413 413 0.858014033544073, 0.116251915907597, 0.858014033544073, 414 414 0.116251915907597, 0.025734050548330, 0.025734050548330}; 415 /*}}} 2*/416 /* p=13, npoint=37 {{{ 2*/415 /*}}}*/ 416 /* p=13, npoint=37 {{{*/ 417 417 static double wgt13[]={ 418 418 0.090968907790622, 0.019537784619314, 0.019537784619314, … … 471 471 0.851409537834241, 0.126357385491669, 0.022233076674090, 472 472 0.022233076674090}; 473 /*}}} 2*/474 /*p=14, npoint=42{{{ 2*/473 /*}}}*/ 474 /*p=14, npoint=42{{{*/ 475 475 static double wgt14[]={ 476 476 0.037903474783419, 0.037903474783419, 0.037903474783419, … … 533 533 0.879757171370171, 0.118974497696957, 0.879757171370171, 534 534 0.118974497696957, 0.001268330932872, 0.001268330932872}; 535 /*}}} 2*/536 /*p=15, npoint=48{{{ 2*/535 /*}}}*/ 536 /*p=15, npoint=48{{{*/ 537 537 static double wgt15[]={ 538 538 0.003320126005206, 0.003320126005206, 0.003320126005206, … … 603 603 0.883964574092416, 0.103575616576386, 0.883964574092416, 604 604 0.103575616576386, 0.012459809331199, 0.012459809331199}; 605 /*}}} 2*/606 /*p=16, npoint=52 {{{ 2*/605 /*}}}*/ 606 /*p=16, npoint=52 {{{*/ 607 607 static double wgt16[]={ 608 608 0.081191089584902, 0.011095307165226, 0.011095307165226, … … 681 681 0.900399064086661, 0.085283615682657, 0.014317320230681, 682 682 0.014317320230681}; 683 /*}}} 2*/684 /*p=17, npoint=61{{{ 2*/683 /*}}}*/ 684 /*p=17, npoint=61{{{*/ 685 685 static double wgt17[]={ 686 686 0.057914928034477, 0.008822054327014, 0.008822054327014, … … 771 771 0.904625504095608, 0.080711313679564, 0.014663182224828, 772 772 0.014663182224828}; 773 /*}}} 2*/774 /* p=18, npoint=70 {{{ 2*/773 /*}}}*/ 774 /* p=18, npoint=70 {{{*/ 775 775 776 776 static double wgt18[]={ … … 874 874 1.014347260005363, 0.020874755282586,-0.035222015287949, 875 875 -0.035222015287949}; 876 /*}}} 2*/877 /*p=19, npoint=73 {{{ 2*/876 /*}}}*/ 877 /*p=19, npoint=73 {{{*/ 878 878 879 879 static double wgt19[]={ … … 981 981 0.924344252620784, 0.065494628082938, 0.010161119296278, 982 982 0.010161119296278}; 983 /*}}} 2*/984 /*p=20, npoint=79 {{{ 2*/983 /*}}}*/ 984 /*p=20, npoint=79 {{{*/ 985 985 static double wgt20[]={ 986 986 0.057256499746719, 0.001501721280705, 0.001501721280705, … … 1095 1095 0.929756171556853, 0.059696109149007, 0.010547719294141, 1096 1096 0.010547719294141}; 1097 /*}}} 2*/1097 /*}}}*/ 1098 1098 1099 1099 static double* wgtp[MAX_TRIA_SYM_ORD]={ … … 1205 1205 1206 1206 return; 1207 }/*}}} 1*/1208 /*FUNCTION GaussLegendreTetra{{{ 1*/1207 }/*}}}*/ 1208 /*FUNCTION GaussLegendreTetra{{{*/ 1209 1209 void GaussLegendreTetra( int* pngaus, double** pl1, double** pl2, double** pl3, double** pl4, double** pwgt, int iord ) { 1210 1210 /* Gauss quadrature points for the tetrahedron. … … 1224 1224 1225 1225 /*Hardcoded Gauss points definition*/ 1226 /*p= 1, npoint= 1 {{{ 2*/1226 /*p= 1, npoint= 1 {{{*/ 1227 1227 static double wgt1[]={ 1228 1228 1.000000000000000}; … … 1235 1235 static double l41[]={ 1236 1236 0.250000000000000}; 1237 /*}}} 2*/1238 /*p= 2, npoint= 4 {{{ 2*/1237 /*}}}*/ 1238 /*p= 2, npoint= 4 {{{*/ 1239 1239 1240 1240 static double wgt2[]={ … … 1253 1253 0.138196601125011, 0.138196601125011, 0.138196601125011, 1254 1254 0.585410196624969}; 1255 /*}}} 2*/1256 /*p= 3, npoint= 5 {{{ 2*/1255 /*}}}*/ 1256 /*p= 3, npoint= 5 {{{*/ 1257 1257 static double wgt3[]={ 1258 1258 -0.800000000000000, 0.450000000000000, 0.450000000000000, … … 1270 1270 0.250000000000000, 0.166666666666667, 0.166666666666667, 1271 1271 0.166666666666667, 0.500000000000000}; 1272 /*}}} 2*/1273 /*p= 4, npoint=11 {{{ 2*/1272 /*}}}*/ 1273 /*p= 4, npoint=11 {{{*/ 1274 1274 1275 1275 static double wgt4[]={ … … 1298 1298 0.100596423833201, 0.399403576166799, 0.100596423833201, 1299 1299 0.399403576166799, 0.399403576166799}; 1300 /*}}} 2*/1301 /*p= 5, npoint=15 {{{ 2*/1300 /*}}}*/ 1301 /*p= 5, npoint=15 {{{*/ 1302 1302 1303 1303 static double wgt5[]={ … … 1331 1331 0.433449846426336, 0.433449846426336, 0.066550153573664, 1332 1332 0.433449846426336, 0.066550153573664, 0.066550153573664}; 1333 /*}}} 2*/1334 /*p= 6, npoint=24 {{{ 2*/1333 /*}}}*/ 1334 /*p= 6, npoint=24 {{{*/ 1335 1335 1336 1336 static double wgt6[]={ … … 1383 1383 0.603005664791649, 0.269672331458316, 0.063661001875018, 1384 1384 0.063661001875018, 0.063661001875018, 0.063661001875018}; 1385 /*}}} 2*/1385 /*}}}*/ 1386 1386 1387 1387 static double* wgtp[MAX_TETRA_SYM_ORD]={wgt1,wgt2,wgt3,wgt4,wgt5,wgt6}; … … 1470 1470 xfree((void **)&xgaus); 1471 1471 } 1472 }/*}}} 1*/1473 /*FUNCTION GaussLobatto{{{ 1*/1472 }/*}}}*/ 1473 /*FUNCTION GaussLobatto{{{*/ 1474 1474 void GaussLobatto( double** pxgaus, double** pxwgt, int ngaus ) { 1475 1475 /*Gauss-Lobatto quadrature points. … … 1579 1579 } 1580 1580 1581 }/*}}} 1*/1582 /*FUNCTION GaussRecur{{{ 1*/1581 }/*}}}*/ 1582 /*FUNCTION GaussRecur{{{*/ 1583 1583 void GaussRecur( double* zero, double* weight, int n, double* alpha, double* beta ) { 1584 1584 /*Gauss quadrature points from recursion coefficients. … … 1700 1700 xfree((void **)&work); 1701 1701 1702 }/*}}} 1*/1702 }/*}}}*/ 1703 1703 1704 1704 /*Element Gauss points TO BE REMOVED*/ 1705 /*FUNCTION gaussQuad{{{ 1*/1705 /*FUNCTION gaussQuad{{{*/ 1706 1706 void gaussQuad( double** pxgaus, double** pxwgt, double** pegaus, double** pewgt, int nigaus, int njgaus ) { 1707 1707 /*Gauss quadrature points for the quadrilaterial.*/ … … 1710 1710 GaussLegendreLinear(pxgaus, pxwgt, nigaus); 1711 1711 GaussLegendreLinear(pegaus, pewgt, njgaus); 1712 }/*}}} 1*/1713 /*FUNCTION gaussHexa{{{ 1*/1712 }/*}}}*/ 1713 /*FUNCTION gaussHexa{{{*/ 1714 1714 void gaussHexa( double** pxgaus, double** pxwgt, double** pegaus, double** pewgt, double** pzgaus, double** pzwgt, int nigaus, int njgaus, int nkgaus ) { 1715 1715 /*Gauss quadrature points for the hexahedron.*/ … … 1719 1719 GaussLegendreLinear(pegaus, pewgt, njgaus); 1720 1720 GaussLegendreLinear(pzgaus, pzwgt, nkgaus); 1721 }/*}}} 1*/1721 }/*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/shared/Numerics/Synchronize.sh ¶
r12155 r12365 8 8 #Get all lines of Verbosity.cpp 9 9 cat Verbosity.h | grep "bool Verbose" | awk '{print $2}' | sed -e "s/(/ /" | awk '{print $1}' | awk '{ printf "%s %s\n", NR, $0 }' >temp 10 #Build header of Verbosity.cpp {{{ 110 #Build header of Verbosity.cpp {{{ 11 11 cat <<END > Verbosity.cpp 12 12 /* … … 127 127 done 128 128 129 #Add footer of Verbosity.cpp{{{ 1129 #Add footer of Verbosity.cpp{{{ 130 130 cat <<END >> Verbosity.cpp 131 131 … … 147 147 END 148 148 #}}} 149 #Complete verbose.m {{{ 1149 #Complete verbose.m {{{ 150 150 VERBOSEPATH="$ISSM_DIR/src/m/classes/verbose.m" 151 151 cat $VERBOSEPATH | sed "/%BEGINFIELDS/,$ d" > temp_begin -
TabularUnified issm/trunk-jpl/src/c/shared/Numerics/UnitConversion.cpp ¶
r11810 r12365 3 3 */ 4 4 5 /*headers {{{ 1*/5 /*headers {{{*/ 6 6 #ifdef HAVE_CONFIG_H 7 7 #include <config.h> -
TabularUnified issm/trunk-jpl/src/c/solutions/objectivefunction.cpp ¶
r11808 r12365 3 3 */ 4 4 5 /*include files: {{{ 1*/5 /*include files: {{{*/ 6 6 #ifdef HAVE_CONFIG_H 7 7 #include <config.h> -
TabularUnified issm/trunk-jpl/src/c/toolkits/issm/SeqMat.cpp ¶
r12011 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 19 19 20 20 /*SeqMat constructors and destructor*/ 21 /*FUNCTION SeqMat::SeqMat(){{{ 1*/21 /*FUNCTION SeqMat::SeqMat(){{{*/ 22 22 SeqMat::SeqMat(){ 23 23 … … 27 27 } 28 28 /*}}}*/ 29 /*FUNCTION SeqMat::SeqMat(int M,int N){{{ 1*/29 /*FUNCTION SeqMat::SeqMat(int M,int N){{{*/ 30 30 SeqMat::SeqMat(int pM,int pN){ 31 31 … … 36 36 } 37 37 /*}}}*/ 38 /*FUNCTION SeqMat::SeqMat(int M,int N, double sparsity){{{ 1*/38 /*FUNCTION SeqMat::SeqMat(int M,int N, double sparsity){{{*/ 39 39 SeqMat::SeqMat(int pM,int pN, double sparsity){ 40 40 … … 45 45 } 46 46 /*}}}*/ 47 /*FUNCTION SeqMat(double* serial_mat,int M,int N,double sparsity){{{ 1*/47 /*FUNCTION SeqMat(double* serial_mat,int M,int N,double sparsity){{{*/ 48 48 SeqMat::SeqMat(double* serial_mat,int pM,int pN,double sparsity){ 49 49 … … 60 60 } 61 61 /*}}}*/ 62 /*FUNCTION SeqMat::SeqMat(int M,int N, int connectivity, int numberofdofspernode){{{ 1*/62 /*FUNCTION SeqMat::SeqMat(int M,int N, int connectivity, int numberofdofspernode){{{*/ 63 63 SeqMat::SeqMat(int pM,int pN, int connectivity,int numberofdofspernode){ 64 64 … … 69 69 } 70 70 /*}}}*/ 71 /*FUNCTION SeqMat::~SeqMat(){{{ 1*/71 /*FUNCTION SeqMat::~SeqMat(){{{*/ 72 72 SeqMat::~SeqMat(){ 73 73 … … 79 79 80 80 /*SeqMat specific routines: */ 81 /*FUNCTION SeqMat::Echo{{{ 1*/81 /*FUNCTION SeqMat::Echo{{{*/ 82 82 void SeqMat::Echo(void){ 83 83 … … 92 92 } 93 93 /*}}}*/ 94 /*FUNCTION SeqMat::Assemble{{{ 1*/94 /*FUNCTION SeqMat::Assemble{{{*/ 95 95 void SeqMat::Assemble(void){ 96 96 … … 99 99 } 100 100 /*}}}*/ 101 /*FUNCTION SeqMat::Norm{{{ 1*/101 /*FUNCTION SeqMat::Norm{{{*/ 102 102 double SeqMat::Norm(NormMode mode){ 103 103 … … 124 124 } 125 125 /*}}}*/ 126 /*FUNCTION SeqMat::GetSize{{{ 1*/126 /*FUNCTION SeqMat::GetSize{{{*/ 127 127 void SeqMat::GetSize(int* pM,int* pN){ 128 128 … … 132 132 } 133 133 /*}}}*/ 134 /*FUNCTION SeqMat::GetLocalSize{{{ 1*/134 /*FUNCTION SeqMat::GetLocalSize{{{*/ 135 135 void SeqMat::GetLocalSize(int* pM,int* pN){ 136 136 … … 140 140 } 141 141 /*}}}*/ 142 /*FUNCTION SeqMat::MatMult{{{ 1*/142 /*FUNCTION SeqMat::MatMult{{{*/ 143 143 void SeqMat::MatMult(SeqVec* X,SeqVec* AX){ 144 144 … … 163 163 } 164 164 /*}}}*/ 165 /*FUNCTION SeqMat::Duplicate{{{ 1*/165 /*FUNCTION SeqMat::Duplicate{{{*/ 166 166 SeqMat* SeqMat::Duplicate(void){ 167 167 … … 172 172 } 173 173 /*}}}*/ 174 /*FUNCTION SeqMat::ToSerial{{{ 1*/174 /*FUNCTION SeqMat::ToSerial{{{*/ 175 175 double* SeqMat::ToSerial(void){ 176 176 … … 185 185 } 186 186 /*}}}*/ 187 /*FUNCTION SeqMat::SetValues{{{ 1*/187 /*FUNCTION SeqMat::SetValues{{{*/ 188 188 void SeqMat::SetValues(int m,int* idxm,int n,int* idxn,double* values,InsMode mode){ 189 189 … … 203 203 } 204 204 /*}}}*/ 205 /*FUNCTION SeqMat::Convert{{{ 1*/205 /*FUNCTION SeqMat::Convert{{{*/ 206 206 void SeqMat::Convert(MatrixType type){ 207 207 -
TabularUnified issm/trunk-jpl/src/c/toolkits/issm/SeqMat.h ¶
r12018 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #ifdef HAVE_CONFIG_H 11 11 #include <config.h> … … 26 26 double* matrix; 27 27 28 /*SeqMat constructors, destructors {{{ 1*/28 /*SeqMat constructors, destructors {{{*/ 29 29 SeqMat(); 30 30 SeqMat(int M,int N); … … 34 34 ~SeqMat(); 35 35 /*}}}*/ 36 /*SeqMat specific routines {{{ 1*/36 /*SeqMat specific routines {{{*/ 37 37 void Echo(void); 38 38 void Assemble(void); -
TabularUnified issm/trunk-jpl/src/c/toolkits/issm/SeqVec.cpp ¶
r12011 r12365 4 4 5 5 /*Headers:*/ 6 /*{{{ 1*/6 /*{{{*/ 7 7 #ifdef HAVE_CONFIG_H 8 8 #include <config.h> … … 19 19 20 20 /*SeqVec constructors and destructor*/ 21 /*FUNCTION SeqVec::SeqVec(){{{ 1*/21 /*FUNCTION SeqVec::SeqVec(){{{*/ 22 22 SeqVec::SeqVec(){ 23 23 … … 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION SeqVec::SeqVec(int M,bool fromlocalsize){{{ 1*/28 /*FUNCTION SeqVec::SeqVec(int M,bool fromlocalsize){{{*/ 29 29 SeqVec::SeqVec(int pM,bool fromlocalsize){ 30 30 … … 34 34 } 35 35 /*}}}*/ 36 /*FUNCTION SeqVec::SeqVec(double* serial_vec,int M){{{ 1*/36 /*FUNCTION SeqVec::SeqVec(double* serial_vec,int M){{{*/ 37 37 SeqVec::SeqVec(double* buffer,int pM){ 38 38 … … 47 47 } 48 48 /*}}}*/ 49 /*FUNCTION SeqVec::~SeqVec(){{{ 1*/49 /*FUNCTION SeqVec::~SeqVec(){{{*/ 50 50 SeqVec::~SeqVec(){ 51 51 xfree((void**)&this->vector); … … 55 55 56 56 /*SeqVec specific routines: */ 57 /*FUNCTION SeqVec::Echo{{{ 1*/57 /*FUNCTION SeqVec::Echo{{{*/ 58 58 void SeqVec::Echo(void){ 59 59 … … 66 66 /*}}}*/ 67 67 68 /*FUNCTION SeqVec::Assemble{{{ 1*/68 /*FUNCTION SeqVec::Assemble{{{*/ 69 69 void SeqVec::Assemble(void){ 70 70 … … 73 73 } 74 74 /*}}}*/ 75 /*FUNCTION SeqVec::SetValues{{{ 1*/75 /*FUNCTION SeqVec::SetValues{{{*/ 76 76 void SeqVec::SetValues(int ssize, int* list, double* values, InsMode mode){ 77 77 … … 91 91 } 92 92 /*}}}*/ 93 /*FUNCTION SeqVec::SetValue{{{ 1*/93 /*FUNCTION SeqVec::SetValue{{{*/ 94 94 void SeqVec::SetValue(int dof, double value, InsMode mode){ 95 95 … … 107 107 } 108 108 /*}}}*/ 109 /*FUNCTION SeqVec::GetValue{{{ 1*/109 /*FUNCTION SeqVec::GetValue{{{*/ 110 110 void SeqVec::GetValue(double* pvalue,int dof){ 111 111 … … 115 115 /*}}}*/ 116 116 117 /*FUNCTION SeqVec::GetSize{{{ 1*/117 /*FUNCTION SeqVec::GetSize{{{*/ 118 118 void SeqVec::GetSize(int* pM){ 119 119 … … 122 122 } 123 123 /*}}}*/ 124 /*FUNCTION SeqVec::GetLocalSize{{{ 1*/124 /*FUNCTION SeqVec::GetLocalSize{{{*/ 125 125 void SeqVec::GetLocalSize(int* pM){ 126 126 … … 129 129 } 130 130 /*}}}*/ 131 /*FUNCTION SeqVec::Duplicate{{{ 1*/131 /*FUNCTION SeqVec::Duplicate{{{*/ 132 132 SeqVec* SeqVec::Duplicate(void){ 133 133 … … 136 136 } 137 137 /*}}}*/ 138 /*FUNCTION SeqVec::Set{{{ 1*/138 /*FUNCTION SeqVec::Set{{{*/ 139 139 void SeqVec::Set(double value){ 140 140 … … 144 144 } 145 145 /*}}}*/ 146 /*FUNCTION SeqVec::AXPY{{{ 1*/146 /*FUNCTION SeqVec::AXPY{{{*/ 147 147 void SeqVec::AXPY(SeqVec* X, double a){ 148 148 … … 154 154 } 155 155 /*}}}*/ 156 /*FUNCTION SeqVec::AYPX{{{ 1*/156 /*FUNCTION SeqVec::AYPX{{{*/ 157 157 void SeqVec::AYPX(SeqVec* X, double a){ 158 158 … … 164 164 } 165 165 /*}}}*/ 166 /*FUNCTION SeqVec::ToMPISerial{{{ 1*/166 /*FUNCTION SeqVec::ToMPISerial{{{*/ 167 167 double* SeqVec::ToMPISerial(void){ 168 168 … … 177 177 } 178 178 /*}}}*/ 179 /*FUNCTION SeqVec::Copy{{{ 1*/179 /*FUNCTION SeqVec::Copy{{{*/ 180 180 void SeqVec::Copy(SeqVec* to){ 181 181 … … 187 187 } 188 188 /*}}}*/ 189 /*FUNCTION SeqVec::Norm{{{ 1*/189 /*FUNCTION SeqVec::Norm{{{*/ 190 190 double SeqVec::Norm(NormMode mode){ 191 191 … … 209 209 } 210 210 /*}}}*/ 211 /*FUNCTION SeqVec::Scale{{{ 1*/211 /*FUNCTION SeqVec::Scale{{{*/ 212 212 void SeqVec::Scale(double scale_factor){ 213 213 … … 217 217 } 218 218 /*}}}*/ 219 /*FUNCTION SeqVec::Dot{{{ 1*/219 /*FUNCTION SeqVec::Dot{{{*/ 220 220 double SeqVec::Dot(SeqVec* input){ 221 221 … … 228 228 } 229 229 /*}}}*/ 230 /*FUNCTION SeqVec::PointwiseDivide{{{ 1*/230 /*FUNCTION SeqVec::PointwiseDivide{{{*/ 231 231 void SeqVec::PointwiseDivide(SeqVec* x,SeqVec* y){ 232 232 -
TabularUnified issm/trunk-jpl/src/c/toolkits/issm/SeqVec.h ¶
r12018 r12365 7 7 8 8 /*Headers:*/ 9 /*{{{ 1*/9 /*{{{*/ 10 10 #ifdef HAVE_CONFIG_H 11 11 #include <config.h> … … 25 25 int M; 26 26 27 /*SeqVec constructors, destructors {{{ 1*/27 /*SeqVec constructors, destructors {{{*/ 28 28 SeqVec(); 29 29 SeqVec(int M,bool fromlocalsize=false); … … 31 31 ~SeqVec(); 32 32 /*}}}*/ 33 /*SeqVec specific routines {{{ 1*/33 /*SeqVec specific routines {{{*/ 34 34 void Echo(void); 35 35 void Assemble(void); -
TabularUnified issm/trunk-jpl/src/c/toolkits/petsc/patches/NewMat.cpp ¶
r12106 r12365 20 20 #include "../../mpi/patches/mpipatches.h" 21 21 22 /*NewMat(int M,int N){{{ 1*/22 /*NewMat(int M,int N){{{*/ 23 23 Mat NewMat(int M,int N){ 24 24 … … 48 48 } 49 49 /*}}}*/ 50 /*NewMat(int M,int N,double sparsity){{{ 1*/50 /*NewMat(int M,int N,double sparsity){{{*/ 51 51 Mat NewMat(int M,int N,double sparsity){ 52 52 … … 81 81 } 82 82 /*}}}*/ 83 /*NewMat(int M,int N,int connectivity,int numberofdofspernode){{{ 1*/83 /*NewMat(int M,int N,int connectivity,int numberofdofspernode){{{*/ 84 84 Mat NewMat(int M,int N,int connectivity,int numberofdofspernode){ 85 85 -
TabularUnified issm/trunk-jpl/src/m/classes/bamggeom.m ¶
r8587 r12365 6 6 classdef bamggeom 7 7 properties (SetAccess=public) 8 % {{{ 18 % {{{ 9 9 Vertices=[]; 10 10 Edges=[]; … … 18 18 end 19 19 methods 20 function bg = bamggeom(varargin)% {{{ 120 function bg = bamggeom(varargin)% {{{ 21 21 %BAMGGEOM - constructor for bamggeom object 22 22 % … … 44 44 end 45 45 end%}}} 46 function display(bg)% {{{ 146 function display(bg)% {{{ 47 47 disp(sprintf('\n%s = \n',inputname(1))); 48 48 disp(struct(bg)) -
TabularUnified issm/trunk-jpl/src/m/classes/bamgmesh.m ¶
r8587 r12365 6 6 classdef bamgmesh 7 7 properties (SetAccess=public) 8 % {{{ 18 % {{{ 9 9 Vertices=[]; 10 10 Edges=[]; … … 26 26 end 27 27 methods 28 function bg = bamgmesh(varargin)% {{{ 128 function bg = bamgmesh(varargin)% {{{ 29 29 30 30 switch nargin … … 48 48 end 49 49 end%}}} 50 function display(bm)% {{{ 150 function display(bm)% {{{ 51 51 disp(sprintf('\n%s = \n',inputname(1))); 52 52 disp(struct(bm)) -
TabularUnified issm/trunk-jpl/src/m/classes/model/model.m ¶
r12351 r12365 6 6 classdef model 7 7 properties (SetAccess=public) %Model fields 8 % {{{ 18 % {{{ 9 9 %Careful here: no other class should be used as default value this is a bug of matlab 10 10 mesh = 0; … … 75 75 end 76 76 methods 77 function md = model(varargin) % {{{ 177 function md = model(varargin) % {{{ 78 78 79 79 switch nargin … … 357 357 358 358 end% }}} 359 function md = setdefaultparameters(md) % {{{ 1359 function md = setdefaultparameters(md) % {{{ 360 360 361 361 %initialize subclasses -
TabularUnified issm/trunk-jpl/src/m/classes/model/planet.m ¶
r9548 r12365 6 6 classdef planet < model 7 7 properties (SetAccess=public) %Planet fields 8 % {{{ 18 % {{{ 9 9 %Planet specific fields 10 10 r=NaN; … … 14 14 end 15 15 methods 16 function md=planetmesh(md,varargin) % {{{ 116 function md=planetmesh(md,varargin) % {{{ 17 17 %PLANETMESH: build 2d shell mesh 18 18 % -
TabularUnified issm/trunk-jpl/src/m/classes/organizer.m ¶
r9423 r12365 16 16 classdef organizer 17 17 properties (SetAccess=private) 18 % {{{ 118 % {{{ 19 19 currentstep =0; 20 20 end … … 28 28 end 29 29 methods 30 function org=organizer(varargin) % {{{ 130 function org=organizer(varargin) % {{{ 31 31 32 32 %process options … … 57 57 end 58 58 %}}} 59 function disp(org) % {{{ 159 function disp(org) % {{{ 60 60 disp(sprintf(' Repository: ''%s''',org.repository)); 61 61 disp(sprintf(' Prefix: ''%s''',org.prefix)); … … 69 69 end 70 70 %}}} 71 function md=loadmodel(org,string),% {{{ 171 function md=loadmodel(org,string),% {{{ 72 72 73 73 %Get model path … … 95 95 end 96 96 end%}}} 97 function bool=perform(org,string) % {{{ 197 function bool=perform(org,string) % {{{ 98 98 99 99 bool=false; … … 129 129 130 130 end%}}} 131 function savemodel(org,md) % {{{ 1131 function savemodel(org,md) % {{{ 132 132 133 133 %check -
TabularUnified issm/trunk-jpl/src/m/classes/plotoptions.m ¶
r11892 r12365 6 6 classdef plotoptions 7 7 properties (SetAccess=public) 8 % {{{ 18 % {{{ 9 9 numberofplots = 0; 10 10 figurenumber = 1; … … 13 13 end 14 14 methods 15 function opt=plotoptions(varargin) % {{{ 115 function opt=plotoptions(varargin) % {{{ 16 16 opt=buildlist(opt,varargin{:}); 17 17 end 18 18 %}}} 19 function disp(opt) % {{{ 119 function disp(opt) % {{{ 20 20 disp(sprintf('\n%s = \n',inputname(1))); 21 21 disp(sprintf(' numberofplots: %i',opt.numberofplots)); … … 41 41 end 42 42 %}}} 43 function opt=buildlist(opt,varargin) % {{{ 143 function opt=buildlist(opt,varargin) % {{{ 44 44 45 45 %check length of input -
TabularUnified issm/trunk-jpl/src/m/classes/solver.m ¶
r12048 r12365 18 18 end 19 19 end % }}} 20 function obj = addoptions(obj,analysis,varargin) % {{{ 120 function obj = addoptions(obj,analysis,varargin) % {{{ 21 21 % Usage example: 22 22 % md.solver=addoptions(md.solver,DiagnosticHorizAnalysisEnum,stokesoptions()); -
TabularUnified issm/trunk-jpl/src/m/classes/verbose.m ¶
r11867 r12365 21 21 classdef verbose 22 22 properties (SetAccess=public) 23 % {{{ 123 % {{{ 24 24 %BEGINFIELDS 25 25 mprocessor = false; … … 35 35 %}}} 36 36 methods 37 function verbose=verbose(varargin) % {{{ 137 function verbose=verbose(varargin) % {{{ 38 38 39 39 switch(nargin), … … 70 70 end 71 71 %}}} 72 function binary=VerboseToBinary(verbose) % {{{ 172 function binary=VerboseToBinary(verbose) % {{{ 73 73 74 74 %BEGINVERB2BIN … … 85 85 end 86 86 %}}} 87 function verbose=BinaryToVerbose(verbose,binary) % {{{ 187 function verbose=BinaryToVerbose(verbose,binary) % {{{ 88 88 89 89 %BEGINBIN2VERB … … 102 102 103 103 end % }}} 104 function disp(verbose) % {{{ 1104 function disp(verbose) % {{{ 105 105 106 106 %BEGINDISP -
TabularUnified issm/trunk-jpl/src/m/model/WriteData.m ¶
r10969 r12365 233 233 enum=eval([string 'Enum();']); 234 234 end % }}} 235 function code=FormatToCode(format) % {{{ 1235 function code=FormatToCode(format) % {{{ 236 236 %This routine takes the format string, and hardcodes it into an integer, which 237 237 %is passed along the record, in order to identify the nature of the dataset being -
TabularUnified issm/trunk-jpl/src/m/model/mesh/bamg.m ¶
r11652 r12365 58 58 bamg_mesh=bamgmesh; 59 59 60 % Bamg Geometry parameters {{{ 160 % Bamg Geometry parameters {{{ 61 61 if exist(options,'domain'), 62 62 … … 259 259 end 260 260 %}}} 261 % Bamg Mesh parameters {{{ 1261 % Bamg Mesh parameters {{{ 262 262 if (~exist(options,'domain') & md.mesh.numberofvertices~=0 & md.mesh.dimension==2), 263 263 … … 274 274 end 275 275 %}}} 276 % Bamg Options {{{ 1276 % Bamg Options {{{ 277 277 bamg_options.Crack=getfieldvalue(options,'Crack',0); 278 278 bamg_options.anisomax=getfieldvalue(options,'anisomax',10^30); -
TabularUnified issm/trunk-jpl/src/m/model/setmask.m ¶
r11234 r12365 25 25 elements=md.mesh.elements; 26 26 27 %Assign elementonfloatingice, elementongroundedice, vertexongroundedice and vertexonfloatingice. Only change at your own peril! This is synchronized heavily with the GroundingLineMigration module. {{{ 127 %Assign elementonfloatingice, elementongroundedice, vertexongroundedice and vertexonfloatingice. Only change at your own peril! This is synchronized heavily with the GroundingLineMigration module. {{{ 28 28 elementonfloatingice=FlagElements(md,floatingicename); 29 29 elementongroundedice=FlagElements(md,groundedicename); -
TabularUnified issm/trunk-jpl/src/m/model/setmask.py ¶
r12112 r12365 22 22 elements = md.mesh.elements 23 23 24 #Assign elementonfloatingice, elementongroundedice, vertexongroundedice and vertexonfloatingice. Only change at your own peril! This is synchronized heavily with the GroundingLineMigration module. {{{ 124 #Assign elementonfloatingice, elementongroundedice, vertexongroundedice and vertexonfloatingice. Only change at your own peril! This is synchronized heavily with the GroundingLineMigration module. {{{ 25 25 elementonfloatingice = fe.FlagElements(md, floatingicename) 26 26 elementongroundedice = fe.FlagElements(md, groundedicename) -
TabularUnified issm/trunk-jpl/src/m/qmu/preqmu.m ¶
r9668 r12365 44 44 responses=expandresponses(md,responses); 45 45 46 %go through variables and responses, and check they don't have more than md.qmu.numberofpartitions values. Also determine numvariables and numresponses{{{ 146 %go through variables and responses, and check they don't have more than md.qmu.numberofpartitions values. Also determine numvariables and numresponses{{{ 47 47 numvariables=0; 48 48 variable_fieldnames=fieldnames(variables); … … 76 76 system(['rm -rf ' md.miscellaneous.name '.m']); 77 77 78 %build a list of variables and responses descriptors. the list is not expanded. {{{ 178 %build a list of variables and responses descriptors. the list is not expanded. {{{ 79 79 variabledescriptors={}; 80 80 variable_fieldnames=fieldnames(md.qmu.variables(options.ivar));
Note:
See TracChangeset
for help on using the changeset viewer.