Changeset 18063
- Timestamp:
- 05/26/14 21:05:52 (11 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 51 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/classes/Nodes.cpp ¶
r15861 r18063 19 19 20 20 /*Object constructors and destructor*/ 21 /*FUNCTION Nodes::Nodes(){{{*/ 22 Nodes::Nodes(){ 21 Nodes::Nodes(){/*{{{*/ 23 22 enum_type=NodesEnum; 24 23 return; 25 24 } 26 25 /*}}}*/ 27 /*FUNCTION Nodes::~Nodes(){{{*/ 28 Nodes::~Nodes(){ 26 Nodes::~Nodes(){/*{{{*/ 29 27 return; 30 28 } … … 32 30 33 31 /*Numerics*/ 34 /*FUNCTION Nodes::DistributeDofs{{{*/ 35 void Nodes::DistributeDofs(int analysis_type,int setenum){ 32 void Nodes::DistributeDofs(int analysis_type,int setenum){/*{{{*/ 36 33 37 34 int i; … … 122 119 } 123 120 /*}}}*/ 124 /*FUNCTION Nodes::FlagClones{{{*/ 125 void Nodes::FlagClones(int analysis_type){ 121 void Nodes::FlagClones(int analysis_type){/*{{{*/ 126 122 127 123 int i; … … 168 164 } 169 165 /*}}}*/ 170 /*FUNCTION Nodes::MaxNumDofs{{{*/ 171 int Nodes::MaxNumDofs(int analysis_type,int setenum){ 166 int Nodes::MaxNumDofs(int analysis_type,int setenum){/*{{{*/ 172 167 173 168 int max=0; … … 194 189 } 195 190 /*}}}*/ 196 /*FUNCTION Nodes::MaximymId{{{*/ 197 int Nodes::MaximumId(){ 191 int Nodes::MaximumId(){/*{{{*/ 198 192 199 193 int max=-1; … … 225 219 } 226 220 /*}}}*/ 227 /*FUNCTION Nodes::NumberOfDofs{{{*/ 228 int Nodes::NumberOfDofs(int analysis_type,int setenum){ 221 int Nodes::NumberOfDofs(int analysis_type,int setenum){/*{{{*/ 229 222 230 223 int allnumdofs; … … 238 231 } 239 232 /*}}}*/ 240 /*FUNCTION Nodes::NumberOfDofsLocal{{{*/ 241 int Nodes::NumberOfDofsLocal(int analysis_type,int setenum){ 233 int Nodes::NumberOfDofsLocal(int analysis_type,int setenum){/*{{{*/ 242 234 243 235 int numdofs=0; … … 261 253 } 262 254 /*}}}*/ 263 /*FUNCTION Nodes::NumberOfNodes(){{{*/ 264 int Nodes::NumberOfNodes(void){ 255 int Nodes::NumberOfNodes(void){/*{{{*/ 265 256 266 257 /*Careful! only use once all clones have been setup for all nodes!: */ … … 283 274 } 284 275 /*}}}*/ 285 /*FUNCTION Nodes::NumberOfNodes(analysis){{{*/ 286 int Nodes::NumberOfNodes(int analysis_type){ 276 int Nodes::NumberOfNodes(int analysis_type){/*{{{*/ 287 277 288 278 int i; … … 315 305 } 316 306 /*}}}*/ 317 /*FUNCTION Nodes::Ranks{{{*/ 318 void Nodes::Ranks(int* ranks,int analysis_type){ 307 void Nodes::Ranks(int* ranks,int analysis_type){/*{{{*/ 319 308 320 309 int my_rank; … … 338 327 } 339 328 /*}}}*/ 340 /*FUNCTION Nodes::RequiresDofReindexing{{{*/ 341 bool Nodes::RequiresDofReindexing(int analysis_type){ 329 bool Nodes::RequiresDofReindexing(int analysis_type){/*{{{*/ 342 330 343 331 int flag = 0; -
TabularUnified issm/trunk-jpl/src/c/classes/Profiler.cpp ¶
r15838 r18063 17 17 18 18 /*Profiler constructors and destructors:*/ 19 /*FUNCTION Profiler::Profiler() default constructor {{{*/ 20 Profiler::Profiler(){ 19 Profiler::Profiler(){/*{{{*/ 21 20 this->time=new Parameters(); 22 21 this->flops=new Parameters(); … … 24 23 } 25 24 /*}}}*/ 26 /*FUNCTION Profiler::~Profiler(){{{*/ 27 Profiler::~Profiler(){ 25 Profiler::~Profiler(){/*{{{*/ 28 26 delete time; 29 27 delete flops; … … 33 31 34 32 /*Object virtual functions definitions:*/ 35 /*FUNCTION Profiler::Echo{{{*/ 36 void Profiler::Echo(void){ 33 void Profiler::Echo(void){/*{{{*/ 37 34 38 35 _printf_("Profiler:\n"); … … 42 39 } 43 40 /*}}}*/ 44 /*FUNCTION Profiler::DeepEcho{{{*/ 45 void Profiler::DeepEcho(void){ 41 void Profiler::DeepEcho(void){/*{{{*/ 46 42 47 43 _printf_("Profiler:\n"); … … 51 47 } 52 48 /*}}}*/ 53 /*FUNCTION Profiler::Id{{{*/ 54 int Profiler::Id(void){ return -1; } 49 int Profiler::Id(void){ return -1; }/*{{{*/ 55 50 /*}}}*/ 56 /*FUNCTION Profiler::ObjectEnum{{{*/ 57 int Profiler::ObjectEnum(void){ 51 int Profiler::ObjectEnum(void){/*{{{*/ 58 52 59 53 return ProfilerEnum; … … 63 57 64 58 /*Profiler routines:*/ 65 /*FUNCTION Profiler::Tag {{{*/ 66 void Profiler::Tag(int tagenum,bool dontmpisync){ 59 void Profiler::Tag(int tagenum,bool dontmpisync){/*{{{*/ 67 60 68 61 IssmDouble t; … … 98 91 } 99 92 /*}}}*/ 100 /*FUNCTION Profiler::DeltaTime {{{*/ 101 IssmDouble Profiler::DeltaTime(int inittag, int finaltag){ 93 IssmDouble Profiler::DeltaTime(int inittag, int finaltag){/*{{{*/ 102 94 103 95 IssmDouble init, final; … … 112 104 } 113 105 /*}}}*/ 114 /*FUNCTION Profiler::DeltaFlops {{{*/ 115 IssmDouble Profiler::DeltaFlops(int inittag, int finaltag){ 106 IssmDouble Profiler::DeltaFlops(int inittag, int finaltag){/*{{{*/ 116 107 117 108 IssmDouble init, final; … … 122 113 } 123 114 /*}}}*/ 124 /*FUNCTION Profiler::DeltaTimeModHour {{{*/ 125 int Profiler::DeltaTimeModHour(int inittag, int finishtag){ 115 int Profiler::DeltaTimeModHour(int inittag, int finishtag){/*{{{*/ 126 116 127 117 IssmDouble init, finish; … … 137 127 } 138 128 /*}}}*/ 139 /*FUNCTION Profiler::DeltaTimeModMin {{{*/ 140 int Profiler::DeltaTimeModMin(int inittag, int finishtag){ 129 int Profiler::DeltaTimeModMin(int inittag, int finishtag){/*{{{*/ 141 130 142 131 IssmDouble init, finish; … … 151 140 } 152 141 /*}}}*/ 153 /*FUNCTION Profiler::DeltaTimeModSec {{{*/ 154 int Profiler::DeltaTimeModSec(int inittag, int finishtag){ 142 int Profiler::DeltaTimeModSec(int inittag, int finishtag){/*{{{*/ 155 143 156 144 IssmDouble init, finish; … … 165 153 } 166 154 /*}}}*/ 167 /*FUNCTION Profiler::Memory {{{*/ 168 IssmDouble Profiler::Memory(int tag){ 155 IssmDouble Profiler::Memory(int tag){/*{{{*/ 169 156 170 157 IssmDouble m; -
TabularUnified issm/trunk-jpl/src/c/classes/Segment.h ¶
r15104 r18063 23 23 24 24 /*Segment constructors, destructors :*/ 25 /*FUNCTION Segment() default constructor {{{*/ 26 Segment(){ 25 Segment(){/*{{{*/ 27 26 this->eid = UNDEF; 28 27 this->x1 = UNDEF; … … 32 31 } 33 32 /*}}}*/ 34 /*FUNCTION Segment(int eid, doubletype x1,doubletype y1,doubletype x2, doubletype y2){{{*/ 35 Segment(int segment_eid, doubletype segment_x1,doubletype segment_y1,doubletype segment_x2, doubletype segment_y2){ 33 Segment(int segment_eid, doubletype segment_x1,doubletype segment_y1,doubletype segment_x2, doubletype segment_y2){/*{{{*/ 36 34 37 35 this->eid = segment_eid; … … 43 41 } 44 42 /*}}}*/ 45 /*FUNCTION ~Segment(){{{*/ 46 ~Segment(){ 43 ~Segment(){/*{{{*/ 47 44 } 48 45 /*}}}*/ 49 46 50 47 /*Object virtual functions definitions:*/ 51 /*FUNCTION Echo{{{*/ 52 void Echo(void){ 48 void Echo(void){/*{{{*/ 53 49 54 50 _printf_("Segment:\n"); … … 59 55 } 60 56 /*}}}*/ 61 /*FUNCTION DeepEcho{{{*/ 62 void DeepEcho(void){ 57 void DeepEcho(void){/*{{{*/ 63 58 this->Echo(); 64 59 } 65 60 /*}}}*/ 66 /*FUNCTION Id{{{*/ 67 int Id(void){ return eid; } 61 int Id(void){ return eid; }/*{{{*/ 68 62 /*}}}*/ 69 /*FUNCTION ObjectEnum{{{*/ 70 int ObjectEnum(void){ 63 int ObjectEnum(void){/*{{{*/ 71 64 72 65 return SegmentEnum; … … 74 67 } 75 68 /*}}}*/ 76 /*FUNCTION copy {{{*/ 77 Object* copy() { 69 Object* copy() {/*{{{*/ 78 70 return new Segment(this->eid,this->x1,this->y1,this->x2,this->y2); 79 71 } -
TabularUnified issm/trunk-jpl/src/c/classes/Vertex.cpp ¶
r17700 r18063 16 16 17 17 /*Vertex constructors and destructor:*/ 18 /*FUNCTION Vertex::Vertex() {{{*/ 19 Vertex::Vertex(){ 20 return; 21 } 22 /*}}}*/ 23 /*FUNCTION Vertex::Vertex(int vertex_id, int vertex_sid,int i, IoModel* iomodel) {{{*/ 24 Vertex::Vertex(int vertex_id, int vertex_sid,int i, IoModel* iomodel){ 18 Vertex::Vertex(){/*{{{*/ 19 return; 20 } 21 /*}}}*/ 22 Vertex::Vertex(int vertex_id, int vertex_sid,int i, IoModel* iomodel){/*{{{*/ 25 23 26 24 this->id = vertex_id; … … 49 47 } 50 48 /*}}}*/ 51 /*FUNCTION Vertex::~Vertex() {{{*/ 52 Vertex::~Vertex(){ 49 Vertex::~Vertex(){/*{{{*/ 53 50 return; 54 51 } … … 56 53 57 54 /*Object virtual functions definitions:*/ 58 /*FUNCTION Vertex::Echo{{{*/ 59 void Vertex::Echo(void){ 55 void Vertex::Echo(void){/*{{{*/ 60 56 61 57 _printf_("Vertex:\n"); … … 73 69 } 74 70 /*}}}*/ 75 /*FUNCTION Vertex::DeepEcho{{{*/ 76 void Vertex::DeepEcho(void){ 71 void Vertex::DeepEcho(void){/*{{{*/ 77 72 this->Echo(); 78 73 } 79 74 /*}}}*/ 80 /*FUNCTION Vertex::Id{{{*/ 81 int Vertex::Id(void){ return id; } 82 /*}}}*/ 83 /*FUNCTION Vertex::ObjectEnum{{{*/ 84 int Vertex::ObjectEnum(void){ 75 int Vertex::Id(void){ return id; }/*{{{*/ 76 /*}}}*/ 77 int Vertex::ObjectEnum(void){/*{{{*/ 85 78 86 79 return VertexEnum; … … 88 81 } 89 82 /*}}}*/ 90 /*FUNCTION Vertex::copy {{{*/ 91 Object* Vertex::copy() { 83 Object* Vertex::copy() {/*{{{*/ 92 84 93 85 return new Vertex(*this); … … 97 89 98 90 /*Vertex management: */ 99 /*FUNCTION Vertex::Connectivity{{{*/ 100 int Vertex::Connectivity(void){return connectivity;} 101 /*}}}*/ 102 /*FUNCTION Vertex::GetX {{{*/ 103 IssmDouble Vertex::GetX(){ 91 int Vertex::Connectivity(void){return connectivity;}/*{{{*/ 92 /*}}}*/ 93 IssmDouble Vertex::GetX(){/*{{{*/ 104 94 return this->x; 105 95 } 106 96 /*}}}*/ 107 /*FUNCTION Vertex::GetY {{{*/ 108 IssmDouble Vertex::GetY(){ 97 IssmDouble Vertex::GetY(){/*{{{*/ 109 98 return this->y; 110 99 } 111 100 /*}}}*/ 112 /*FUNCTION Vertex::GetZ {{{*/ 113 IssmDouble Vertex::GetZ(){ 101 IssmDouble Vertex::GetZ(){/*{{{*/ 114 102 return this->z; 115 103 } 116 104 /*}}}*/ 117 /*FUNCTION Vertex::Sid{{{*/ 118 int Vertex::Sid(void){ return sid; } 119 /*}}}*/ 120 /*FUNCTION Vertex::Pid{{{*/ 121 int Vertex::Pid(void){ return pid; } 122 /*}}}*/ 123 /*FUNCTION Vertex::UpdatePosition {{{*/ 124 void Vertex::UpdatePosition(Vector<IssmDouble>* vx,Vector<IssmDouble>* vy,Vector<IssmDouble>* vz,Parameters* parameters,IssmDouble* surface,IssmDouble* bed){ 105 int Vertex::Sid(void){ return sid; }/*{{{*/ 106 /*}}}*/ 107 int Vertex::Pid(void){ return pid; }/*{{{*/ 108 /*}}}*/ 109 void Vertex::UpdatePosition(Vector<IssmDouble>* vx,Vector<IssmDouble>* vy,Vector<IssmDouble>* vz,Parameters* parameters,IssmDouble* surface,IssmDouble* bed){/*{{{*/ 125 110 126 111 IssmDouble oldy,newy,vely; … … 155 140 } 156 141 /*}}}*/ 157 /*FUNCTION Vertex::DistributePids{{{*/ 158 void Vertex::DistributePids(int* ppidcount){ 142 void Vertex::DistributePids(int* ppidcount){/*{{{*/ 159 143 160 144 /*retrieve current pid*/ … … 172 156 } 173 157 /*}}}*/ 174 /*FUNCTION Vertex::OffsetPids{{{*/ 175 void Vertex::OffsetPids(int pidcount){ 158 void Vertex::OffsetPids(int pidcount){/*{{{*/ 176 159 177 160 /*This vertex is a clone, don't offset the pids*/ … … 182 165 } 183 166 /*}}}*/ 184 /*FUNCTION Vertex::ShowTruePids{{{*/ 185 void Vertex::ShowTruePids(int* truepids){ 167 void Vertex::ShowTruePids(int* truepids){/*{{{*/ 186 168 187 169 /*Are we a clone? : */ … … 192 174 } 193 175 /*}}}*/ 194 /*FUNCTION Vertex::UpdateClonePids{{{*/ 195 void Vertex::UpdateClonePids(int* alltruepids){ 176 void Vertex::UpdateClonePids(int* alltruepids){/*{{{*/ 196 177 197 178 /*If we are not a clone, don't update, we already have pids: */ … … 203 184 } 204 185 /*}}}*/ 205 /*FUNCTION Vertex::SetClone {{{*/ 206 void Vertex::SetClone(int* minranks){ 186 void Vertex::SetClone(int* minranks){/*{{{*/ 207 187 208 188 int my_rank; … … 222 202 } 223 203 /*}}}*/ 224 /*FUNCTION Vertex::ToXYZ {{{*/ 225 void Vertex::ToXYZ(Matrix<IssmDouble>* matrix){ 204 void Vertex::ToXYZ(Matrix<IssmDouble>* matrix){/*{{{*/ 226 205 227 206 IssmDouble xyz[3]; … … 240 219 } 241 220 /*}}}*/ 242 /*FUNCTION Vertex::VertexCoordinates {{{*/ 243 void Vertex::VertexCoordinates(Vector<IssmDouble>* vx,Vector<IssmDouble>* vy,Vector<IssmDouble>* vz){ 221 void Vertex::VertexCoordinates(Vector<IssmDouble>* vx,Vector<IssmDouble>* vy,Vector<IssmDouble>* vz){/*{{{*/ 244 222 245 223 if (this->clone==true) return; -
TabularUnified issm/trunk-jpl/src/c/classes/Vertices.cpp ¶
r15838 r18063 24 24 25 25 /*Object constructors and destructor*/ 26 /*FUNCTION Vertices::Vertices(){{{*/ 27 Vertices::Vertices(){ 26 Vertices::Vertices(){/*{{{*/ 28 27 enum_type=VerticesEnum; 29 28 return; 30 29 } 31 30 /*}}}*/ 32 /*FUNCTION Vertices::~Vertices(){{{*/ 33 Vertices::~Vertices(){ 31 Vertices::~Vertices(){/*{{{*/ 34 32 return; 35 33 } … … 37 35 38 36 /*Numerics management*/ 39 /*FUNCTION Vertices::DistributePids{{{*/ 40 void Vertices::DistributePids(int numberofobjects){ 37 void Vertices::DistributePids(int numberofobjects){/*{{{*/ 41 38 42 39 int num_procs; … … 102 99 } 103 100 /*}}}*/ 104 /*FUNCTION Vertices::FlagClones{{{*/ 105 void Vertices::FlagClones(int numberofobjects){ 101 void Vertices::FlagClones(int numberofobjects){/*{{{*/ 106 102 107 103 int i; … … 142 138 } 143 139 /*}}}*/ 144 /*FUNCTION Vertices::NumberOfVertices{{{*/ 145 int Vertices::NumberOfVertices(void){ 140 int Vertices::NumberOfVertices(void){/*{{{*/ 146 141 147 142 int i,sid; … … 166 161 } 167 162 /*}}}*/ 168 /*FUNCTION Vertices::Ranks{{{*/ 169 void Vertices::Ranks(int* ranks){ 163 void Vertices::Ranks(int* ranks){/*{{{*/ 170 164 171 165 int my_rank; … … 184 178 } 185 179 /*}}}*/ 186 /*FUNCTION Vertices::ToXYZ{{{*/ 187 IssmDouble* Vertices::ToXYZ(void){ 180 IssmDouble* Vertices::ToXYZ(void){/*{{{*/ 188 181 189 182 /*intermediary: */ -
TabularUnified issm/trunk-jpl/src/c/classes/matrix/ElementVector.cpp ¶
r15688 r18063 18 18 19 19 /*ElementVector constructors and destructor*/ 20 /*FUNCTION ElementVector::ElementVector(){{{*/ 21 ElementVector::ElementVector(){ 20 ElementVector::ElementVector(){/*{{{*/ 22 21 23 22 this->nrows=0; … … 29 28 } 30 29 /*}}}*/ 31 /*FUNCTION ElementVector::ElementVector(ElementVector* pe1, ElementVector* pe2){{{*/ 32 ElementVector::ElementVector(ElementVector* pe1, ElementVector* pe2){ 30 ElementVector::ElementVector(ElementVector* pe1, ElementVector* pe2){/*{{{*/ 33 31 34 32 /*intermediaries*/ … … 114 112 } 115 113 /*}}}*/ 116 /*FUNCTION ElementVector::ElementVector(ElementVector* pe1, ElementVector* pe2,ElementVector* pe3){{{*/ 117 ElementVector::ElementVector(ElementVector* pe1, ElementVector* pe2,ElementVector* pe3){ 114 ElementVector::ElementVector(ElementVector* pe1, ElementVector* pe2,ElementVector* pe3){/*{{{*/ 118 115 119 116 /*Concatenate all matrices*/ … … 129 126 } 130 127 /*}}}*/ 131 /*FUNCTION ElementVector::ElementVector(Node** nodes,int numnodes,Parameters* parameters,int approximation){{{*/ 132 ElementVector::ElementVector(Node** nodes,int numnodes,Parameters* parameters,int approximation){ 128 ElementVector::ElementVector(Node** nodes,int numnodes,Parameters* parameters,int approximation){/*{{{*/ 133 129 134 130 /*get Vector size and properties*/ … … 147 143 } 148 144 /*}}}*/ 149 /*FUNCTION ElementVector::~ElementVector(){{{*/ 150 ElementVector::~ElementVector(){ 145 ElementVector::~ElementVector(){/*{{{*/ 151 146 152 147 xDelete<IssmDouble>(this->values); … … 158 153 159 154 /*ElementVector specific routines: */ 160 /*FUNCTION ElementVector::AddToGlobal(Vector<IssmDouble>* pf){{{*/ 161 void ElementVector::AddToGlobal(Vector<IssmDouble>* pf){ 155 void ElementVector::AddToGlobal(Vector<IssmDouble>* pf){/*{{{*/ 162 156 163 157 int i; … … 182 176 } 183 177 /*}}}*/ 184 /*FUNCTION ElementVector::InsertIntoGlobal(Vector<IssmDouble>* pf){{{*/ 185 void ElementVector::InsertIntoGlobal(Vector<IssmDouble>* pf){ 178 void ElementVector::InsertIntoGlobal(Vector<IssmDouble>* pf){/*{{{*/ 186 179 187 180 int i; … … 203 196 } 204 197 /*}}}*/ 205 /*FUNCTION ElementVector::CheckConsistency{{{*/ 206 void ElementVector::CheckConsistency(void){ 198 void ElementVector::CheckConsistency(void){/*{{{*/ 207 199 /*Check element matrix values, only in debugging mode*/ 208 200 #ifdef _ISSM_DEBUG_ … … 214 206 } 215 207 /*}}}*/ 216 /*FUNCTION ElementVector::Echo{{{*/ 217 void ElementVector::Echo(void){ 208 void ElementVector::Echo(void){/*{{{*/ 218 209 219 210 int i; … … 239 230 } 240 231 /*}}}*/ 241 /*FUNCTION ElementVector::Init{{{*/ 242 void ElementVector::Init(ElementVector* pe){ 232 void ElementVector::Init(ElementVector* pe){/*{{{*/ 243 233 244 234 _assert_(pe); … … 265 255 } 266 256 /*}}}*/ 267 /*FUNCTION ElementVector::SetValue{{{*/ 268 void ElementVector::SetValue(IssmDouble scalar){ 257 void ElementVector::SetValue(IssmDouble scalar){/*{{{*/ 269 258 270 259 int i; … … 274 263 } 275 264 /*}}}*/ 276 /*FUNCTION ElementVector::StaticCondensation{{{*/ 277 void ElementVector::StaticCondensation(ElementMatrix* Ke,int bsize,int* bindices){ 265 void ElementVector::StaticCondensation(ElementMatrix* Ke,int bsize,int* bindices){/*{{{*/ 278 266 /* 279 267 * | Kii Kib | | Ui | |Fi| -
TabularUnified issm/trunk-jpl/src/c/datastructures/DataSet.cpp ¶
r15104 r18063 24 24 25 25 /*Constructors/Destructors*/ 26 /*FUNCTION DataSet::DataSet(){{{*/ 27 DataSet::DataSet(){ 26 DataSet::DataSet(){/*{{{*/ 28 27 29 28 sorted=0; … … 33 32 } 34 33 /*}}}*/ 35 /*FUNCTION DataSet::DataSet(int dataset_enum){{{*/ 36 DataSet::DataSet(int dataset_enum){ 34 DataSet::DataSet(int dataset_enum){/*{{{*/ 37 35 enum_type=dataset_enum; 38 36 … … 43 41 } 44 42 /*}}}*/ 45 /*FUNCTION DataSet::Copy{{{*/ 46 DataSet* DataSet::Copy(void){ 43 DataSet* DataSet::Copy(void){/*{{{*/ 47 44 48 45 vector<Object*>::iterator object; … … 72 69 } 73 70 /*}}}*/ 74 /*FUNCTION DataSet::~DataSet{{{*/ 75 DataSet::~DataSet(){ 71 DataSet::~DataSet(){/*{{{*/ 76 72 clear(); 77 73 xDelete<int>(sorted_ids); … … 81 77 82 78 /*Specific methods*/ 83 /*FUNCTION DataSet::AddObject{{{*/ 84 int DataSet::AddObject(Object* object){ 79 int DataSet::AddObject(Object* object){/*{{{*/ 85 80 86 81 _assert_(this); … … 90 85 } 91 86 /*}}}*/ 92 /*FUNCTION DataSet::clear{{{*/ 93 void DataSet::clear(){ 87 void DataSet::clear(){/*{{{*/ 94 88 95 89 /* use reverse_iterator for efficiency in matlab memory manager … … 108 102 } 109 103 /*}}}*/ 110 /*FUNCTION DataSet::DeleteObject{{{*/ 111 int DataSet::DeleteObject(Object* object){ 104 int DataSet::DeleteObject(Object* object){/*{{{*/ 112 105 113 106 vector<Object*>::iterator iterator; … … 123 116 } 124 117 /*}}}*/ 125 /*FUNCTION DataSet::DeepEcho{{{*/ 126 void DataSet::DeepEcho(){ 118 void DataSet::DeepEcho(){/*{{{*/ 127 119 128 120 vector<Object*>::iterator object; … … 140 132 } 141 133 /*}}}*/ 142 /*FUNCTION DataSet::Echo{{{*/ 143 void DataSet::Echo(){ 134 void DataSet::Echo(){/*{{{*/ 144 135 145 136 vector<Object*>::iterator object; … … 158 149 } 159 150 /*}}}*/ 160 /*FUNCTION DataSet::GetEnum(){{{*/ 161 int DataSet::GetEnum(){ 151 int DataSet::GetEnum(){/*{{{*/ 162 152 return enum_type; 163 153 } 164 154 /*}}}*/ 165 /*FUNCTION DataSet::GetEnum(int offset){{{*/ 166 int DataSet::GetEnum(int offset){ 155 int DataSet::GetEnum(int offset){/*{{{*/ 167 156 168 157 return objects[offset]->ObjectEnum(); … … 170 159 } 171 160 /*}}}*/ 172 /*FUNCTION DataSet::GetObjectByOffset{{{*/ 173 Object* DataSet::GetObjectByOffset(int offset){ 161 Object* DataSet::GetObjectByOffset(int offset){/*{{{*/ 174 162 175 163 /*Check index in debugging mode*/ … … 182 170 } 183 171 /*}}}*/ 184 /*FUNCTION DataSet::GetObjectById{{{*/ 185 Object* DataSet::GetObjectById(int* poffset,int eid){ 172 Object* DataSet::GetObjectById(int* poffset,int eid){/*{{{*/ 186 173 187 174 int id_offset; … … 206 193 } 207 194 /*}}}*/ 208 /*FUNCTION DataSet::Presort{{{*/ 209 void DataSet::Presort(){ 195 void DataSet::Presort(){/*{{{*/ 210 196 211 197 /*vector of objects is already sorted, just allocate the sorted ids and their … … 232 218 } 233 219 /*}}}*/ 234 /*FUNCTION DataSet::Size{{{*/ 235 int DataSet::Size(void){ 220 int DataSet::Size(void){/*{{{*/ 236 221 _assert_(this!=NULL); 237 222 … … 239 224 } 240 225 /*}}}*/ 241 /*FUNCTION DataSet::Sort{{{*/ 242 void DataSet::Sort(){ 226 void DataSet::Sort(){/*{{{*/ 243 227 244 228 /*Only sort if we are not already sorted: */ -
TabularUnified issm/trunk-jpl/src/c/kml/KMLFileReadUtils.cpp ¶
r16521 r18063 16 16 /*}}}*/ 17 17 18 /*FUNCTION KMLFileToken(FILE* fid,int* pncom=NULL,char*** ppcom=NULL) {{{*/ 19 char* KMLFileToken(FILE* fid, 18 char* KMLFileToken(FILE* fid,/*{{{*/ 20 19 int* pncom=NULL,char*** ppcom=NULL){ 21 20 … … 144 143 } 145 144 /*}}}*/ 146 /*FUNCTION KMLFileTokenComment(FILE* fid) {{{*/ 147 char* KMLFileTokenComment(FILE* fid){ 145 char* KMLFileTokenComment(FILE* fid){/*{{{*/ 148 146 149 147 /* check for comment in the file and read it */ … … 208 206 } 209 207 /*}}}*/ 210 /*FUNCTION KMLFileTokenBuffer {{{*/ 211 void KMLFileTokenBuffer(char** pbuffer,int* pibuf,int* pbuflen, 208 void KMLFileTokenBuffer(char** pbuffer,int* pibuf,int* pbuflen,/*{{{*/ 212 209 int c, 213 210 int bufblk){ … … 237 234 } 238 235 /*}}}*/ 239 /*FUNCTION KMLFileTagName {{{*/ 240 char* KMLFileTagName(char* pname, 236 char* KMLFileTagName(char* pname,/*{{{*/ 241 237 char* ktag){ 242 238 … … 245 241 } 246 242 /*}}}*/ 247 /*FUNCTION KMLFileTagName {{{*/ 248 char* KMLFileTagName(char* pname,int *m,int maxlen, 243 char* KMLFileTagName(char* pname,int *m,int maxlen,/*{{{*/ 249 244 char* ktag){ 250 245 … … 290 285 } 291 286 /*}}}*/ 292 /*FUNCTION KMLFileTagAttrib {{{*/ 293 int KMLFileTagAttrib(KML_Object* kobj, 287 int KMLFileTagAttrib(KML_Object* kobj,/*{{{*/ 294 288 char* ktag){ 295 289 … … 339 333 } 340 334 /*}}}*/ 341 /*FUNCTION KMLFileTokenParse {{{*/ 342 int KMLFileTokenParse(int* pival, 335 int KMLFileTokenParse(int* pival,/*{{{*/ 343 336 char* ktag, 344 337 FILE* fid){ … … 375 368 } 376 369 /*}}}*/ 377 /*FUNCTION KMLFileTokenParse {{{*/ 378 int KMLFileTokenParse(bool* pbval, char* ktag, FILE* fid){ 370 int KMLFileTokenParse(bool* pbval, char* ktag, FILE* fid){/*{{{*/ 379 371 380 372 int ival; … … 410 402 } 411 403 /*}}}*/ 412 /*FUNCTION KMLFileTokenParse {{{*/ 413 char* KMLFileTokenParse(char* pstr, 404 char* KMLFileTokenParse(char* pstr,/*{{{*/ 414 405 char* ktag, 415 406 FILE* fid){ … … 420 411 } 421 412 /*}}}*/ 422 /*FUNCTION KMLFileTokenParse {{{*/ 423 char* KMLFileTokenParse(char* pstr,int *m,int maxlen, 413 char* KMLFileTokenParse(char* pstr,int *m,int maxlen,/*{{{*/ 424 414 char* ktag, 425 415 FILE* fid){ … … 472 462 } 473 463 /*}}}*/ 474 /*FUNCTION KMLFileTokenParse {{{*/ 475 int KMLFileTokenParse(float* pfval, 464 int KMLFileTokenParse(float* pfval,/*{{{*/ 476 465 char* ktag, 477 466 FILE* fid){ … … 507 496 } 508 497 /*}}}*/ 509 /*FUNCTION KMLFileTokenParse {{{*/ 510 int KMLFileTokenParse(double* pdval, 498 int KMLFileTokenParse(double* pdval,/*{{{*/ 511 499 char* ktag, 512 500 FILE* fid){ … … 542 530 } 543 531 /*}}}*/ 544 /*FUNCTION KMLFileTokenParse {{{*/ 545 int KMLFileTokenParse(double **pdval,int* m,int maxlen, 532 int KMLFileTokenParse(double **pdval,int* m,int maxlen,/*{{{*/ 546 533 char* ktag, 547 534 FILE* fid){ … … 610 597 } 611 598 /*}}}*/ 612 /*FUNCTION KMLFileTokenParse {{{*/ 613 int KMLFileTokenParse(double **pdval,int* m,int n,int maxlen, 599 int KMLFileTokenParse(double **pdval,int* m,int n,int maxlen,/*{{{*/ 614 600 char* ktag, 615 601 FILE* fid){ … … 682 668 } 683 669 /*}}}*/ 684 /*FUNCTION KMLFileTagSkip {{{*/ 685 int KMLFileTagSkip(char* ktag, FILE* fid){ 670 int KMLFileTagSkip(char* ktag, FILE* fid){/*{{{*/ 686 671 687 672 char* kstr; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Attribute.cpp ¶
r15104 r18063 16 16 17 17 /*Constructors/destructor/copy*/ 18 /*FUNCTION KML_Attribute::KML_Attribute(){{{*/ 19 KML_Attribute::KML_Attribute(){ 18 KML_Attribute::KML_Attribute(){/*{{{*/ 20 19 21 20 name =NULL; … … 24 23 } 25 24 /*}}}*/ 26 /*FUNCTION KML_Attribute::~KML_Attribute(){{{*/ 27 KML_Attribute::~KML_Attribute(){ 25 KML_Attribute::~KML_Attribute(){/*{{{*/ 28 26 29 27 if (name ) xDelete<char>(name); … … 34 32 35 33 /*Other*/ 36 /*FUNCTION KML_Attribute::Echo {{{*/ 37 void KML_Attribute::Echo(){ 34 void KML_Attribute::Echo(){/*{{{*/ 38 35 39 36 int i; … … 48 45 } 49 46 /*}}}*/ 50 /*FUNCTION KML_Attribute::DeepEcho {{{*/ 51 void KML_Attribute::DeepEcho(){ 47 void KML_Attribute::DeepEcho(){/*{{{*/ 52 48 53 49 char indent[81]=""; … … 58 54 } 59 55 /*}}}*/ 60 /*FUNCTION KML_Attribute::DeepEcho {{{*/ 61 void KML_Attribute::DeepEcho(const char* indent){ 56 void KML_Attribute::DeepEcho(const char* indent){/*{{{*/ 62 57 63 58 int i; … … 72 67 } 73 68 /*}}}*/ 74 /*FUNCTION KML_Attribute::Write {{{*/ 75 void KML_Attribute::Write(FILE* filout,const char* indent){ 69 void KML_Attribute::Write(FILE* filout,const char* indent){/*{{{*/ 76 70 77 71 // attributes always written in keyword line of kml_object … … 82 76 } 83 77 /*}}}*/ 84 /*FUNCTION KML_Attribute::Read {{{*/ 85 void KML_Attribute::Read(FILE* fid,char* kstr){ 78 void KML_Attribute::Read(FILE* fid,char* kstr){/*{{{*/ 86 79 87 80 // attributes always read in keyword line of kml_object … … 92 85 } 93 86 /*}}}*/ 94 /*FUNCTION KML_Attribute::Alloc {{{*/ 95 void KML_Attribute::Alloc(const char* namei,const char* valuei){ 87 void KML_Attribute::Alloc(const char* namei,const char* valuei){/*{{{*/ 96 88 97 89 name =xNew<char>(strlen(namei )+1); … … 104 96 } 105 97 /*}}}*/ 106 /*FUNCTION KML_Attribute::Add {{{*/ 107 void KML_Attribute::Add(DataSet* attrib){ 98 void KML_Attribute::Add(DataSet* attrib){/*{{{*/ 108 99 109 100 attrib->AddObject((Object*)this); … … 112 103 } 113 104 /*}}}*/ 114 /*FUNCTION KML_Attribute::Get {{{*/ 115 void KML_Attribute::Get(char** pvalueo,char* deflt){ 105 void KML_Attribute::Get(char** pvalueo,char* deflt){/*{{{*/ 116 106 117 107 if (!value || !strlen(value)) { -
TabularUnified issm/trunk-jpl/src/c/kml/KML_ColorStyle.cpp ¶
r15100 r18063 18 18 19 19 /*Constructors/destructor/copy*/ 20 /*FUNCTION KML_ColorStyle::KML_ColorStyle(){{{*/ 21 KML_ColorStyle::KML_ColorStyle(){ 20 KML_ColorStyle::KML_ColorStyle(){/*{{{*/ 22 21 23 22 strcpy(color ,"ffffffff"); … … 26 25 } 27 26 /*}}}*/ 28 /*FUNCTION KML_ColorStyle::~KML_ColorStyle(){{{*/ 29 KML_ColorStyle::~KML_ColorStyle(){ 27 KML_ColorStyle::~KML_ColorStyle(){/*{{{*/ 30 28 31 29 ; … … 35 33 36 34 /*Other*/ 37 /*FUNCTION KML_ColorStyle::Echo {{{*/ 38 void KML_ColorStyle::Echo(){ 35 void KML_ColorStyle::Echo(){/*{{{*/ 39 36 40 37 bool flag=true; … … 48 45 } 49 46 /*}}}*/ 50 /*FUNCTION KML_ColorStyle::DeepEcho {{{*/ 51 void KML_ColorStyle::DeepEcho(){ 47 void KML_ColorStyle::DeepEcho(){/*{{{*/ 52 48 53 49 char indent[81]=""; … … 58 54 } 59 55 /*}}}*/ 60 /*FUNCTION KML_ColorStyle::DeepEcho {{{*/ 61 void KML_ColorStyle::DeepEcho(const char* indent){ 56 void KML_ColorStyle::DeepEcho(const char* indent){/*{{{*/ 62 57 63 58 bool flag=true; … … 69 64 } 70 65 /*}}}*/ 71 /*FUNCTION KML_ColorStyle::Write {{{*/ 72 void KML_ColorStyle::Write(FILE* filout,const char* indent){ 66 void KML_ColorStyle::Write(FILE* filout,const char* indent){/*{{{*/ 73 67 74 68 KML_SubStyle::Write(filout,indent); … … 82 76 } 83 77 /*}}}*/ 84 /*FUNCTION KML_ColorStyle::Read {{{*/ 85 void KML_ColorStyle::Read(FILE* fid,char* kstr){ 78 void KML_ColorStyle::Read(FILE* fid,char* kstr){/*{{{*/ 86 79 87 80 /* process field within opening and closing tags */ -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Comment.cpp ¶
r15100 r18063 16 16 17 17 /*Constructors/destructor/copy*/ 18 /*FUNCTION KML_Comment::KML_Comment(){{{*/ 19 KML_Comment::KML_Comment(){ 18 KML_Comment::KML_Comment(){/*{{{*/ 20 19 21 20 value =NULL; … … 23 22 } 24 23 /*}}}*/ 25 /*FUNCTION KML_Comment::~KML_Comment(){{{*/ 26 KML_Comment::~KML_Comment(){ 24 KML_Comment::~KML_Comment(){/*{{{*/ 27 25 28 26 if (value ) xDelete<char>(value); … … 32 30 33 31 /*Other*/ 34 /*FUNCTION KML_Comment::Echo {{{*/ 35 void KML_Comment::Echo(){ 32 void KML_Comment::Echo(){/*{{{*/ 36 33 37 34 bool flag=true; … … 43 40 } 44 41 /*}}}*/ 45 /*FUNCTION KML_Comment::DeepEcho {{{*/ 46 void KML_Comment::DeepEcho(){ 42 void KML_Comment::DeepEcho(){/*{{{*/ 47 43 48 44 char indent[81]=""; … … 53 49 } 54 50 /*}}}*/ 55 /*FUNCTION KML_Comment::DeepEcho {{{*/ 56 void KML_Comment::DeepEcho(const char* indent){ 51 void KML_Comment::DeepEcho(const char* indent){/*{{{*/ 57 52 58 53 bool flag=true; … … 64 59 } 65 60 /*}}}*/ 66 /*FUNCTION KML_Comment::Write {{{*/ 67 void KML_Comment::Write(FILE* filout,const char* indent){ 61 void KML_Comment::Write(FILE* filout,const char* indent){/*{{{*/ 68 62 69 63 if (strncmp(&value[0] ,"<!--",4)) … … 76 70 } 77 71 /*}}}*/ 78 /*FUNCTION KML_Comment::Read {{{*/ 79 void KML_Comment::Read(FILE* fid,char* kstr){ 72 void KML_Comment::Read(FILE* fid,char* kstr){/*{{{*/ 80 73 81 74 // comments always read as part of KMLFileToken … … 86 79 } 87 80 /*}}}*/ 88 /*FUNCTION KML_Comment::Alloc {{{*/ 89 void KML_Comment::Alloc(const char* valuei){ 81 void KML_Comment::Alloc(const char* valuei){/*{{{*/ 90 82 91 83 value=xNew<char>(strlen(valuei)+1); … … 95 87 } 96 88 /*}}}*/ 97 /*FUNCTION KML_Comment::Add {{{*/ 98 void KML_Comment::Add(DataSet* commnt){ 89 void KML_Comment::Add(DataSet* commnt){/*{{{*/ 99 90 100 91 commnt->AddObject((Object*)this); … … 103 94 } 104 95 /*}}}*/ 105 /*FUNCTION KML_Comment::Get {{{*/ 106 void KML_Comment::Get(char** pvalueo){ 96 void KML_Comment::Get(char** pvalueo){/*{{{*/ 107 97 108 98 *pvalueo=xNew<char>(strlen(value)+1); -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Container.cpp ¶
r15104 r18063 21 21 22 22 /*Constructors/destructor/copy*/ 23 /*FUNCTION KML_Container::KML_Container(){{{*/ 24 KML_Container::KML_Container(){ 23 KML_Container::KML_Container(){/*{{{*/ 25 24 26 25 feature =new DataSet; … … 28 27 } 29 28 /*}}}*/ 30 /*FUNCTION KML_Container::~KML_Container(){{{*/ 31 KML_Container::~KML_Container(){ 29 KML_Container::~KML_Container(){/*{{{*/ 32 30 33 31 if (feature) { … … 40 38 41 39 /*Other*/ 42 /*FUNCTION KML_Container::Echo {{{*/ 43 void KML_Container::Echo(){ 40 void KML_Container::Echo(){/*{{{*/ 44 41 45 42 bool flag=true; … … 52 49 } 53 50 /*}}}*/ 54 /*FUNCTION KML_Container::DeepEcho {{{*/ 55 void KML_Container::DeepEcho(){ 51 void KML_Container::DeepEcho(){/*{{{*/ 56 52 57 53 char indent[81]=""; … … 62 58 } 63 59 /*}}}*/ 64 /*FUNCTION KML_Container::DeepEcho {{{*/ 65 void KML_Container::DeepEcho(const char* indent){ 60 void KML_Container::DeepEcho(const char* indent){/*{{{*/ 66 61 67 62 int i; … … 88 83 } 89 84 /*}}}*/ 90 /*FUNCTION KML_Container::Write {{{*/ 91 void KML_Container::Write(FILE* filout,const char* indent){ 85 void KML_Container::Write(FILE* filout,const char* indent){/*{{{*/ 92 86 93 87 int i; … … 108 102 } 109 103 /*}}}*/ 110 /*FUNCTION KML_Container::Read {{{*/ 111 void KML_Container::Read(FILE* fid,char* kstr){ 104 void KML_Container::Read(FILE* fid,char* kstr){/*{{{*/ 112 105 113 106 KML_Object* kobj; … … 154 147 } 155 148 /*}}}*/ 156 /*FUNCTION KML_Container::WriteExp {{{*/ 157 void KML_Container::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 149 void KML_Container::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){/*{{{*/ 158 150 159 151 int i; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Document.cpp ¶
r16546 r18063 17 17 18 18 /*Constructors/destructor/copy*/ 19 /*FUNCTION KML_Document::KML_Document(){{{*/ 20 KML_Document::KML_Document(){ 19 KML_Document::KML_Document(){/*{{{*/ 21 20 22 21 ; … … 24 23 } 25 24 /*}}}*/ 26 /*FUNCTION KML_Document::~KML_Document(){{{*/ 27 KML_Document::~KML_Document(){ 25 KML_Document::~KML_Document(){/*{{{*/ 28 26 29 27 ; … … 33 31 34 32 /*Other*/ 35 /*FUNCTION KML_Document::Echo {{{*/ 36 void KML_Document::Echo(){ 33 void KML_Document::Echo(){/*{{{*/ 37 34 38 35 bool flag=true; … … 44 41 } 45 42 /*}}}*/ 46 /*FUNCTION KML_Document::DeepEcho {{{*/ 47 void KML_Document::DeepEcho(){ 43 void KML_Document::DeepEcho(){/*{{{*/ 48 44 49 45 char indent[81]=""; … … 54 50 } 55 51 /*}}}*/ 56 /*FUNCTION KML_Document::DeepEcho {{{*/ 57 void KML_Document::DeepEcho(const char* indent){ 52 void KML_Document::DeepEcho(const char* indent){/*{{{*/ 58 53 59 54 bool flag=true; … … 65 60 } 66 61 /*}}}*/ 67 /*FUNCTION KML_Document::Write {{{*/ 68 void KML_Document::Write(FILE* filout,const char* indent){ 62 void KML_Document::Write(FILE* filout,const char* indent){/*{{{*/ 69 63 70 64 fprintf(filout,"%s<Document",indent); … … 80 74 } 81 75 /*}}}*/ 82 /*FUNCTION KML_Document::Read {{{*/ 83 void KML_Document::Read(FILE* fid,char* kstr){ 76 void KML_Document::Read(FILE* fid,char* kstr){/*{{{*/ 84 77 85 78 char* kstri; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Feature.cpp ¶
r15104 r18063 27 27 28 28 /*Constructors/destructor/copy*/ 29 /*FUNCTION KML_Feature::KML_Feature(){{{*/ 30 KML_Feature::KML_Feature(){ 29 KML_Feature::KML_Feature(){/*{{{*/ 31 30 32 31 memcpy(name,"",(strlen("")+1)*sizeof(char)); … … 41 40 } 42 41 /*}}}*/ 43 /*FUNCTION KML_Feature::~KML_Feature(){{{*/ 44 KML_Feature::~KML_Feature(){ 42 KML_Feature::~KML_Feature(){/*{{{*/ 45 43 46 44 if (style) { … … 53 51 54 52 /*Other*/ 55 /*FUNCTION KML_Feature::Echo {{{*/ 56 void KML_Feature::Echo(){ 53 void KML_Feature::Echo(){/*{{{*/ 57 54 58 55 bool flag=true; … … 71 68 } 72 69 /*}}}*/ 73 /*FUNCTION KML_Feature::DeepEcho {{{*/ 74 void KML_Feature::DeepEcho(){ 70 void KML_Feature::DeepEcho(){/*{{{*/ 75 71 76 72 char indent[81]=""; … … 81 77 } 82 78 /*}}}*/ 83 /*FUNCTION KML_Feature::DeepEcho {{{*/ 84 void KML_Feature::DeepEcho(const char* indent){ 79 void KML_Feature::DeepEcho(const char* indent){/*{{{*/ 85 80 86 81 int i; … … 114 109 } 115 110 /*}}}*/ 116 /*FUNCTION KML_Feature::Write {{{*/ 117 void KML_Feature::Write(FILE* filout,const char* indent){ 111 void KML_Feature::Write(FILE* filout,const char* indent){/*{{{*/ 118 112 119 113 int i; … … 145 139 } 146 140 /*}}}*/ 147 /*FUNCTION KML_Feature::Read {{{*/ 148 void KML_Feature::Read(FILE* fid,char* kstr){ 141 void KML_Feature::Read(FILE* fid,char* kstr){/*{{{*/ 149 142 150 143 KML_Object* kobj; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_File.cpp ¶
r16546 r18063 18 18 19 19 /*Constructors/destructor/copy*/ 20 /*FUNCTION KML_File::KML_File(){{{*/ 21 KML_File::KML_File(){ 20 KML_File::KML_File(){/*{{{*/ 22 21 23 22 ; … … 25 24 } 26 25 /*}}}*/ 27 /*FUNCTION KML_File::~KML_File(){{{*/ 28 KML_File::~KML_File(){ 26 KML_File::~KML_File(){/*{{{*/ 29 27 30 28 ; … … 34 32 35 33 /*Other*/ 36 /*FUNCTION KML_File::Echo {{{*/ 37 void KML_File::Echo(){ 34 void KML_File::Echo(){/*{{{*/ 38 35 39 36 bool flag=true; … … 45 42 } 46 43 /*}}}*/ 47 /*FUNCTION KML_File::DeepEcho {{{*/ 48 void KML_File::DeepEcho(){ 44 void KML_File::DeepEcho(){/*{{{*/ 49 45 50 46 char indent[81]=""; … … 55 51 } 56 52 /*}}}*/ 57 /*FUNCTION KML_File::DeepEcho {{{*/ 58 void KML_File::DeepEcho(const char* indent){ 53 void KML_File::DeepEcho(const char* indent){/*{{{*/ 59 54 60 55 bool flag=true; … … 66 61 } 67 62 /*}}}*/ 68 /*FUNCTION KML_File::Write {{{*/ 69 void KML_File::Write(FILE* filout,const char* indent){ 63 void KML_File::Write(FILE* filout,const char* indent){/*{{{*/ 70 64 71 65 fprintf(filout,"%s<kml",indent); … … 81 75 } 82 76 /*}}}*/ 83 /*FUNCTION KML_File::Read {{{*/ 84 void KML_File::Read(FILE* fid,char* kstr){ 77 void KML_File::Read(FILE* fid,char* kstr){/*{{{*/ 85 78 86 79 char* kstri; … … 120 113 } 121 114 /*}}}*/ 122 /*FUNCTION KML_File::WriteExp {{{*/ 123 void KML_File::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 115 void KML_File::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){/*{{{*/ 124 116 125 117 int i; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Folder.cpp ¶
r16546 r18063 17 17 18 18 /*Constructors/destructor/copy*/ 19 /*FUNCTION KML_Folder::KML_Folder(){{{*/ 20 KML_Folder::KML_Folder(){ 19 KML_Folder::KML_Folder(){/*{{{*/ 21 20 22 21 ; … … 24 23 } 25 24 /*}}}*/ 26 /*FUNCTION KML_Folder::~KML_Folder(){{{*/ 27 KML_Folder::~KML_Folder(){ 25 KML_Folder::~KML_Folder(){/*{{{*/ 28 26 29 27 ; … … 33 31 34 32 /*Other*/ 35 /*FUNCTION KML_Folder::Echo {{{*/ 36 void KML_Folder::Echo(){ 33 void KML_Folder::Echo(){/*{{{*/ 37 34 38 35 bool flag=true; … … 44 41 } 45 42 /*}}}*/ 46 /*FUNCTION KML_Folder::DeepEcho {{{*/ 47 void KML_Folder::DeepEcho(){ 43 void KML_Folder::DeepEcho(){/*{{{*/ 48 44 49 45 char indent[81]=""; … … 54 50 } 55 51 /*}}}*/ 56 /*FUNCTION KML_Folder::DeepEcho {{{*/ 57 void KML_Folder::DeepEcho(const char* indent){ 52 void KML_Folder::DeepEcho(const char* indent){/*{{{*/ 58 53 59 54 bool flag=true; … … 65 60 } 66 61 /*}}}*/ 67 /*FUNCTION KML_Folder::Write {{{*/ 68 void KML_Folder::Write(FILE* filout,const char* indent){ 62 void KML_Folder::Write(FILE* filout,const char* indent){/*{{{*/ 69 63 70 64 fprintf(filout,"%s<Folder",indent); … … 80 74 } 81 75 /*}}}*/ 82 /*FUNCTION KML_Folder::Read {{{*/ 83 void KML_Folder::Read(FILE* fid,char* kstr){ 76 void KML_Folder::Read(FILE* fid,char* kstr){/*{{{*/ 84 77 85 78 char* kstri; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Geometry.cpp ¶
r15068 r18063 17 17 18 18 /*Constructors/destructor/copy*/ 19 /*FUNCTION KML_Geometry::KML_Geometry(){{{*/ 20 KML_Geometry::KML_Geometry(){ 19 KML_Geometry::KML_Geometry(){/*{{{*/ 21 20 22 21 ; … … 24 23 } 25 24 /*}}}*/ 26 /*FUNCTION KML_Geometry::~KML_Geometry(){{{*/ 27 KML_Geometry::~KML_Geometry(){ 25 KML_Geometry::~KML_Geometry(){/*{{{*/ 28 26 29 27 ; … … 33 31 34 32 /*Other*/ 35 /*FUNCTION KML_Geometry::Echo {{{*/ 36 void KML_Geometry::Echo(){ 33 void KML_Geometry::Echo(){/*{{{*/ 37 34 38 35 this->KML_Object::Echo(); … … 41 38 } 42 39 /*}}}*/ 43 /*FUNCTION KML_Geometry::DeepEcho {{{*/ 44 void KML_Geometry::DeepEcho(){ 40 void KML_Geometry::DeepEcho(){/*{{{*/ 45 41 46 42 char indent[81]=""; … … 51 47 } 52 48 /*}}}*/ 53 /*FUNCTION KML_Geometry::DeepEcho {{{*/ 54 void KML_Geometry::DeepEcho(const char* indent){ 49 void KML_Geometry::DeepEcho(const char* indent){/*{{{*/ 55 50 56 51 this->KML_Object::DeepEcho(indent); … … 59 54 } 60 55 /*}}}*/ 61 /*FUNCTION KML_Geometry::Write {{{*/ 62 void KML_Geometry::Write(FILE* filout,const char* indent){ 56 void KML_Geometry::Write(FILE* filout,const char* indent){/*{{{*/ 63 57 64 58 KML_Object::Write(filout,indent); … … 67 61 } 68 62 /*}}}*/ 69 /*FUNCTION KML_Geometry::Read {{{*/ 70 void KML_Geometry::Read(FILE* fid,char* kstr){ 63 void KML_Geometry::Read(FILE* fid,char* kstr){/*{{{*/ 71 64 72 65 /* process field within opening and closing tags */ -
TabularUnified issm/trunk-jpl/src/c/kml/KML_GroundOverlay.cpp ¶
r16546 r18063 19 19 20 20 /*Constructors/destructor/copy*/ 21 /*FUNCTION KML_GroundOverlay::KML_GroundOverlay(){{{*/ 22 KML_GroundOverlay::KML_GroundOverlay(){ 21 KML_GroundOverlay::KML_GroundOverlay(){/*{{{*/ 23 22 24 23 altitude = 0.; … … 29 28 } 30 29 /*}}}*/ 31 /*FUNCTION KML_GroundOverlay::~KML_GroundOverlay(){{{*/ 32 KML_GroundOverlay::~KML_GroundOverlay(){ 30 KML_GroundOverlay::~KML_GroundOverlay(){/*{{{*/ 33 31 34 32 if (llbox) { … … 41 39 42 40 /*Other*/ 43 /*FUNCTION KML_GroundOverlay::Echo {{{*/ 44 void KML_GroundOverlay::Echo(){ 41 void KML_GroundOverlay::Echo(){/*{{{*/ 45 42 46 43 _printf_("KML_GroundOverlay:\n"); … … 52 49 } 53 50 /*}}}*/ 54 /*FUNCTION KML_GroundOverlay::DeepEcho {{{*/ 55 void KML_GroundOverlay::DeepEcho(){ 51 void KML_GroundOverlay::DeepEcho(){/*{{{*/ 56 52 57 53 char indent[81]=""; … … 62 58 } 63 59 /*}}}*/ 64 /*FUNCTION KML_GroundOverlay::DeepEcho {{{*/ 65 void KML_GroundOverlay::DeepEcho(const char* indent){ 60 void KML_GroundOverlay::DeepEcho(const char* indent){/*{{{*/ 66 61 67 62 char indent2[81]; … … 81 76 } 82 77 /*}}}*/ 83 /*FUNCTION KML_GroundOverlay::Write {{{*/ 84 void KML_GroundOverlay::Write(FILE* filout,const char* indent){ 78 void KML_GroundOverlay::Write(FILE* filout,const char* indent){/*{{{*/ 85 79 86 80 char indent2[81]; … … 107 101 } 108 102 /*}}}*/ 109 /*FUNCTION KML_GroundOverlay::Read {{{*/ 110 void KML_GroundOverlay::Read(FILE* fid,char* kstr){ 103 void KML_GroundOverlay::Read(FILE* fid,char* kstr){/*{{{*/ 111 104 112 105 char* kstri; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Icon.cpp ¶
r16546 r18063 17 17 18 18 /*Constructors/destructor/copy*/ 19 /*FUNCTION KML_Icon::KML_Icon(){{{*/ 20 KML_Icon::KML_Icon(){ 19 KML_Icon::KML_Icon(){/*{{{*/ 21 20 22 21 strcpy(href ,""); … … 31 30 } 32 31 /*}}}*/ 33 /*FUNCTION KML_Icon::~KML_Icon(){{{*/ 34 KML_Icon::~KML_Icon(){ 32 KML_Icon::~KML_Icon(){/*{{{*/ 35 33 36 34 ; … … 40 38 41 39 /*Other*/ 42 /*FUNCTION KML_Icon::Echo {{{*/ 43 void KML_Icon::Echo(){ 40 void KML_Icon::Echo(){/*{{{*/ 44 41 45 42 bool flag=true; … … 60 57 } 61 58 /*}}}*/ 62 /*FUNCTION KML_Icon::DeepEcho {{{*/ 63 void KML_Icon::DeepEcho(){ 59 void KML_Icon::DeepEcho(){/*{{{*/ 64 60 65 61 char indent[81]=""; … … 70 66 } 71 67 /*}}}*/ 72 /*FUNCTION KML_Icon::DeepEcho {{{*/ 73 void KML_Icon::DeepEcho(const char* indent){ 68 void KML_Icon::DeepEcho(const char* indent){/*{{{*/ 74 69 75 70 bool flag=true; … … 90 85 } 91 86 /*}}}*/ 92 /*FUNCTION KML_Icon::Write {{{*/ 93 void KML_Icon::Write(FILE* filout,const char* indent){ 87 void KML_Icon::Write(FILE* filout,const char* indent){/*{{{*/ 94 88 95 89 fprintf(filout,"%s<Icon",indent); … … 119 113 } 120 114 /*}}}*/ 121 /*FUNCTION KML_Icon::Read {{{*/ 122 void KML_Icon::Read(FILE* fid,char* kstr){ 115 void KML_Icon::Read(FILE* fid,char* kstr){/*{{{*/ 123 116 124 117 char* kstri; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_LatLonBox.cpp ¶
r16546 r18063 17 17 18 18 /*Constructors/destructor/copy*/ 19 /*FUNCTION KML_LatLonBox::KML_LatLonBox(){{{*/ 20 KML_LatLonBox::KML_LatLonBox(){ 19 KML_LatLonBox::KML_LatLonBox(){/*{{{*/ 21 20 22 21 north = 0.; … … 28 27 } 29 28 /*}}}*/ 30 /*FUNCTION KML_LatLonBox::~KML_LatLonBox(){{{*/ 31 KML_LatLonBox::~KML_LatLonBox(){ 29 KML_LatLonBox::~KML_LatLonBox(){/*{{{*/ 32 30 33 31 ; … … 37 35 38 36 /*Other*/ 39 /*FUNCTION KML_LatLonBox::Echo {{{*/ 40 void KML_LatLonBox::Echo(){ 37 void KML_LatLonBox::Echo(){/*{{{*/ 41 38 42 39 _printf_("KML_LatLonBox:\n"); … … 50 47 } 51 48 /*}}}*/ 52 /*FUNCTION KML_LatLonBox::DeepEcho {{{*/ 53 void KML_LatLonBox::DeepEcho(){ 49 void KML_LatLonBox::DeepEcho(){/*{{{*/ 54 50 55 51 char indent[81]=""; … … 60 56 } 61 57 /*}}}*/ 62 /*FUNCTION KML_LatLonBox::DeepEcho {{{*/ 63 void KML_LatLonBox::DeepEcho(const char* indent){ 58 void KML_LatLonBox::DeepEcho(const char* indent){/*{{{*/ 64 59 65 60 _printf_(indent << "KML_LatLonBox:\n"); … … 73 68 } 74 69 /*}}}*/ 75 /*FUNCTION KML_LatLonBox::Write {{{*/ 76 void KML_LatLonBox::Write(FILE* filout,const char* indent){ 70 void KML_LatLonBox::Write(FILE* filout,const char* indent){/*{{{*/ 77 71 78 72 fprintf(filout,"%s<LatLonBox",indent); … … 94 88 } 95 89 /*}}}*/ 96 /*FUNCTION KML_LatLonBox::Read {{{*/ 97 void KML_LatLonBox::Read(FILE* fid,char* kstr){ 90 void KML_LatLonBox::Read(FILE* fid,char* kstr){/*{{{*/ 98 91 99 92 char* kstri; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_LineString.cpp ¶
r16546 r18063 17 17 18 18 /*Constructors/destructor/copy*/ 19 /*FUNCTION KML_LineString::KML_LineString(){{{*/ 20 KML_LineString::KML_LineString(){ 19 KML_LineString::KML_LineString(){/*{{{*/ 21 20 22 21 extrude =false; … … 29 28 } 30 29 /*}}}*/ 31 /*FUNCTION KML_LineString::~KML_LineString(){{{*/ 32 KML_LineString::~KML_LineString(){ 30 KML_LineString::~KML_LineString(){/*{{{*/ 33 31 34 32 if (coords) xDelete<double>(coords); … … 41 39 42 40 /*Other*/ 43 /*FUNCTION KML_LineString::Echo {{{*/ 44 void KML_LineString::Echo(){ 41 void KML_LineString::Echo(){/*{{{*/ 45 42 46 43 bool flag=true; … … 57 54 } 58 55 /*}}}*/ 59 /*FUNCTION KML_LineString::DeepEcho {{{*/ 60 void KML_LineString::DeepEcho(){ 56 void KML_LineString::DeepEcho(){/*{{{*/ 61 57 62 58 char indent[81]=""; … … 67 63 } 68 64 /*}}}*/ 69 /*FUNCTION KML_LineString::DeepEcho {{{*/ 70 void KML_LineString::DeepEcho(const char* indent){ 65 void KML_LineString::DeepEcho(const char* indent){/*{{{*/ 71 66 72 67 int i; … … 86 81 } 87 82 /*}}}*/ 88 /*FUNCTION KML_LineString::Write {{{*/ 89 void KML_LineString::Write(FILE* filout,const char* indent){ 83 void KML_LineString::Write(FILE* filout,const char* indent){/*{{{*/ 90 84 91 85 int i; … … 114 108 } 115 109 /*}}}*/ 116 /*FUNCTION KML_LineString::Read {{{*/ 117 void KML_LineString::Read(FILE* fid,char* kstr){ 110 void KML_LineString::Read(FILE* fid,char* kstr){/*{{{*/ 118 111 119 112 char* kstri; … … 171 164 } 172 165 /*}}}*/ 173 /*FUNCTION KML_LineString::WriteExp {{{*/ 174 void KML_LineString::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 166 void KML_LineString::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){/*{{{*/ 175 167 176 168 int i; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_LineStyle.cpp ¶
r16546 r18063 17 17 18 18 /*Constructors/destructor/copy*/ 19 /*FUNCTION KML_LineStyle::KML_LineStyle(){{{*/ 20 KML_LineStyle::KML_LineStyle(){ 19 KML_LineStyle::KML_LineStyle(){/*{{{*/ 21 20 22 21 width =1.; … … 24 23 } 25 24 /*}}}*/ 26 /*FUNCTION KML_LineStyle::~KML_LineStyle(){{{*/ 27 KML_LineStyle::~KML_LineStyle(){ 25 KML_LineStyle::~KML_LineStyle(){/*{{{*/ 28 26 29 27 ; … … 33 31 34 32 /*Other*/ 35 /*FUNCTION KML_LineStyle::Echo {{{*/ 36 void KML_LineStyle::Echo(){ 33 void KML_LineStyle::Echo(){/*{{{*/ 37 34 38 35 bool flag=true; … … 46 43 } 47 44 /*}}}*/ 48 /*FUNCTION KML_LineStyle::DeepEcho {{{*/ 49 void KML_LineStyle::DeepEcho(){ 45 void KML_LineStyle::DeepEcho(){/*{{{*/ 50 46 51 47 char indent[81]=""; … … 56 52 } 57 53 /*}}}*/ 58 /*FUNCTION KML_LineStyle::DeepEcho {{{*/ 59 void KML_LineStyle::DeepEcho(const char* indent){ 54 void KML_LineStyle::DeepEcho(const char* indent){/*{{{*/ 60 55 61 56 bool flag=true; … … 69 64 } 70 65 /*}}}*/ 71 /*FUNCTION KML_LineStyle::Write {{{*/ 72 void KML_LineStyle::Write(FILE* filout,const char* indent){ 66 void KML_LineStyle::Write(FILE* filout,const char* indent){/*{{{*/ 73 67 74 68 fprintf(filout,"%s<LineStyle",indent); … … 86 80 } 87 81 /*}}}*/ 88 /*FUNCTION KML_LineStyle::Read {{{*/ 89 void KML_LineStyle::Read(FILE* fid,char* kstr){ 82 void KML_LineStyle::Read(FILE* fid,char* kstr){/*{{{*/ 90 83 91 84 char* kstri; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_LinearRing.cpp ¶
r16546 r18063 17 17 18 18 /*Constructors/destructor/copy*/ 19 /*FUNCTION KML_LinearRing::KML_LinearRing(){{{*/ 20 KML_LinearRing::KML_LinearRing(){ 19 KML_LinearRing::KML_LinearRing(){/*{{{*/ 21 20 22 21 extrude =false; … … 29 28 } 30 29 /*}}}*/ 31 /*FUNCTION KML_LinearRing::~KML_LinearRing(){{{*/ 32 KML_LinearRing::~KML_LinearRing(){ 30 KML_LinearRing::~KML_LinearRing(){/*{{{*/ 33 31 34 32 if (coords) xDelete<double>(coords); … … 41 39 42 40 /*Other*/ 43 /*FUNCTION KML_LinearRing::Echo {{{*/ 44 void KML_LinearRing::Echo(){ 41 void KML_LinearRing::Echo(){/*{{{*/ 45 42 46 43 bool flag=true; … … 57 54 } 58 55 /*}}}*/ 59 /*FUNCTION KML_LinearRing::DeepEcho {{{*/ 60 void KML_LinearRing::DeepEcho(){ 56 void KML_LinearRing::DeepEcho(){/*{{{*/ 61 57 62 58 char indent[81]=""; … … 67 63 } 68 64 /*}}}*/ 69 /*FUNCTION KML_LinearRing::DeepEcho {{{*/ 70 void KML_LinearRing::DeepEcho(const char* indent){ 65 void KML_LinearRing::DeepEcho(const char* indent){/*{{{*/ 71 66 72 67 int i; … … 86 81 } 87 82 /*}}}*/ 88 /*FUNCTION KML_LinearRing::Write {{{*/ 89 void KML_LinearRing::Write(FILE* filout,const char* indent){ 83 void KML_LinearRing::Write(FILE* filout,const char* indent){/*{{{*/ 90 84 91 85 int i; … … 114 108 } 115 109 /*}}}*/ 116 /*FUNCTION KML_LinearRing::Read {{{*/ 117 void KML_LinearRing::Read(FILE* fid,char* kstr){ 110 void KML_LinearRing::Read(FILE* fid,char* kstr){/*{{{*/ 118 111 119 112 char *kstri = NULL; … … 160 153 } 161 154 /*}}}*/ 162 /*FUNCTION KML_LinearRing::WriteExp {{{*/ 163 void KML_LinearRing::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 155 void KML_LinearRing::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){/*{{{*/ 164 156 165 157 int i; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_MultiGeometry.cpp ¶
r16546 r18063 22 22 23 23 /*Constructors/destructor/copy*/ 24 /*FUNCTION KML_MultiGeometry::KML_MultiGeometry(){{{*/ 25 KML_MultiGeometry::KML_MultiGeometry(){ 24 KML_MultiGeometry::KML_MultiGeometry(){/*{{{*/ 26 25 27 26 geometry =new DataSet; … … 29 28 } 30 29 /*}}}*/ 31 /*FUNCTION KML_MultiGeometry::~KML_MultiGeometry(){{{*/ 32 KML_MultiGeometry::~KML_MultiGeometry(){ 30 KML_MultiGeometry::~KML_MultiGeometry(){/*{{{*/ 33 31 34 32 if (geometry) { … … 41 39 42 40 /*Other*/ 43 /*FUNCTION KML_MultiGeometry::Echo {{{*/ 44 void KML_MultiGeometry::Echo(){ 41 void KML_MultiGeometry::Echo(){/*{{{*/ 45 42 46 43 bool flag=true; … … 54 51 } 55 52 /*}}}*/ 56 /*FUNCTION KML_MultiGeometry::DeepEcho {{{*/ 57 void KML_MultiGeometry::DeepEcho(){ 53 void KML_MultiGeometry::DeepEcho(){/*{{{*/ 58 54 59 55 char indent[81]=""; … … 64 60 } 65 61 /*}}}*/ 66 /*FUNCTION KML_MultiGeometry::DeepEcho {{{*/ 67 void KML_MultiGeometry::DeepEcho(const char* indent){ 62 void KML_MultiGeometry::DeepEcho(const char* indent){/*{{{*/ 68 63 69 64 int i; … … 91 86 } 92 87 /*}}}*/ 93 /*FUNCTION KML_MultiGeometry::Write {{{*/ 94 void KML_MultiGeometry::Write(FILE* filout,const char* indent){ 88 void KML_MultiGeometry::Write(FILE* filout,const char* indent){/*{{{*/ 95 89 96 90 int i; … … 118 112 } 119 113 /*}}}*/ 120 /*FUNCTION KML_MultiGeometry::Read {{{*/ 121 void KML_MultiGeometry::Read(FILE* fid,char* kstr){ 114 void KML_MultiGeometry::Read(FILE* fid,char* kstr){/*{{{*/ 122 115 123 116 char* kstri; … … 189 182 } 190 183 /*}}}*/ 191 /*FUNCTION KML_MultiGeometry::WriteExp {{{*/ 192 void KML_MultiGeometry::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 184 void KML_MultiGeometry::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){/*{{{*/ 193 185 194 186 int i; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Object.cpp ¶
r16233 r18063 32 32 33 33 /*Constructors/destructor/copy*/ 34 /*FUNCTION KML_Object::KML_Object(){{{*/ 35 KML_Object::KML_Object(){ 34 KML_Object::KML_Object(){/*{{{*/ 36 35 37 36 attrib =new DataSet; … … 41 40 } 42 41 /*}}}*/ 43 /*FUNCTION KML_Object::~KML_Object(){{{*/ 44 KML_Object::~KML_Object(){ 42 KML_Object::~KML_Object(){/*{{{*/ 45 43 46 44 if (attrib) { … … 61 59 62 60 /*Other*/ 63 /*FUNCTION KML_Object::Echo {{{*/ 64 void KML_Object::Echo(){ 61 void KML_Object::Echo(){/*{{{*/ 65 62 66 63 bool flag=true; … … 73 70 } 74 71 /*}}}*/ 75 /*FUNCTION KML_Object::DeepEcho {{{*/ 76 void KML_Object::DeepEcho(){ 72 void KML_Object::DeepEcho(){/*{{{*/ 77 73 78 74 char indent[81]=""; … … 83 79 } 84 80 /*}}}*/ 85 /*FUNCTION KML_Object::DeepEcho {{{*/ 86 void KML_Object::DeepEcho(const char* indent){ 81 void KML_Object::DeepEcho(const char* indent){/*{{{*/ 87 82 88 83 int i; … … 125 120 } 126 121 /*}}}*/ 127 /*FUNCTION KML_Object::Write {{{*/ 128 void KML_Object::Write(FILE* filout,const char* indent){ 122 void KML_Object::Write(FILE* filout,const char* indent){/*{{{*/ 129 123 130 124 int i; … … 147 141 } 148 142 /*}}}*/ 149 /*FUNCTION KML_Object::Read {{{*/ 150 void KML_Object::Read(FILE* fid,char* kstr){ 143 void KML_Object::Read(FILE* fid,char* kstr){/*{{{*/ 151 144 152 145 KML_Object* kobj; … … 275 268 } 276 269 /*}}}*/ 277 /*FUNCTION KML_Object::WriteExp {{{*/ 278 void KML_Object::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 270 void KML_Object::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){/*{{{*/ 279 271 280 272 ; … … 283 275 } 284 276 /*}}}*/ 285 /*FUNCTION KML_Object::AddAttrib {{{*/ 286 void KML_Object::AddAttrib(const char* name,const char* value){ 277 void KML_Object::AddAttrib(const char* name,const char* value){/*{{{*/ 287 278 288 279 KML_Attribute* katt=NULL; … … 295 286 } 296 287 /*}}}*/ 297 /*FUNCTION KML_Object::WriteAttrib {{{*/ 298 void KML_Object::WriteAttrib(FILE* filout,const char* indent){ 288 void KML_Object::WriteAttrib(FILE* filout,const char* indent){/*{{{*/ 299 289 300 290 // attributes always written in keyword line of kml_object … … 309 299 } 310 300 /*}}}*/ 311 /*FUNCTION KML_Object::AddCommnt {{{*/ 312 void KML_Object::AddCommnt(int ncom,char** pcom){ 301 void KML_Object::AddCommnt(int ncom,char** pcom){/*{{{*/ 313 302 314 303 int i; … … 324 313 } 325 314 /*}}}*/ 326 /*FUNCTION KML_Object::AddCommnt {{{*/ 327 void KML_Object::AddCommnt(char* value){ 315 void KML_Object::AddCommnt(char* value){/*{{{*/ 328 316 329 317 KML_Comment* kcom=NULL; … … 336 324 } 337 325 /*}}}*/ 338 /*FUNCTION KML_Object::WriteCommnt {{{*/ 339 void KML_Object::WriteCommnt(FILE* filout,const char* indent){ 326 void KML_Object::WriteCommnt(FILE* filout,const char* indent){/*{{{*/ 340 327 341 328 int i; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Overlay.cpp ¶
r15104 r18063 18 18 19 19 /*Constructors/destructor/copy*/ 20 /*FUNCTION KML_Overlay::KML_Overlay(){{{*/ 21 KML_Overlay::KML_Overlay(){ 20 KML_Overlay::KML_Overlay(){/*{{{*/ 22 21 23 22 strcpy(color ,"ffffffff"); … … 29 28 } 30 29 /*}}}*/ 31 /*FUNCTION KML_Overlay::~KML_Overlay(){{{*/ 32 KML_Overlay::~KML_Overlay(){ 30 KML_Overlay::~KML_Overlay(){/*{{{*/ 33 31 34 32 if (icon) { … … 41 39 42 40 /*Other*/ 43 /*FUNCTION KML_Overlay::Echo {{{*/ 44 void KML_Overlay::Echo(){ 41 void KML_Overlay::Echo(){/*{{{*/ 45 42 46 43 KML_Feature::Echo(); … … 50 47 } 51 48 /*}}}*/ 52 /*FUNCTION KML_Overlay::DeepEcho {{{*/ 53 void KML_Overlay::DeepEcho(){ 49 void KML_Overlay::DeepEcho(){/*{{{*/ 54 50 55 51 char indent[81]=""; … … 60 56 } 61 57 /*}}}*/ 62 /*FUNCTION KML_Overlay::DeepEcho {{{*/ 63 void KML_Overlay::DeepEcho(const char* indent){ 58 void KML_Overlay::DeepEcho(const char* indent){/*{{{*/ 64 59 65 60 char indent2[81]; … … 77 72 } 78 73 /*}}}*/ 79 /*FUNCTION KML_Overlay::Write {{{*/ 80 void KML_Overlay::Write(FILE* filout,const char* indent){ 74 void KML_Overlay::Write(FILE* filout,const char* indent){/*{{{*/ 81 75 82 76 char indent2[81]; … … 97 91 } 98 92 /*}}}*/ 99 /*FUNCTION KML_Overlay::Read {{{*/ 100 void KML_Overlay::Read(FILE* fid,char* kstr){ 93 void KML_Overlay::Read(FILE* fid,char* kstr){/*{{{*/ 101 94 102 95 /* process field within opening and closing tags */ -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Placemark.cpp ¶
r16546 r18063 23 23 24 24 /*Constructors/destructor/copy*/ 25 /*FUNCTION KML_Placemark::KML_Placemark(){{{*/ 26 KML_Placemark::KML_Placemark(){ 25 KML_Placemark::KML_Placemark(){/*{{{*/ 27 26 28 27 geometry =new DataSet; … … 30 29 } 31 30 /*}}}*/ 32 /*FUNCTION KML_Placemark::~KML_Placemark(){{{*/ 33 KML_Placemark::~KML_Placemark(){ 31 KML_Placemark::~KML_Placemark(){/*{{{*/ 34 32 35 33 if (geometry) { … … 42 40 43 41 /*Other*/ 44 /*FUNCTION KML_Placemark::Echo {{{*/ 45 void KML_Placemark::Echo(){ 42 void KML_Placemark::Echo(){/*{{{*/ 46 43 47 44 bool flag=true; … … 55 52 } 56 53 /*}}}*/ 57 /*FUNCTION KML_Placemark::DeepEcho {{{*/ 58 void KML_Placemark::DeepEcho(){ 54 void KML_Placemark::DeepEcho(){/*{{{*/ 59 55 60 56 char indent[81]=""; … … 65 61 } 66 62 /*}}}*/ 67 /*FUNCTION KML_Placemark::DeepEcho {{{*/ 68 void KML_Placemark::DeepEcho(const char* indent){ 63 void KML_Placemark::DeepEcho(const char* indent){/*{{{*/ 69 64 70 65 int i; … … 92 87 } 93 88 /*}}}*/ 94 /*FUNCTION KML_Placemark::Write {{{*/ 95 void KML_Placemark::Write(FILE* filout,const char* indent){ 89 void KML_Placemark::Write(FILE* filout,const char* indent){/*{{{*/ 96 90 97 91 int i; … … 119 113 } 120 114 /*}}}*/ 121 /*FUNCTION KML_Placemark::Read {{{*/ 122 void KML_Placemark::Read(FILE* fid,char* kstr){ 115 void KML_Placemark::Read(FILE* fid,char* kstr){/*{{{*/ 123 116 124 117 char* kstri; … … 190 183 } 191 184 /*}}}*/ 192 /*FUNCTION KML_Placemark::WriteExp {{{*/ 193 void KML_Placemark::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 185 void KML_Placemark::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){/*{{{*/ 194 186 195 187 int i; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Point.cpp ¶
r16546 r18063 17 17 18 18 /*Constructors/destructor/copy*/ 19 /*FUNCTION KML_Point::KML_Point(){{{*/ 20 KML_Point::KML_Point(){ 19 KML_Point::KML_Point(){/*{{{*/ 21 20 22 21 extrude =false; … … 29 28 } 30 29 /*}}}*/ 31 /*FUNCTION KML_Point::~KML_Point(){{{*/ 32 KML_Point::~KML_Point(){ 30 KML_Point::~KML_Point(){/*{{{*/ 33 31 34 32 ; … … 38 36 39 37 /*Other*/ 40 /*FUNCTION KML_Point::Echo {{{*/ 41 void KML_Point::Echo(){ 38 void KML_Point::Echo(){/*{{{*/ 42 39 43 40 bool flag=true; … … 53 50 } 54 51 /*}}}*/ 55 /*FUNCTION KML_Point::DeepEcho {{{*/ 56 void KML_Point::DeepEcho(){ 52 void KML_Point::DeepEcho(){/*{{{*/ 57 53 58 54 char indent[81]=""; … … 63 59 } 64 60 /*}}}*/ 65 /*FUNCTION KML_Point::DeepEcho {{{*/ 66 void KML_Point::DeepEcho(const char* indent){ 61 void KML_Point::DeepEcho(const char* indent){/*{{{*/ 67 62 68 63 bool flag=true; … … 78 73 } 79 74 /*}}}*/ 80 /*FUNCTION KML_Point::Write {{{*/ 81 void KML_Point::Write(FILE* filout,const char* indent){ 75 void KML_Point::Write(FILE* filout,const char* indent){/*{{{*/ 82 76 83 77 fprintf(filout,"%s<Point",indent); … … 98 92 } 99 93 /*}}}*/ 100 /*FUNCTION KML_Point::Read {{{*/ 101 void KML_Point::Read(FILE* fid,char* kstr){ 94 void KML_Point::Read(FILE* fid,char* kstr){/*{{{*/ 102 95 103 96 double* pcoords=&coords[0]; … … 146 139 } 147 140 /*}}}*/ 148 /*FUNCTION KML_Point::WriteExp {{{*/ 149 void KML_Point::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 141 void KML_Point::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){/*{{{*/ 150 142 151 143 int i; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_PolyStyle.cpp ¶
r16546 r18063 19 19 20 20 /*Constructors/destructor/copy*/ 21 /*FUNCTION KML_PolyStyle::KML_PolyStyle(){{{*/ 22 KML_PolyStyle::KML_PolyStyle(){ 21 KML_PolyStyle::KML_PolyStyle(){/*{{{*/ 23 22 24 23 fill =true; … … 27 26 } 28 27 /*}}}*/ 29 /*FUNCTION KML_PolyStyle::~KML_PolyStyle(){{{*/ 30 KML_PolyStyle::~KML_PolyStyle(){ 28 KML_PolyStyle::~KML_PolyStyle(){/*{{{*/ 31 29 32 30 ; … … 36 34 37 35 /*Other*/ 38 /*FUNCTION KML_PolyStyle::Echo {{{*/ 39 void KML_PolyStyle::Echo(){ 36 void KML_PolyStyle::Echo(){/*{{{*/ 40 37 41 38 bool flag=true; … … 50 47 } 51 48 /*}}}*/ 52 /*FUNCTION KML_PolyStyle::DeepEcho {{{*/ 53 void KML_PolyStyle::DeepEcho(){ 49 void KML_PolyStyle::DeepEcho(){/*{{{*/ 54 50 55 51 char indent[81]=""; … … 60 56 } 61 57 /*}}}*/ 62 /*FUNCTION KML_PolyStyle::DeepEcho {{{*/ 63 void KML_PolyStyle::DeepEcho(const char* indent){ 58 void KML_PolyStyle::DeepEcho(const char* indent){/*{{{*/ 64 59 65 60 bool flag=true; … … 74 69 } 75 70 /*}}}*/ 76 /*FUNCTION KML_PolyStyle::Write {{{*/ 77 void KML_PolyStyle::Write(FILE* filout,const char* indent){ 71 void KML_PolyStyle::Write(FILE* filout,const char* indent){/*{{{*/ 78 72 79 73 fprintf(filout,"%s<PolyStyle",indent); … … 92 86 } 93 87 /*}}}*/ 94 /*FUNCTION KML_PolyStyle::Read {{{*/ 95 void KML_PolyStyle::Read(FILE* fid,char* kstr){ 88 void KML_PolyStyle::Read(FILE* fid,char* kstr){/*{{{*/ 96 89 97 90 char* kstri; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Polygon.cpp ¶
r16546 r18063 18 18 19 19 /*Constructors/destructor/copy*/ 20 /*FUNCTION KML_Polygon::KML_Polygon(){{{*/ 21 KML_Polygon::KML_Polygon(){ 20 KML_Polygon::KML_Polygon(){/*{{{*/ 22 21 23 22 extrude =false; … … 30 29 } 31 30 /*}}}*/ 32 /*FUNCTION KML_Polygon::~KML_Polygon(){{{*/ 33 KML_Polygon::~KML_Polygon(){ 31 KML_Polygon::~KML_Polygon(){/*{{{*/ 34 32 35 33 if (inner) { … … 47 45 48 46 /*Other*/ 49 /*FUNCTION KML_Polygon::Echo {{{*/ 50 void KML_Polygon::Echo(){ 47 void KML_Polygon::Echo(){/*{{{*/ 51 48 52 49 bool flag=true; … … 64 61 } 65 62 /*}}}*/ 66 /*FUNCTION KML_Polygon::DeepEcho {{{*/ 67 void KML_Polygon::DeepEcho(){ 63 void KML_Polygon::DeepEcho(){/*{{{*/ 68 64 69 65 char indent[81]=""; … … 74 70 } 75 71 /*}}}*/ 76 /*FUNCTION KML_Polygon::DeepEcho {{{*/ 77 void KML_Polygon::DeepEcho(const char* indent){ 72 void KML_Polygon::DeepEcho(const char* indent){/*{{{*/ 78 73 79 74 int i; … … 112 107 } 113 108 /*}}}*/ 114 /*FUNCTION KML_Polygon::Write {{{*/ 115 void KML_Polygon::Write(FILE* filout,const char* indent){ 109 void KML_Polygon::Write(FILE* filout,const char* indent){/*{{{*/ 116 110 117 111 int i; … … 152 146 } 153 147 /*}}}*/ 154 /*FUNCTION KML_Polygon::Read {{{*/ 155 void KML_Polygon::Read(FILE* fid,char* kstr){ 148 void KML_Polygon::Read(FILE* fid,char* kstr){/*{{{*/ 156 149 157 150 char* kstri; … … 259 252 } 260 253 /*}}}*/ 261 /*FUNCTION KML_Polygon::WriteExp {{{*/ 262 void KML_Polygon::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){ 254 void KML_Polygon::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){/*{{{*/ 263 255 264 256 int i; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Style.cpp ¶
r16546 r18063 19 19 20 20 /*Constructors/destructor/copy*/ 21 /*FUNCTION KML_Style::KML_Style(){{{*/ 22 KML_Style::KML_Style(){ 21 KML_Style::KML_Style(){/*{{{*/ 23 22 24 23 icon =NULL; … … 31 30 } 32 31 /*}}}*/ 33 /*FUNCTION KML_Style::~KML_Style(){{{*/ 34 KML_Style::~KML_Style(){ 32 KML_Style::~KML_Style(){/*{{{*/ 35 33 36 34 if (list) { … … 63 61 64 62 /*Other*/ 65 /*FUNCTION KML_Style::Echo {{{*/ 66 void KML_Style::Echo(){ 63 void KML_Style::Echo(){/*{{{*/ 67 64 68 65 bool flag=true; … … 81 78 } 82 79 /*}}}*/ 83 /*FUNCTION KML_Style::DeepEcho {{{*/ 84 void KML_Style::DeepEcho(){ 80 void KML_Style::DeepEcho(){/*{{{*/ 85 81 86 82 char indent[81]=""; … … 91 87 } 92 88 /*}}}*/ 93 /*FUNCTION KML_Style::DeepEcho {{{*/ 94 void KML_Style::DeepEcho(const char* indent){ 89 void KML_Style::DeepEcho(const char* indent){/*{{{*/ 95 90 96 91 char indent2[81]; … … 131 126 } 132 127 /*}}}*/ 133 /*FUNCTION KML_Style::Write {{{*/ 134 void KML_Style::Write(FILE* filout,const char* indent){ 128 void KML_Style::Write(FILE* filout,const char* indent){/*{{{*/ 135 129 136 130 char indent2[81]; … … 165 159 } 166 160 /*}}}*/ 167 /*FUNCTION KML_Style::Read {{{*/ 168 void KML_Style::Read(FILE* fid,char* kstr){ 161 void KML_Style::Read(FILE* fid,char* kstr){/*{{{*/ 169 162 170 163 char* kstri; -
TabularUnified issm/trunk-jpl/src/c/kml/KML_StyleSelector.cpp ¶
r15068 r18063 17 17 18 18 /*Constructors/destructor/copy*/ 19 /*FUNCTION KML_StyleSelector::KML_StyleSelector(){{{*/ 20 KML_StyleSelector::KML_StyleSelector(){ 19 KML_StyleSelector::KML_StyleSelector(){/*{{{*/ 21 20 22 21 ; … … 24 23 } 25 24 /*}}}*/ 26 /*FUNCTION KML_StyleSelector::~KML_StyleSelector(){{{*/ 27 KML_StyleSelector::~KML_StyleSelector(){ 25 KML_StyleSelector::~KML_StyleSelector(){/*{{{*/ 28 26 29 27 ; … … 33 31 34 32 /*Other*/ 35 /*FUNCTION KML_StyleSelector::Echo {{{*/ 36 void KML_StyleSelector::Echo(){ 33 void KML_StyleSelector::Echo(){/*{{{*/ 37 34 38 35 KML_Object::Echo(); … … 41 38 } 42 39 /*}}}*/ 43 /*FUNCTION KML_StyleSelector::DeepEcho {{{*/ 44 void KML_StyleSelector::DeepEcho(){ 40 void KML_StyleSelector::DeepEcho(){/*{{{*/ 45 41 46 42 char indent[81]=""; … … 51 47 } 52 48 /*}}}*/ 53 /*FUNCTION KML_StyleSelector::DeepEcho {{{*/ 54 void KML_StyleSelector::DeepEcho(const char* indent){ 49 void KML_StyleSelector::DeepEcho(const char* indent){/*{{{*/ 55 50 56 51 KML_Object::DeepEcho(indent); … … 59 54 } 60 55 /*}}}*/ 61 /*FUNCTION KML_StyleSelector::Write {{{*/ 62 void KML_StyleSelector::Write(FILE* filout,const char* indent){ 56 void KML_StyleSelector::Write(FILE* filout,const char* indent){/*{{{*/ 63 57 64 58 KML_Object::Write(filout,indent); … … 67 61 } 68 62 /*}}}*/ 69 /*FUNCTION KML_StyleSelector::Read {{{*/ 70 void KML_StyleSelector::Read(FILE* fid,char* kstr){ 63 void KML_StyleSelector::Read(FILE* fid,char* kstr){/*{{{*/ 71 64 72 65 /* process field within opening and closing tags */ -
TabularUnified issm/trunk-jpl/src/c/kml/KML_SubStyle.cpp ¶
r15068 r18063 17 17 18 18 /*Constructors/destructor/copy*/ 19 /*FUNCTION KML_SubStyle::KML_SubStyle(){{{*/ 20 KML_SubStyle::KML_SubStyle(){ 19 KML_SubStyle::KML_SubStyle(){/*{{{*/ 21 20 22 21 ; … … 24 23 } 25 24 /*}}}*/ 26 /*FUNCTION KML_SubStyle::~KML_SubStyle(){{{*/ 27 KML_SubStyle::~KML_SubStyle(){ 25 KML_SubStyle::~KML_SubStyle(){/*{{{*/ 28 26 29 27 ; … … 33 31 34 32 /*Other*/ 35 /*FUNCTION KML_SubStyle::Echo {{{*/ 36 void KML_SubStyle::Echo(){ 33 void KML_SubStyle::Echo(){/*{{{*/ 37 34 38 35 KML_Object::Echo(); … … 41 38 } 42 39 /*}}}*/ 43 /*FUNCTION KML_SubStyle::DeepEcho {{{*/ 44 void KML_SubStyle::DeepEcho(){ 40 void KML_SubStyle::DeepEcho(){/*{{{*/ 45 41 46 42 char indent[81]=""; … … 51 47 } 52 48 /*}}}*/ 53 /*FUNCTION KML_SubStyle::DeepEcho {{{*/ 54 void KML_SubStyle::DeepEcho(const char* indent){ 49 void KML_SubStyle::DeepEcho(const char* indent){/*{{{*/ 55 50 56 51 KML_Object::DeepEcho(indent); … … 59 54 } 60 55 /*}}}*/ 61 /*FUNCTION KML_SubStyle::Write {{{*/ 62 void KML_SubStyle::Write(FILE* filout,const char* indent){ 56 void KML_SubStyle::Write(FILE* filout,const char* indent){/*{{{*/ 63 57 64 58 KML_Object::Write(filout,indent); … … 67 61 } 68 62 /*}}}*/ 69 /*FUNCTION KML_SubStyle::Read {{{*/ 70 void KML_SubStyle::Read(FILE* fid,char* kstr){ 63 void KML_SubStyle::Read(FILE* fid,char* kstr){/*{{{*/ 71 64 72 65 /* process field within opening and closing tags */ -
TabularUnified issm/trunk-jpl/src/c/kml/KML_Unknown.cpp ¶
r16546 r18063 17 17 18 18 /*Constructors/destructor/copy*/ 19 /*FUNCTION KML_Unknown::KML_Unknown(){{{*/ 20 KML_Unknown::KML_Unknown(){ 19 KML_Unknown::KML_Unknown(){/*{{{*/ 21 20 22 21 name =NULL; … … 25 24 } 26 25 /*}}}*/ 27 /*FUNCTION KML_Unknown::~KML_Unknown(){{{*/ 28 KML_Unknown::~KML_Unknown(){ 26 KML_Unknown::~KML_Unknown(){/*{{{*/ 29 27 30 28 if (name ) xDelete<char>(name); … … 35 33 36 34 /*Other*/ 37 /*FUNCTION KML_Unknown::Echo {{{*/ 38 void KML_Unknown::Echo(){ 35 void KML_Unknown::Echo(){/*{{{*/ 39 36 40 37 bool flag=true; … … 53 50 } 54 51 /*}}}*/ 55 /*FUNCTION KML_Unknown::DeepEcho {{{*/ 56 void KML_Unknown::DeepEcho(){ 52 void KML_Unknown::DeepEcho(){/*{{{*/ 57 53 58 54 char indent[81]=""; … … 63 59 } 64 60 /*}}}*/ 65 /*FUNCTION KML_Unknown::DeepEcho {{{*/ 66 void KML_Unknown::DeepEcho(const char* indent){ 61 void KML_Unknown::DeepEcho(const char* indent){/*{{{*/ 67 62 68 63 char* valuei; … … 93 88 } 94 89 /*}}}*/ 95 /*FUNCTION KML_Unknown::Write {{{*/ 96 void KML_Unknown::Write(FILE* filout,const char* indent){ 90 void KML_Unknown::Write(FILE* filout,const char* indent){/*{{{*/ 97 91 98 92 char* valuei; … … 125 119 } 126 120 /*}}}*/ 127 /*FUNCTION KML_Unknown::Read {{{*/ 128 void KML_Unknown::Read(FILE* fid,char* kstr){ 121 void KML_Unknown::Read(FILE* fid,char* kstr){/*{{{*/ 129 122 130 123 char* kstri; -
TabularUnified issm/trunk-jpl/src/c/modules/GroundinglineMigrationx/GroundinglineMigrationx.cpp ¶
r17941 r18063 56 56 } 57 57 58 /*FUNCTION ContactFSLevelset{{{*/ 59 IssmDouble* ContactFSLevelset(Elements* elements,Vertices* vertices){ 58 IssmDouble* ContactFSLevelset(Elements* elements,Vertices* vertices){ /*{{{*/ 60 59 61 60 Vector<IssmDouble>* vertexgrounded = NULL; … … 108 107 } 109 108 /*}}}*/ 110 /*FUNCTION PotentialUngrounding {{{*/ 111 IssmDouble* PotentialUngrounding(Elements* elements,Vertices* vertices,Parameters* parameters){ 109 IssmDouble* PotentialUngrounding(Elements* elements,Vertices* vertices,Parameters* parameters){ /*{{{*/ 112 110 113 111 int i,numberofvertices; … … 135 133 } 136 134 /*}}}*/ 137 /*FUNCTION PropagateFloatingiceToGroundedNeighbors {{{*/ 138 IssmDouble* PropagateFloatingiceToGroundedNeighbors(Elements* elements,Nodes* nodes,Vertices* vertices,Parameters* parameters,IssmDouble* vertices_potentially_ungrounding){ 135 IssmDouble* PropagateFloatingiceToGroundedNeighbors(Elements* elements,Nodes* nodes,Vertices* vertices,Parameters* parameters,IssmDouble* vertices_potentially_ungrounding){ /*{{{*/ 139 136 int i,analysis_type; 140 137 int nflipped,local_nflipped; -
TabularUnified issm/trunk-jpl/src/c/modules/Krigingx/Krigingx.cpp ¶
r16166 r18063 11 11 #include <gsl/gsl_linalg.h> 12 12 #endif 13 /*FUNCTION Krigingx{{{*/ 14 int Krigingx(double** ppredictions,double **perror,double* obs_x, double* obs_y, double* obs_list, int obs_length,double* x_interp,double* y_interp,int n_interp,Options* options){ 13 int Krigingx(double** ppredictions,double **perror,double* obs_x, double* obs_y, double* obs_list, int obs_length,double* x_interp,double* y_interp,int n_interp,Options* options){/*{{{*/ 15 14 16 15 /*output*/ … … 189 188 return 1; 190 189 }/*}}}*/ 191 /*FUNCTION Krigingxt{{{*/ 192 void* Krigingxt(void* vpthread_handle){ 190 void* Krigingxt(void* vpthread_handle){/*{{{*/ 193 191 194 192 /*gate variables :*/ … … 236 234 return NULL; 237 235 }/*}}}*/ 238 /*FUNCTION NearestNeighbort{{{*/ 239 void* NearestNeighbort(void* vpthread_handle){ 236 void* NearestNeighbort(void* vpthread_handle){/*{{{*/ 240 237 241 238 /*gate variables :*/ … … 282 279 return NULL; 283 280 }/*}}}*/ 284 /*FUNCTION idwt{{{*/ 285 void* idwt(void* vpthread_handle){ 281 void* idwt(void* vpthread_handle){/*{{{*/ 286 282 287 283 /*gate variables :*/ … … 328 324 return NULL; 329 325 }/*}}}*/ 330 /*FUNCTION v4t{{{*/ 331 void* v4t(void* vpthread_handle){ 326 void* v4t(void* vpthread_handle){/*{{{*/ 332 327 333 328 /*gate variables :*/ … … 373 368 return NULL; 374 369 }/*}}}*/ 375 /*FUNCTION Distancest{{{*/ 376 void* Distancest(void* vpthread_handle){ 370 void* Distancest(void* vpthread_handle){/*{{{*/ 377 371 378 372 /*gate variables :*/ -
TabularUnified issm/trunk-jpl/src/c/modules/Krigingx/pKrigingx.cpp ¶
r17668 r18063 9 9 #include "../../shared/io/io.h" 10 10 11 /*FUNCTION pKrigingx{{{*/ 12 int pKrigingx(double** ppredictions,double **perror,double* obs_x, double* obs_y, double* obs_list, int obs_length,double* x_interp,double* y_interp,int n_interp,Options* options){ 11 int pKrigingx(double** ppredictions,double **perror,double* obs_x, double* obs_y, double* obs_list, int obs_length,double* x_interp,double* y_interp,int n_interp,Options* options){/*{{{*/ 13 12 14 13 #ifdef _HAVE_MPI_ -
TabularUnified issm/trunk-jpl/src/c/shared/Elements/DrainageFunctionWaterfraction.cpp ¶
r16816 r18063 7 7 #include "../Exceptions/exceptions.h" 8 8 9 /*FUNCTION IssmDouble DrainageFunctionWaterfraction()*/10 9 IssmDouble DrainageFunctionWaterfraction(IssmDouble waterfraction, IssmDouble dt=0.){ 11 10 /* DrainageFunctionWaterfraction returns how much of the waterfraction is drained per year */ -
TabularUnified issm/trunk-jpl/src/c/shared/Matrix/MatrixUtils.cpp ¶
r17548 r18063 15 15 /*}}}*/ 16 16 17 /*FUNCTION TripleMultiply {{{*/ 18 int TripleMultiply(IssmDouble* a, int nrowa, int ncola, int itrna, IssmDouble* b, int nrowb, int ncolb, int itrnb, IssmDouble* c, int nrowc, int ncolc, int itrnc, IssmDouble* d, int iaddd){ 17 int TripleMultiply(IssmDouble* a, int nrowa, int ncola, int itrna, IssmDouble* b, int nrowb, int ncolb, int itrnb, IssmDouble* c, int nrowc, int ncolc, int itrnc, IssmDouble* d, int iaddd){/*{{{*/ 19 18 /*TripleMultiply Perform triple matrix product a*b*c+d.*/ 20 19 … … 77 76 return 1; 78 77 }/*}}}*/ 79 /*FUNCTION MatrixMuliply {{{*/ 80 int MatrixMultiply(IssmDouble* a, int nrowa, int ncola, int itrna, IssmDouble* b, int nrowb, int ncolb, int itrnb, IssmDouble* c, int iaddc ){ 78 int MatrixMultiply(IssmDouble* a, int nrowa, int ncola, int itrna, IssmDouble* b, int nrowb, int ncolb, int itrnb, IssmDouble* c, int iaddc ){/*{{{*/ 81 79 /*MatrixMultiply Perform matrix multiplication a*b+c.*/ 82 80 int noerr=1; … … 139 137 return noerr; 140 138 }/*}}}*/ 141 /*FUNCTION MatrixInverse {{{*/ 142 int MatrixInverse( IssmDouble* a, int ndim, int nrow, IssmDouble* b, int nvec, IssmDouble* pdet ){ 139 int MatrixInverse( IssmDouble* a, int ndim, int nrow, IssmDouble* b, int nvec, IssmDouble* pdet ){/*{{{*/ 143 140 /* MatrixInverse Perform matrix inversion and linear equation solution. 144 141 … … 312 309 return noerr; 313 310 }/*}}}*/ 314 /*FUNCTION Matrix2x2Determinant(IssmDouble* Adet,IssmDouble* A) {{{*/ 315 void Matrix2x2Determinant(IssmDouble* Adet,IssmDouble* A){ 311 void Matrix2x2Determinant(IssmDouble* Adet,IssmDouble* A){/*{{{*/ 316 312 /*Compute determinant of a 2x2 matrix*/ 317 313 … … 320 316 } 321 317 /*}}}*/ 322 /*FUNCTION Matrix2x2Invert(IssmDouble* Ainv,IssmDouble* A) {{{*/ 323 void Matrix2x2Invert(IssmDouble* Ainv,IssmDouble* A){ 318 void Matrix2x2Invert(IssmDouble* Ainv,IssmDouble* A){/*{{{*/ 324 319 325 320 /*Intermediaries*/ … … 337 332 338 333 }/*}}}*/ 339 /*FUNCTION Matrix3x3Determinant(IssmDouble* Adet,IssmDouble* A) {{{*/ 340 void Matrix3x3Determinant(IssmDouble* Adet,IssmDouble* A){ 334 void Matrix3x3Determinant(IssmDouble* Adet,IssmDouble* A){/*{{{*/ 341 335 /*Compute determinant of a 3x3 matrix*/ 342 336 … … 345 339 } 346 340 /*}}}*/ 347 /*FUNCTION Matrix3x3Invert(IssmDouble* Ainv,IssmDouble* A) {{{*/ 348 void Matrix3x3Invert(IssmDouble* Ainv,IssmDouble* A){ 341 void Matrix3x3Invert(IssmDouble* Ainv,IssmDouble* A){/*{{{*/ 349 342 350 343 /*Intermediaries*/ … … 367 360 368 361 }/*}}}*/ 369 /*FUNCTION Matrix3x3Solve(IssmDouble* X,IssmDouble* A,IssmDouble* B) {{{*/ 370 void Matrix3x3Solve(IssmDouble* X,IssmDouble* A,IssmDouble* B){ 362 void Matrix3x3Solve(IssmDouble* X,IssmDouble* A,IssmDouble* B){/*{{{*/ 371 363 372 364 IssmDouble Ainv[3][3]; … … 376 368 377 369 }/*}}}*/ 378 /*FUNCTION Matrix4x4Solve(IssmDouble* X,IssmDouble* A,IssmDouble *B) {{{*/ 379 void Matrix4x4Solve(IssmDouble* X,IssmDouble* A,IssmDouble *B){ 370 void Matrix4x4Solve(IssmDouble* X,IssmDouble* A,IssmDouble *B){/*{{{*/ 380 371 _error_("STOP"); 381 372 }/*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/shared/Numerics/GaussPoints.cpp ¶
r17865 r18063 9 9 10 10 /*General Gauss points*/ 11 /*FUNCTION GaussLegendreLinear {{{*/ 12 void GaussLegendreLinear( IssmPDouble** pxgaus, IssmPDouble** pxwgt, int ngaus){ 11 void GaussLegendreLinear( IssmPDouble** pxgaus, IssmPDouble** pxwgt, int ngaus){/*{{{*/ 13 12 /* Gauss-Legendre quadrature points. 14 13 … … 93 92 } 94 93 }/*}}}*/ 95 /*FUNCTION GaussLegendreTria{{{*/ 96 void GaussLegendreTria( int* pngaus, IssmDouble** pl1, IssmDouble** pl2, IssmDouble** pl3, IssmDouble** pwgt, int iord ) { 94 void GaussLegendreTria( int* pngaus, IssmDouble** pl1, IssmDouble** pl2, IssmDouble** pl3, IssmDouble** pwgt, int iord ) {/*{{{*/ 97 95 /*Gauss quadrature points for the triangle. 98 96 … … 1210 1208 return; 1211 1209 }/*}}}*/ 1212 /*FUNCTION GaussLegendreTetra{{{*/ 1213 void GaussLegendreTetra( int* pngaus, IssmDouble** pl1, IssmDouble** pl2, IssmDouble** pl3, IssmDouble** pl4, IssmDouble** pwgt, int iord ) { 1210 void GaussLegendreTetra( int* pngaus, IssmDouble** pl1, IssmDouble** pl2, IssmDouble** pl3, IssmDouble** pl4, IssmDouble** pwgt, int iord ) {/*{{{*/ 1214 1211 /* Gauss quadrature points for the tetrahedron. 1215 1212 … … 1473 1470 } 1474 1471 }/*}}}*/ 1475 /*FUNCTION GaussLobatto{{{*/ 1476 void GaussLobatto( IssmPDouble** pxgaus, IssmPDouble** pxwgt, int ngaus ) { 1472 void GaussLobatto( IssmPDouble** pxgaus, IssmPDouble** pxwgt, int ngaus ) {/*{{{*/ 1477 1473 /*Gauss-Lobatto quadrature points. 1478 1474 … … 1575 1571 1576 1572 }/*}}}*/ 1577 /*FUNCTION GaussRecur{{{*/ 1578 void GaussRecur( IssmPDouble* zero, IssmPDouble* weight, int n, IssmPDouble* alpha, IssmPDouble* beta ) { 1573 void GaussRecur( IssmPDouble* zero, IssmPDouble* weight, int n, IssmPDouble* alpha, IssmPDouble* beta ) {/*{{{*/ 1579 1574 /*Gauss quadrature points from recursion coefficients. 1580 1575 * … … 1698 1693 1699 1694 /*Element Gauss points TO BE REMOVED*/ 1700 /*FUNCTION gaussQuad{{{*/ 1701 void gaussQuad( IssmPDouble** pxgaus, IssmPDouble** pxwgt, IssmPDouble** pegaus, IssmPDouble** pewgt, int nigaus, int njgaus ) { 1695 void gaussQuad( IssmPDouble** pxgaus, IssmPDouble** pxwgt, IssmPDouble** pegaus, IssmPDouble** pewgt, int nigaus, int njgaus ) {/*{{{*/ 1702 1696 /*Gauss quadrature points for the quadrilaterial.*/ 1703 1697 … … 1706 1700 GaussLegendreLinear(pegaus, pewgt, njgaus); 1707 1701 }/*}}}*/ 1708 /*FUNCTION gaussHexa{{{*/ 1709 void gaussHexa( IssmPDouble** pxgaus, IssmPDouble** pxwgt, IssmPDouble** pegaus, IssmPDouble** pewgt, IssmPDouble** pzgaus, IssmPDouble ** pzwgt, int nigaus, int njgaus, int nkgaus ) { 1702 void gaussHexa( IssmPDouble** pxgaus, IssmPDouble** pxwgt, IssmPDouble** pegaus, IssmPDouble** pewgt, IssmPDouble** pzgaus, IssmPDouble ** pzwgt, int nigaus, int njgaus, int nkgaus ) {/*{{{*/ 1710 1703 /*Gauss quadrature points for the hexahedron.*/ 1711 1704 -
TabularUnified issm/trunk-jpl/src/c/shared/Numerics/Synchronize.sh ¶
r14914 r18063 116 116 /*Verbosity Setup*/ 117 117 static int verbositylevel=-1; 118 /*FUNCTION SetVerbosityLevel {{{*/ 119 void SetVerbosityLevel(int level){ 118 void SetVerbosityLevel(int level){/*{{{*/ 120 119 121 120 if(level<0) _error_("vebosity level should be a positive integer (user provided " << level << ")"); … … 124 123 125 124 }/*}}}*/ 126 /*FUNCTION GetVerbosityLevel {{{*/ 127 int GetVerbosityLevel(void){ 125 int GetVerbosityLevel(void){/*{{{*/ 128 126 _assert_(verbositylevel>=0); 129 127 return verbositylevel; -
TabularUnified issm/trunk-jpl/src/c/shared/Numerics/Verbosity.cpp ¶
r14914 r18063 31 31 /*Verbosity Setup*/ 32 32 static int verbositylevel=-1; 33 /*FUNCTION SetVerbosityLevel {{{*/ 34 void SetVerbosityLevel(int level){ 33 void SetVerbosityLevel(int level){/*{{{*/ 35 34 36 35 if(level<0) _error_("vebosity level should be a positive integer (user provided " << level << ")"); … … 39 38 40 39 }/*}}}*/ 41 /*FUNCTION GetVerbosityLevel {{{*/ 42 int GetVerbosityLevel(void){ 40 int GetVerbosityLevel(void){/*{{{*/ 43 41 _assert_(verbositylevel>=0); 44 42 return verbositylevel; -
TabularUnified issm/trunk-jpl/src/c/shared/TriMesh/TriMeshUtils.cpp ¶
r16521 r18063 10 10 11 11 #define RIFTPENALTYPAIRSWIDTH 8 12 /*FUNCTION IsGridOnRift{{{*/ 13 int IsGridOnRift(int* riftsegments, int nriftsegs, int node){ 12 int IsGridOnRift(int* riftsegments, int nriftsegs, int node){/*{{{*/ 14 13 15 14 /*Does this node belong to 4 elements, or just 2? If it belongs to 4 elements, it is inside a rift, … … 33 32 } 34 33 }/*}}}*/ 35 /*FUNCTION GridElementsList{{{*/ 36 int GridElementsList(int** pGridElements, int* pNumGridElements,int node,int* index,int nel){ 34 int GridElementsList(int** pGridElements, int* pNumGridElements,int node,int* index,int nel){/*{{{*/ 37 35 38 36 /*From a node, recover all the elements that are connected to it: */ … … 87 85 return noerr; 88 86 }/*}}}*/ 89 /*FUNCTION IsNeighbor{{{*/ 90 int IsNeighbor(int el1,int el2,int* index){ 87 int IsNeighbor(int el1,int el2,int* index){/*{{{*/ 91 88 /*From a triangulation held in index, figure out if elements 1 and 2 have two nodes in common: */ 92 89 int i,j; … … 104 101 } 105 102 }/*}}}*/ 106 /*FUNCTION IsOnRift{{{*/ 107 int IsOnRift(int el,int nriftsegs,int* riftsegments){ 103 int IsOnRift(int el,int nriftsegs,int* riftsegments){/*{{{*/ 108 104 /*From a list of elements segments, figure out if el belongs to it: */ 109 105 int i; … … 115 111 return 0; 116 112 }/*}}}*/ 117 /*FUNCTION RiftSegmentsFromSegments{{{*/ 118 void RiftSegmentsFromSegments(int* pnriftsegs, int** priftsegments, int nel,int* index,int nsegs,int* segments){ 113 void RiftSegmentsFromSegments(int* pnriftsegs, int** priftsegments, int nel,int* index,int nsegs,int* segments){/*{{{*/ 119 114 120 115 int i,counter; … … 181 176 *pnriftsegs=nriftsegs; 182 177 }/*}}}*/ 183 /*FUNCTION DetermineGridElementListOnOneSideOfRift{{{*/ 184 int DetermineGridElementListOnOneSideOfRift(int* pNumGridElementListOnOneSideOfRift, int** pGridElementListOnOneSideOfRift, int segmentnumber, int nriftsegs, int* riftsegments, int node,int* index,int nel){ 178 int DetermineGridElementListOnOneSideOfRift(int* pNumGridElementListOnOneSideOfRift, int** pGridElementListOnOneSideOfRift, int segmentnumber, int nriftsegs, int* riftsegments, int node,int* index,int nel){/*{{{*/ 185 179 186 180 int noerr=1; … … 245 239 return noerr; 246 240 }/*}}}*/ 247 /*FUNCTION UpdateSegments{{{*/ 248 int UpdateSegments(int** psegments,int** psegmentmarkerlist, int* pnsegs,int* index, double* x,double* y,int* riftsegments,int nriftsegs,int nods,int nel){ 241 int UpdateSegments(int** psegments,int** psegmentmarkerlist, int* pnsegs,int* index, double* x,double* y,int* riftsegments,int nriftsegs,int nods,int nel){/*{{{*/ 249 242 250 243 int noerr=1; … … 344 337 return noerr; 345 338 }/*}}}*/ 346 /*FUNCTION FindElement{{{*/ 347 int FindElement(int A,int B,int* index,int nel){ 339 int FindElement(int A,int B,int* index,int nel){/*{{{*/ 348 340 349 341 int el=-1; … … 356 348 return el; 357 349 }/*}}}*/ 358 /*FUNCTION SplitRiftSegments{{{*/ 359 int SplitRiftSegments(int** psegments,int** psegmentmarkerlist, int* pnumsegs, int* pnumrifts,int** priftsnumsegs,int*** priftssegments,int numrifts,int nods,int nel){ 350 int SplitRiftSegments(int** psegments,int** psegmentmarkerlist, int* pnumsegs, int* pnumrifts,int** priftsnumsegs,int*** priftssegments,int numrifts,int nods,int nel){/*{{{*/ 360 351 361 352 /*Using segment markers, wring out the rift segments from the segments. Rift markers are … … 443 434 return noerr; 444 435 }/*}}}*/ 445 /*FUNCTION PairRiftElements{{{*/ 446 int PairRiftElements(int** priftsnumpairs,int*** priftspairs,int numrifts,int* riftsnumsegments,int** riftssegments,double* x,double* y){ 436 int PairRiftElements(int** priftsnumpairs,int*** priftspairs,int numrifts,int* riftsnumsegments,int** riftssegments,double* x,double* y){/*{{{*/ 447 437 448 438 int noerr=1; … … 490 480 return noerr; 491 481 }/*}}}*/ 492 /*FUNCTION IsRiftPresent{{{*/ 493 int IsRiftPresent(int* priftflag,int* pnumrifts,int* segmentmarkerlist,int nsegs){ 482 int IsRiftPresent(int* priftflag,int* pnumrifts,int* segmentmarkerlist,int nsegs){/*{{{*/ 494 483 495 484 int i; … … 517 506 return noerr; 518 507 }/*}}}*/ 519 /*FUNCTION OrderRifts{{{*/ 520 int OrderRifts(int** priftstips,int** riftssegments,int** riftspairs,int numrifts,int* riftsnumsegments,double* x,double* y,int nods,int nels){ 508 int OrderRifts(int** priftstips,int** riftssegments,int** riftspairs,int numrifts,int* riftsnumsegments,double* x,double* y,int nods,int nels){/*{{{*/ 521 509 522 510 int noerr=1; … … 672 660 return noerr; 673 661 }/*}}}*/ 674 /*FUNCTION PenaltyPairs{{{*/ 675 int PenaltyPairs(double*** priftspenaltypairs,int** priftsnumpenaltypairs,int numrifts,int** riftssegments, 662 int PenaltyPairs(double*** priftspenaltypairs,int** priftsnumpenaltypairs,int numrifts,int** riftssegments,/*{{{*/ 676 663 int* riftsnumsegs,int** riftspairs,int* riftstips,double* x,double* y){ 677 664 -
TabularUnified issm/trunk-jpl/src/c/toolkits/issm/IssmMpiDenseMat.h ¶
r16415 r18063 45 45 46 46 /*IssmMpiDenseMat constructors, destructors*/ 47 /*FUNCTION IssmMpiDenseMat(){{{*/ 48 IssmMpiDenseMat(){ 47 IssmMpiDenseMat(){/*{{{*/ 49 48 this->M=0; 50 49 this->N=0; … … 54 53 } 55 54 /*}}}*/ 56 /*FUNCTION IssmMpiDenseMat(int M,int N){{{*/ 57 IssmMpiDenseMat(int Min,int Nin){ 55 IssmMpiDenseMat(int Min,int Nin){/*{{{*/ 58 56 this->Init(Min,Nin); 59 57 } 60 58 /*}}}*/ 61 /*FUNCTION IssmMpiDenseMat(int M,int N, doubletype sparsity){{{*/ 62 IssmMpiDenseMat(int pM,int pN, doubletype sparsity){ 59 IssmMpiDenseMat(int pM,int pN, doubletype sparsity){/*{{{*/ 63 60 /*no sparsity involved here, we are fully dense, so just use the previous constructor: */ 64 61 this->Init(pM,pN); 65 62 } 66 63 /*}}}*/ 67 /*FUNCTION IssmMpiDenseMat(int m,int n,int M,int N,int* d_nnz,int* o_nnz){{{*/ 68 IssmMpiDenseMat(int min,int nin,int Min,int Nin,int* d_nnz,int* o_nnz){ 64 IssmMpiDenseMat(int min,int nin,int Min,int Nin,int* d_nnz,int* o_nnz){/*{{{*/ 69 65 /*not needed, we are fully dense!: */ 70 66 … … 82 78 } 83 79 /*}}}*/ 84 /*FUNCTION IssmMpiDenseMat(doubletype* serial_mat,int M,int N,doubletype sparsity){{{*/ 85 IssmMpiDenseMat(doubletype* serial_mat,int Min,int Nin,doubletype sparsity){ 80 IssmMpiDenseMat(doubletype* serial_mat,int Min,int Nin,doubletype sparsity){/*{{{*/ 86 81 87 82 /*Here, we assume that the serial_mat is local to the local cpu, and that it has … … 99 94 } 100 95 /*}}}*/ 101 /*FUNCTION IssmMpiDenseMat(int M,int N, int connectivity, int numberofdofspernode){{{*/ 102 IssmMpiDenseMat(int pM,int pN, int connectivity,int numberofdofspernode){ 96 IssmMpiDenseMat(int pM,int pN, int connectivity,int numberofdofspernode){/*{{{*/ 103 97 /*not needed, we are fully dense!: */ 104 98 this->Init(pM,pN); 105 99 } 106 100 /*}}}*/ 107 /*FUNCTION ~IssmMpiDenseMat(){{{*/ 108 ~IssmMpiDenseMat(){ 101 ~IssmMpiDenseMat(){/*{{{*/ 109 102 xDelete<doubletype>(this->matrix); 110 103 M=0; … … 114 107 } 115 108 /*}}}*/ 116 /*FUNCTION IssmMpiDenseMat::Init(int Min,int Nin){{{*/ 117 void Init(int Min,int Nin){ 109 void Init(int Min,int Nin){/*{{{*/ 118 110 119 111 this->buckets=new DataSet(); … … 134 126 135 127 /*IssmMpiDenseMat specific routines */ 136 /*FUNCTION Echo{{{*/ 137 void Echo(void){ 128 void Echo(void){/*{{{*/ 138 129 139 130 int my_rank; … … 158 149 } 159 150 /*}}}*/ 160 /*FUNCTION Assemble{{{*/ 161 void Assemble(){ 151 void Assemble(){/*{{{*/ 162 152 163 153 int i,j; … … 313 303 } 314 304 /*}}}*/ 315 /*FUNCTION Norm{{{*/ 316 doubletype Norm(NormMode mode){ 305 doubletype Norm(NormMode mode){/*{{{*/ 317 306 318 307 doubletype norm,local_norm; … … 352 341 } 353 342 /*}}}*/ 354 /*FUNCTION GetSize{{{*/ 355 void GetSize(int* pM,int* pN){ 343 void GetSize(int* pM,int* pN){/*{{{*/ 356 344 *pM=M; 357 345 *pN=N; 358 346 } 359 347 /*}}}*/ 360 /*FUNCTION GetLocalSize{{{*/ 361 void GetLocalSize(int* pM,int* pN){ 348 void GetLocalSize(int* pM,int* pN){/*{{{*/ 362 349 *pM=m; 363 350 *pN=N; 364 351 } 365 352 /*}}}*/ 366 /*FUNCTION MatMult{{{*/ 367 void MatMult(IssmAbsVec<doubletype>* Xin,IssmAbsVec<doubletype>* AXin){ 353 void MatMult(IssmAbsVec<doubletype>* Xin,IssmAbsVec<doubletype>* AXin){/*{{{*/ 368 354 369 355 int i,j; … … 392 378 } 393 379 /*}}}*/ 394 /*FUNCTION Duplicate{{{*/ 395 IssmMpiDenseMat<doubletype>* Duplicate(void){ 380 IssmMpiDenseMat<doubletype>* Duplicate(void){/*{{{*/ 396 381 397 382 IssmMpiDenseMat<doubletype>* dup=new IssmMpiDenseMat<doubletype>(this->matrix,this->M,this->N,0); … … 400 385 } 401 386 /*}}}*/ 402 /*FUNCTION ToSerial{{{*/ 403 doubletype* ToSerial(void){ 387 doubletype* ToSerial(void){/*{{{*/ 404 388 _error_("not supported yet!"); 405 389 } 406 390 /*}}}*/ 407 /*FUNCTION SetValues{{{*/ 408 void SetValues(int min,int* idxm,int nin,int* idxn,doubletype* values,InsMode mode){ 391 void SetValues(int min,int* idxm,int nin,int* idxn,doubletype* values,InsMode mode){/*{{{*/ 409 392 410 393 /*we need to store all the values we collect here in order to Assemble later. … … 417 400 } 418 401 /*}}}*/ 419 /*FUNCTION Convert{{{*/ 420 void Convert(MatrixType type){ 402 void Convert(MatrixType type){/*{{{*/ 421 403 _error_("not supported yet!"); 422 404 } 423 405 /*}}}*/ 424 /*FUNCTION BucketsBuildScatterBuffers{{{*/ 425 void BucketsBuildScatterBuffers(int** pnumvalues_forcpu,int** prow_indices_forcpu,int** pcol_indices_forcpu,doubletype** pvalues_forcpu,int** pmodes_forcpu,DataSet** bucketsforcpu,int num_procs){ 406 void BucketsBuildScatterBuffers(int** pnumvalues_forcpu,int** prow_indices_forcpu,int** pcol_indices_forcpu,doubletype** pvalues_forcpu,int** pmodes_forcpu,DataSet** bucketsforcpu,int num_procs){/*{{{*/ 426 407 427 408 /*intermediary: */ -
TabularUnified issm/trunk-jpl/src/c/toolkits/issm/IssmMpiSparseMat.h ¶
r17924 r18063 45 45 DataSet* buckets; /*here, we store buckets of values that we will Assemble into a global matrix.*/ 46 46 /*IssmMpiSparseMat constructors, destructors*/ 47 /*FUNCTION IssmMpiSparseMat(){{{*/ 48 IssmMpiSparseMat(){ 47 IssmMpiSparseMat(){/*{{{*/ 49 48 this->M=0; 50 49 this->N=0; … … 54 53 } 55 54 /*}}}*/ 56 /*FUNCTION IssmMpiSparseMat(int M,int N){{{*/ 57 IssmMpiSparseMat(int Min,int Nin){ 55 IssmMpiSparseMat(int Min,int Nin){/*{{{*/ 58 56 this->Init(Min,Nin); 59 57 } 60 58 /*}}}*/ 61 /*FUNCTION IssmMpiSparseMat(int M,int N, doubletype sparsity){{{*/ 62 IssmMpiSparseMat(int pM,int pN, doubletype sparsity){ 59 IssmMpiSparseMat(int pM,int pN, doubletype sparsity){/*{{{*/ 63 60 /*no sparsity involved here, the sparsity pattern is resolve during the assemble phase: */ 64 61 this->Init(pM,pN); 65 62 } 66 63 /*}}}*/ 67 /*FUNCTION IssmMpiSparseMat(int m,int n,int M,int N,int* d_nnz,int* o_nnz){{{*/ 68 IssmMpiSparseMat(int min,int nin,int Min,int Nin,int* d_nnz,int* o_nnz){ 64 IssmMpiSparseMat(int min,int nin,int Min,int Nin,int* d_nnz,int* o_nnz){/*{{{*/ 69 65 70 66 int i; … … 89 85 } 90 86 /*}}}*/ 91 /*FUNCTION IssmMpiSparseMat(int M,int N, int connectivity, int numberofdofspernode){{{*/ 92 IssmMpiSparseMat(int pM,int pN, int connectivity,int numberofdofspernode){ 87 IssmMpiSparseMat(int pM,int pN, int connectivity,int numberofdofspernode){/*{{{*/ 93 88 /*this is not needed, sparsity pattern is resolved at assemble phase: */ 94 89 this->Init(pM,pN); 95 90 } 96 91 /*}}}*/ 97 /*FUNCTION IssmMpiSparseMat::Init(int Min,int Nin){{{*/ 98 void Init(int Min,int Nin){ 92 void Init(int Min,int Nin){/*{{{*/ 99 93 100 94 int i; … … 120 114 } 121 115 /*}}}*/ 122 /*FUNCTION ~IssmMpiSparseMat(){{{*/ 123 ~IssmMpiSparseMat(){ 116 ~IssmMpiSparseMat(){/*{{{*/ 124 117 int i; 125 118 … … 138 131 139 132 /*IssmMpiSparseMat specific routines */ 140 /*FUNCTION Echo{{{*/ 141 void Echo(void){ 133 void Echo(void){/*{{{*/ 142 134 143 135 /*Do a synchronized dump across all the rows: */ … … 157 149 } 158 150 /*}}}*/ 159 /*FUNCTION Assemble{{{*/ 160 void Assemble(){ 151 void Assemble(){/*{{{*/ 161 152 162 153 int i,j; … … 369 360 } 370 361 /*}}}*/ 371 /*FUNCTION Norm{{{*/ 372 doubletype Norm(NormMode mode){ 362 doubletype Norm(NormMode mode){/*{{{*/ 373 363 374 364 doubletype norm,local_norm; … … 402 392 } 403 393 /*}}}*/ 404 /*FUNCTION GetSize{{{*/ 405 void GetSize(int* pM,int* pN){ 394 void GetSize(int* pM,int* pN){/*{{{*/ 406 395 *pM=M; 407 396 *pN=N; 408 397 } 409 398 /*}}}*/ 410 /*FUNCTION GetLocalSize{{{*/ 411 void GetLocalSize(int* pM,int* pN){ 399 void GetLocalSize(int* pM,int* pN){/*{{{*/ 412 400 *pM=m; 413 401 *pN=N; 414 402 } 415 403 /*}}}*/ 416 /*FUNCTION MatMult{{{*/ 417 void MatMult(IssmAbsVec<doubletype>* Xin,IssmAbsVec<doubletype>* AXin){ 404 void MatMult(IssmAbsVec<doubletype>* Xin,IssmAbsVec<doubletype>* AXin){/*{{{*/ 418 405 419 406 /*A check on the types: */ … … 437 424 } 438 425 /*}}}*/ 439 /*FUNCTION Duplicate{{{*/ 440 IssmMpiSparseMat<doubletype>* Duplicate(void){ 426 IssmMpiSparseMat<doubletype>* Duplicate(void){/*{{{*/ 441 427 442 428 _error_("not supported yet!"); … … 444 430 } 445 431 /*}}}*/ 446 /*FUNCTION ToSerial{{{*/ 447 doubletype* ToSerial(void){ 432 doubletype* ToSerial(void){/*{{{*/ 448 433 _error_("not supported yet!"); 449 434 } 450 435 /*}}}*/ 451 /*FUNCTION SetValues{{{*/ 452 void SetValues(int min,int* idxm,int nin,int* idxn,doubletype* values,InsMode mode){ 436 void SetValues(int min,int* idxm,int nin,int* idxn,doubletype* values,InsMode mode){/*{{{*/ 453 437 454 438 /*we need to store all the values we collect here in order to Assemble later. … … 461 445 } 462 446 /*}}}*/ 463 /*FUNCTION Convert{{{*/ 464 void Convert(MatrixType type){ 447 void Convert(MatrixType type){/*{{{*/ 465 448 _error_("not supported yet!"); 466 449 } 467 450 /*}}}*/ 468 /*FUNCTION BucketsBuildScatterBuffers{{{*/ 469 void BucketsBuildScatterBuffers(int** pnumvalues_forcpu,int** prow_indices_forcpu,int** pcol_indices_forcpu,doubletype** pvalues_forcpu,int** pmodes_forcpu,DataSet** bucketsforcpu,int num_procs){ 451 void BucketsBuildScatterBuffers(int** pnumvalues_forcpu,int** prow_indices_forcpu,int** pcol_indices_forcpu,doubletype** pvalues_forcpu,int** pmodes_forcpu,DataSet** bucketsforcpu,int num_procs){/*{{{*/ 470 452 471 453 /*intermediary: */ -
TabularUnified issm/trunk-jpl/src/c/toolkits/issm/IssmMpiVec.h ¶
r16158 r18063 42 42 43 43 /*IssmMpiVec constructors, destructors*/ 44 /*FUNCTION IssmMpiVec(){{{*/ 45 IssmMpiVec(){ 44 IssmMpiVec(){/*{{{*/ 46 45 47 46 this->M=0; … … 51 50 } 52 51 /*}}}*/ 53 /*FUNCTION IssmMpiVec(int M){{{*/ 54 IssmMpiVec(int Min){ 52 IssmMpiVec(int Min){/*{{{*/ 55 53 this->Init(Min,false); 56 54 } 57 55 /*}}}*/ 58 /*FUNCTION IssmMpiVec(int m,int M){{{*/ 59 IssmMpiVec(int min, int Min){ 56 IssmMpiVec(int min, int Min){/*{{{*/ 60 57 this->Init(min,true); 61 58 } 62 59 /*}}}*/ 63 /*FUNCTION IssmMpiVec(int M,bool fromlocalsize){{{*/ 64 IssmMpiVec(int Min, bool fromlocalsize){ 60 IssmMpiVec(int Min, bool fromlocalsize){/*{{{*/ 65 61 this->Init(Min,fromlocalsize); 66 62 } 67 63 /*}}}*/ 68 /*FUNCTION IssmMpiVec(doubletype* serial_vec,int M){{{*/ 69 IssmMpiVec(doubletype* buffer,int Min){ 64 IssmMpiVec(doubletype* buffer,int Min){/*{{{*/ 70 65 71 66 this->Init(Min,false); … … 77 72 } 78 73 /*}}}*/ 79 /*FUNCTION IssmMpiVec(doubletype* serial_vec,int M,int m){{{*/ 80 IssmMpiVec(doubletype* buffer,int Min,int min){ 74 IssmMpiVec(doubletype* buffer,int Min,int min){/*{{{*/ 81 75 82 76 this->vector=NULL; … … 91 85 } 92 86 /*}}}*/ 93 /*FUNCTION IssmMpiVec::Init(int Min,bool fromlocalsize){{{*/ 94 void Init(int Min,bool fromlocalsize){ 87 void Init(int Min,bool fromlocalsize){/*{{{*/ 95 88 96 89 this->buckets=new DataSet(); … … 112 105 } 113 106 /*}}}*/ 114 /*FUNCTION ~IssmMpiVec(){{{*/ 115 ~IssmMpiVec(){ 107 ~IssmMpiVec(){/*{{{*/ 116 108 xDelete<doubletype>(this->vector); 117 109 this->M=0; … … 122 114 123 115 /*IssmMpiVec specific routines*/ 124 /*FUNCTION Echo{{{*/ 125 void Echo(void){ 116 void Echo(void){/*{{{*/ 126 117 127 118 int i,j; … … 140 131 } 141 132 /*}}}*/ 142 /*FUNCTION Assemble{{{*/ 143 void Assemble(){ 133 void Assemble(){/*{{{*/ 144 134 145 135 int i,j; … … 285 275 } 286 276 /*}}}*/ 287 /*FUNCTION SetValues{{{*/ 288 void SetValues(int ssize, int* list, doubletype* values, InsMode mode){ 277 void SetValues(int ssize, int* list, doubletype* values, InsMode mode){/*{{{*/ 289 278 290 279 /*we need to store all the values we collect here in order to Assemble later. … … 297 286 } 298 287 /*}}}*/ 299 /*FUNCTION SetValue{{{*/ 300 void SetValue(int dof, doubletype value, InsMode mode){ 288 void SetValue(int dof, doubletype value, InsMode mode){/*{{{*/ 301 289 302 290 /*we need to store the value we collect here in order to Assemble later. … … 308 296 } 309 297 /*}}}*/ 310 /*FUNCTION GetValue{{{*/ 311 void GetValue(doubletype* pvalue,int dof){ 298 void GetValue(doubletype* pvalue,int dof){/*{{{*/ 312 299 _error_("Get value on a MpiVec vector not implemented yet!"); 313 300 } 314 301 /*}}}*/ 315 /*FUNCTION GetSize{{{*/ 316 void GetSize(int* pM){ 302 void GetSize(int* pM){/*{{{*/ 317 303 318 304 *pM=this->M; … … 320 306 } 321 307 /*}}}*/ 322 /*FUNCTION GetLocalSize{{{*/ 323 void GetLocalSize(int* pM){ 308 void GetLocalSize(int* pM){/*{{{*/ 324 309 325 310 *pM=this->m; … … 327 312 } 328 313 /*}}}*/ 329 /*FUNCTION Duplicate{{{*/ 330 IssmMpiVec<doubletype>* Duplicate(void){ 314 IssmMpiVec<doubletype>* Duplicate(void){/*{{{*/ 331 315 332 316 return new IssmMpiVec<doubletype>(this->vector,this->M,this->m); … … 334 318 } 335 319 /*}}}*/ 336 /*FUNCTION Set{{{*/ 337 void Set(doubletype value){ 320 void Set(doubletype value){/*{{{*/ 338 321 339 322 int i; … … 342 325 } 343 326 /*}}}*/ 344 /*FUNCTION AXPY{{{*/ 345 void AXPY(IssmAbsVec<doubletype>* Xin, doubletype a){ 327 void AXPY(IssmAbsVec<doubletype>* Xin, doubletype a){/*{{{*/ 346 328 347 329 int i; … … 357 339 } 358 340 /*}}}*/ 359 /*FUNCTION AYPX{{{*/ 360 void AYPX(IssmAbsVec<doubletype>* Xin, doubletype a){ 341 void AYPX(IssmAbsVec<doubletype>* Xin, doubletype a){/*{{{*/ 361 342 int i; 362 343 … … 371 352 } 372 353 /*}}}*/ 373 /*FUNCTION ToMPISerial{{{*/ 374 doubletype* ToMPISerial(void){ 354 doubletype* ToMPISerial(void){/*{{{*/ 375 355 376 356 /*communicator info: */ … … 416 396 } 417 397 /*}}}*/ 418 /*FUNCTION Copy{{{*/ 419 void Copy(IssmAbsVec<doubletype>* toin){ 398 void Copy(IssmAbsVec<doubletype>* toin){/*{{{*/ 420 399 421 400 int i; … … 431 410 } 432 411 /*}}}*/ 433 /*FUNCTION Norm{{{*/ 434 doubletype Norm(NormMode mode){ 412 doubletype Norm(NormMode mode){/*{{{*/ 435 413 436 414 doubletype local_norm; … … 459 437 } 460 438 /*}}}*/ 461 /*FUNCTION Scale{{{*/ 462 void Scale(doubletype scale_factor){ 439 void Scale(doubletype scale_factor){/*{{{*/ 463 440 464 441 int i; … … 467 444 } 468 445 /*}}}*/ 469 /*FUNCTION Dot{{{*/ 470 doubletype Dot(IssmAbsVec<doubletype>* inputin){ 446 doubletype Dot(IssmAbsVec<doubletype>* inputin){/*{{{*/ 471 447 472 448 int i; … … 488 464 } 489 465 /*}}}*/ 490 /*FUNCTION PointwiseDivide{{{*/ 491 void PointwiseDivide(IssmAbsVec<doubletype>* xin,IssmAbsVec<doubletype>* yin){ 466 void PointwiseDivide(IssmAbsVec<doubletype>* xin,IssmAbsVec<doubletype>* yin){/*{{{*/ 492 467 493 468 int i; … … 504 479 } 505 480 /*}}}*/ 506 /*FUNCTION BucketsBuildScatterBuffers{{{*/ 507 void BucketsBuildScatterBuffers(int** pnumvalues_forcpu,int** prow_indices_forcpu,doubletype** pvalues_forcpu,int** pmodes_forcpu,DataSet** bucketsforcpu,int num_procs){ 481 void BucketsBuildScatterBuffers(int** pnumvalues_forcpu,int** prow_indices_forcpu,doubletype** pvalues_forcpu,int** pmodes_forcpu,DataSet** bucketsforcpu,int num_procs){/*{{{*/ 508 482 509 483 /*intermediary: */ -
TabularUnified issm/trunk-jpl/src/c/toolkits/issm/IssmSeqVec.h ¶
r15358 r18063 37 37 38 38 /*IssmSeqVec constructors, destructors*/ 39 /*FUNCTION IssmSeqVec(){{{*/ 40 IssmSeqVec(){ 39 IssmSeqVec(){/*{{{*/ 41 40 42 41 this->M=0; … … 44 43 } 45 44 /*}}}*/ 46 /*FUNCTION IssmSeqVec(int M){{{*/ 47 IssmSeqVec(int pM){ 45 IssmSeqVec(int pM){/*{{{*/ 48 46 49 47 this->M=pM; … … 52 50 } 53 51 /*}}}*/ 54 /*FUNCTION IssmSeqVec(int m,int M){{{*/ 55 IssmSeqVec(int pm,int pM){ 52 IssmSeqVec(int pm,int pM){/*{{{*/ 56 53 57 54 this->M=pM; … … 60 57 } 61 58 /*}}}*/ 62 /*FUNCTION IssmSeqVec(int M,bool fromlocalsize){{{*/ 63 IssmSeqVec(int pM,bool fromlocalsize){ 59 IssmSeqVec(int pM,bool fromlocalsize){/*{{{*/ 64 60 65 61 this->M=pM; … … 68 64 } 69 65 /*}}}*/ 70 /*FUNCTION IssmSeqVec(doubletype* serial_vec,int M){{{*/ 71 IssmSeqVec(doubletype* buffer,int pM){ 66 IssmSeqVec(doubletype* buffer,int pM){/*{{{*/ 72 67 73 68 this->M=pM; … … 79 74 } 80 75 /*}}}*/ 81 /*FUNCTION ~IssmSeqVec(){{{*/ 82 ~IssmSeqVec(){ 76 ~IssmSeqVec(){/*{{{*/ 83 77 if(this->M)xDelete<doubletype>(this->vector); 84 78 M=0; … … 87 81 88 82 /*IssmSeqVec specific routines*/ 89 /*FUNCTION Echo{{{*/ 90 void Echo(void){ 83 void Echo(void){/*{{{*/ 91 84 92 85 int i; … … 97 90 } 98 91 /*}}}*/ 99 /*FUNCTION Assemble{{{*/ 100 void Assemble(void){ 92 void Assemble(void){/*{{{*/ 101 93 102 94 /*do nothing*/ … … 104 96 } 105 97 /*}}}*/ 106 /*FUNCTION SetValues{{{*/ 107 void SetValues(int ssize, int* list, doubletype* values, InsMode mode){ 98 void SetValues(int ssize, int* list, doubletype* values, InsMode mode){/*{{{*/ 108 99 109 100 int i; … … 122 113 } 123 114 /*}}}*/ 124 /*FUNCTION SetValue{{{*/ 125 void SetValue(int dof, doubletype value, InsMode mode){ 115 void SetValue(int dof, doubletype value, InsMode mode){/*{{{*/ 126 116 127 117 switch(mode){ … … 138 128 } 139 129 /*}}}*/ 140 /*FUNCTION GetValue{{{*/ 141 void GetValue(doubletype* pvalue,int dof){ 130 void GetValue(doubletype* pvalue,int dof){/*{{{*/ 142 131 143 132 *pvalue=this->vector[dof]; … … 145 134 } 146 135 /*}}}*/ 147 /*FUNCTION GetSize{{{*/ 148 void GetSize(int* pM){ 136 void GetSize(int* pM){/*{{{*/ 149 137 150 138 *pM=this->M; … … 152 140 } 153 141 /*}}}*/ 154 /*FUNCTION GetLocalSize{{{*/ 155 void GetLocalSize(int* pM){ 142 void GetLocalSize(int* pM){/*{{{*/ 156 143 157 144 *pM=this->M; … … 159 146 } 160 147 /*}}}*/ 161 /*FUNCTION Duplicate{{{*/ 162 IssmSeqVec<doubletype>* Duplicate(void){ 148 IssmSeqVec<doubletype>* Duplicate(void){/*{{{*/ 163 149 164 150 return new IssmSeqVec<doubletype>(this->vector,this->M); … … 166 152 } 167 153 /*}}}*/ 168 /*FUNCTION Set{{{*/ 169 void Set(doubletype value){ 154 void Set(doubletype value){/*{{{*/ 170 155 171 156 int i; … … 174 159 } 175 160 /*}}}*/ 176 /*FUNCTION AXPY{{{*/ 177 void AXPY(IssmAbsVec<doubletype>* Xin, doubletype a){ 161 void AXPY(IssmAbsVec<doubletype>* Xin, doubletype a){/*{{{*/ 178 162 179 163 int i; … … 189 173 } 190 174 /*}}}*/ 191 /*FUNCTION AYPX{{{*/ 192 void AYPX(IssmAbsVec<doubletype>* Xin, doubletype a){ 175 void AYPX(IssmAbsVec<doubletype>* Xin, doubletype a){/*{{{*/ 193 176 194 177 int i; … … 204 187 } 205 188 /*}}}*/ 206 /*FUNCTION ToMPISerial{{{*/ 207 doubletype* ToMPISerial(void){ 189 doubletype* ToMPISerial(void){/*{{{*/ 208 190 209 191 doubletype* buffer=NULL; … … 217 199 } 218 200 /*}}}*/ 219 /*FUNCTION Copy{{{*/ 220 void Copy(IssmAbsVec<doubletype>* toin){ 201 void Copy(IssmAbsVec<doubletype>* toin){/*{{{*/ 221 202 222 203 int i; … … 232 213 } 233 214 /*}}}*/ 234 /*FUNCTION Norm{{{*/ 235 doubletype Norm(NormMode mode){ 215 doubletype Norm(NormMode mode){/*{{{*/ 236 216 237 217 doubletype norm; … … 255 235 } 256 236 /*}}}*/ 257 /*FUNCTION Scale{{{*/ 258 void Scale(doubletype scale_factor){ 237 void Scale(doubletype scale_factor){/*{{{*/ 259 238 260 239 int i; … … 263 242 } 264 243 /*}}}*/ 265 /*FUNCTION Dot{{{*/ 266 doubletype Dot(IssmAbsVec<doubletype>* inputin){ 244 doubletype Dot(IssmAbsVec<doubletype>* inputin){/*{{{*/ 267 245 268 246 int i; … … 279 257 } 280 258 /*}}}*/ 281 /*FUNCTION PointwiseDivide{{{*/ 282 void PointwiseDivide(IssmAbsVec<doubletype>* xin,IssmAbsVec<doubletype>* yin){ 259 void PointwiseDivide(IssmAbsVec<doubletype>* xin,IssmAbsVec<doubletype>* yin){/*{{{*/ 283 260 284 261 int i; -
TabularUnified issm/trunk-jpl/src/c/toolkits/objects/Matrix.h ¶
r16675 r18063 36 36 37 37 /*Matrix constructors, destructors*/ 38 /*FUNCTION Matrix(){{{*/ 39 Matrix(){ 40 InitCheckAndSetType(); 41 } 42 /*}}}*/ 43 /*FUNCTION Matrix(int M,int N){{{*/ 44 Matrix(int M,int N){ 38 Matrix(){/*{{{*/ 39 InitCheckAndSetType(); 40 } 41 /*}}}*/ 42 Matrix(int M,int N){/*{{{*/ 45 43 46 44 InitCheckAndSetType(); … … 57 55 } 58 56 /*}}}*/ 59 /*FUNCTION Matrix(int m,int n,int M,int N,int* d_nnz,int* o_nnz){{{*/ 60 Matrix(int m,int n,int M,int N,int* d_nnz,int* o_nnz){ 57 Matrix(int m,int n,int M,int N,int* d_nnz,int* o_nnz){/*{{{*/ 61 58 62 59 InitCheckAndSetType(); … … 73 70 } 74 71 /*}}}*/ 75 /*FUNCTION Matrix(int M,int N,IssmDouble sparsity){{{*/ 76 Matrix(int M,int N,double sparsity){ 72 Matrix(int M,int N,double sparsity){/*{{{*/ 77 73 78 74 InitCheckAndSetType(); … … 88 84 } 89 85 /*}}}*/ 90 /*FUNCTION Matrix(IssmDouble* serial_mat, int M,int N,IssmDouble sparsity){{{*/ 91 Matrix(IssmPDouble* serial_mat,int M,int N,IssmPDouble sparsity){ 86 Matrix(IssmPDouble* serial_mat,int M,int N,IssmPDouble sparsity){/*{{{*/ 92 87 93 88 InitCheckAndSetType(); … … 104 99 } 105 100 /*}}}*/ 106 /*FUNCTION Matrix(int M,int N,int connectivity,int numberofdofspernode){{{*/ 107 Matrix(int M,int N,int connectivity,int numberofdofspernode){ 101 Matrix(int M,int N,int connectivity,int numberofdofspernode){/*{{{*/ 108 102 109 103 InitCheckAndSetType(); … … 120 114 } 121 115 /*}}}*/ 122 /*FUNCTION ~Matrix(){{{*/ 123 ~Matrix(){ 116 ~Matrix(){/*{{{*/ 124 117 125 118 if(type==PetscMatType){ … … 132 125 } 133 126 /*}}}*/ 134 /*FUNCTION InitCheckAndSetType(){{{*/ 135 void InitCheckAndSetType(void){ 127 void InitCheckAndSetType(void){/*{{{*/ 136 128 137 129 char* toolkittype=NULL; … … 165 157 166 158 /*Matrix specific routines:*/ 167 /*FUNCTION Echo{{{*/ 168 void Echo(void){ 159 void Echo(void){/*{{{*/ 169 160 _assert_(this); 170 161 … … 180 171 } 181 172 /*}}}*/ 182 /*FUNCTION AllocationInfo{{{*/ 183 void AllocationInfo(void){ 173 void AllocationInfo(void){/*{{{*/ 184 174 _assert_(this); 185 175 if(type==PetscMatType){ … … 193 183 } 194 184 }/*}}}*/ 195 /*FUNCTION Assemble{{{*/ 196 void Assemble(void){ 185 void Assemble(void){/*{{{*/ 197 186 198 187 if(type==PetscMatType){ … … 206 195 } 207 196 /*}}}*/ 208 /*FUNCTION Norm{{{*/ 209 IssmDouble Norm(NormMode norm_type){ 197 IssmDouble Norm(NormMode norm_type){/*{{{*/ 210 198 211 199 IssmDouble norm=0; … … 223 211 } 224 212 /*}}}*/ 225 /*FUNCTION GetSize{{{*/ 226 void GetSize(int* pM,int* pN){ 213 void GetSize(int* pM,int* pN){/*{{{*/ 227 214 228 215 if(type==PetscMatType){ … … 237 224 } 238 225 /*}}}*/ 239 /*FUNCTION GetLocalSize{{{*/ 240 void GetLocalSize(int* pM,int* pN){ 226 void GetLocalSize(int* pM,int* pN){/*{{{*/ 241 227 242 228 if(type==PetscMatType){ … … 251 237 } 252 238 /*}}}*/ 253 /*FUNCTION MatMult{{{*/ 254 void MatMult(Vector<doubletype>* X,Vector<doubletype>* AX){ 239 void MatMult(Vector<doubletype>* X,Vector<doubletype>* AX){/*{{{*/ 255 240 256 241 if(type==PetscMatType){ … … 265 250 } 266 251 /*}}}*/ 267 /*FUNCTION Duplicate{{{*/ 268 Matrix<doubletype>* Duplicate(void){ 252 Matrix<doubletype>* Duplicate(void){/*{{{*/ 269 253 270 254 Matrix<doubletype>* output=new Matrix<doubletype>(); … … 282 266 } 283 267 /*}}}*/ 284 /*FUNCTION ToSerial{{{*/ 285 doubletype* ToSerial(void){ 268 doubletype* ToSerial(void){/*{{{*/ 286 269 287 270 doubletype* output=NULL; … … 299 282 } 300 283 /*}}}*/ 301 /*FUNCTION SetValues{{{*/ 302 void SetValues(int m,int* idxm,int n,int* idxn,IssmDouble* values,InsMode mode){ 284 void SetValues(int m,int* idxm,int n,int* idxn,IssmDouble* values,InsMode mode){/*{{{*/ 303 285 304 286 if(type==PetscMatType){ … … 312 294 } 313 295 /*}}}*/ 314 /*FUNCTION Convert{{{*/ 315 void Convert(MatrixType newtype){ 296 void Convert(MatrixType newtype){/*{{{*/ 316 297 317 298 if(type==PetscMatType){ -
TabularUnified issm/trunk-jpl/src/c/toolkits/objects/Vector.h ¶
r17509 r18063 128 128 129 129 /*Vector specific routines*/ 130 /*FUNCTION Echo{{{*/ 131 void Echo(void){_assert_(this); 130 void Echo(void){_assert_(this);/*{{{*/ 132 131 133 132 if(type==PetscVecType){ … … 140 139 } 141 140 /*}}}*/ 142 /*FUNCTION Assemble{{{*/ 143 void Assemble(void){_assert_(this); 141 void Assemble(void){_assert_(this);/*{{{*/ 144 142 145 143 if(type==PetscVecType){ … … 152 150 } 153 151 /*}}}*/ 154 /*FUNCTION SetValues{{{*/ 155 void SetValues(int ssize, int* list, doubletype* values, InsMode mode){ _assert_(this); 152 void SetValues(int ssize, int* list, doubletype* values, InsMode mode){ _assert_(this);/*{{{*/ 156 153 if(type==PetscVecType){ 157 154 #ifdef _HAVE_PETSC_ … … 163 160 } 164 161 /*}}}*/ 165 /*FUNCTION SetValue{{{*/ 166 void SetValue(int dof, doubletype value, InsMode mode){_assert_(this); 162 void SetValue(int dof, doubletype value, InsMode mode){_assert_(this);/*{{{*/ 167 163 168 164 if(type==PetscVecType){ … … 175 171 } 176 172 /*}}}*/ 177 /*FUNCTION GetValue{{{*/ 178 void GetValue(doubletype* pvalue,int dof){_assert_(this); 173 void GetValue(doubletype* pvalue,int dof){_assert_(this);/*{{{*/ 179 174 180 175 if(type==PetscVecType){ … … 187 182 } 188 183 /*}}}*/ 189 /*FUNCTION GetSize{{{*/ 190 void GetSize(int* pM){_assert_(this); 184 void GetSize(int* pM){_assert_(this);/*{{{*/ 191 185 192 186 if(type==PetscVecType){ … … 199 193 } 200 194 /*}}}*/ 201 /*FUNCTION IsEmpty{{{*/ 202 bool IsEmpty(void){ 195 bool IsEmpty(void){/*{{{*/ 203 196 int M; 204 197 … … 212 205 } 213 206 /*}}}*/ 214 /*FUNCTION GetLocalSize{{{*/ 215 void GetLocalSize(int* pM){_assert_(this); 207 void GetLocalSize(int* pM){_assert_(this);/*{{{*/ 216 208 217 209 if(type==PetscVecType){ … … 224 216 } 225 217 /*}}}*/ 226 /*FUNCTION Duplicate{{{*/ 227 Vector<doubletype>* Duplicate(void){_assert_(this); 218 Vector<doubletype>* Duplicate(void){_assert_(this);/*{{{*/ 228 219 229 220 Vector<doubletype>* output=NULL; … … 242 233 } 243 234 /*}}}*/ 244 /*FUNCTION Set{{{*/ 245 void Set(doubletype value){_assert_(this); 235 void Set(doubletype value){_assert_(this);/*{{{*/ 246 236 247 237 if(type==PetscVecType){ … … 254 244 } 255 245 /*}}}*/ 256 /*FUNCTION AXPY{{{*/ 257 void AXPY(Vector* X, doubletype a){_assert_(this); 246 void AXPY(Vector* X, doubletype a){_assert_(this);/*{{{*/ 258 247 259 248 if(type==PetscVecType){ … … 266 255 } 267 256 /*}}}*/ 268 /*FUNCTION AYPX{{{*/ 269 void AYPX(Vector* X, doubletype a){_assert_(this); 257 void AYPX(Vector* X, doubletype a){_assert_(this);/*{{{*/ 270 258 271 259 if(type==PetscVecType){ … … 277 265 } 278 266 /*}}}*/ 279 /*FUNCTION ToMPISerial{{{*/ 280 doubletype* ToMPISerial(void){ 267 doubletype* ToMPISerial(void){/*{{{*/ 281 268 282 269 doubletype* vec_serial=NULL; … … 294 281 } 295 282 /*}}}*/ 296 /*FUNCTION Copy{{{*/ 297 void Copy(Vector* to){_assert_(this); 283 void Copy(Vector* to){_assert_(this);/*{{{*/ 298 284 299 285 if(type==PetscVecType){ … … 305 291 } 306 292 /*}}}*/ 307 /*FUNCTION Max{{{*/ 308 doubletype Max(void){_assert_(this); 293 doubletype Max(void){_assert_(this);/*{{{*/ 309 294 310 295 doubletype max=0; … … 319 304 } 320 305 /*}}}*/ 321 /*FUNCTION Norm{{{*/ 322 doubletype Norm(NormMode norm_type){_assert_(this); 306 doubletype Norm(NormMode norm_type){_assert_(this);/*{{{*/ 323 307 324 308 doubletype norm=0; … … 333 317 } 334 318 /*}}}*/ 335 /*FUNCTION Scale{{{*/ 336 void Scale(doubletype scale_factor){_assert_(this); 319 void Scale(doubletype scale_factor){_assert_(this);/*{{{*/ 337 320 338 321 if(type==PetscVecType){ … … 344 327 } 345 328 /*}}}*/ 346 /*FUNCTION Dot{{{*/ 347 doubletype Dot(Vector* vector){_assert_(this); 329 doubletype Dot(Vector* vector){_assert_(this);/*{{{*/ 348 330 349 331 doubletype dot; … … 358 340 } 359 341 /*}}}*/ 360 /*FUNCTION PointwiseDivide{{{*/ 361 void PointwiseDivide(Vector* x,Vector* y){_assert_(this); 342 void PointwiseDivide(Vector* x,Vector* y){_assert_(this);/*{{{*/ 362 343 363 344 if(type==PetscVecType){ -
TabularUnified issm/trunk-jpl/src/c/toolkits/petsc/objects/PetscMat.cpp ¶
r17110 r18063 19 19 20 20 /*PetscMat constructors and destructor*/ 21 /*FUNCTION PetscMat::PetscMat(){{{*/ 22 PetscMat::PetscMat(){ 21 PetscMat::PetscMat(){/*{{{*/ 23 22 this->matrix=NULL; 24 23 #ifdef _HAVE_ADOLC_ … … 28 27 } 29 28 /*}}}*/ 30 /*FUNCTION PetscMat::PetscMat(int M,int N){{{*/ 31 PetscMat::PetscMat(int M,int N){ 29 PetscMat::PetscMat(int M,int N){/*{{{*/ 32 30 33 31 this->matrix=NewMat(M,N,IssmComm::GetComm()); 34 32 } 35 33 /*}}}*/ 36 /*FUNCTION PetscMat::PetscMat(int M,int N, IssmDouble sparsity){{{*/ 37 PetscMat::PetscMat(int M,int N, IssmDouble sparsity){ 34 PetscMat::PetscMat(int M,int N, IssmDouble sparsity){/*{{{*/ 38 35 39 36 this->matrix=NewMat(M,N,sparsity,IssmComm::GetComm()); 40 37 } 41 38 /*}}}*/ 42 /*FUNCTION PetscMat::PetscMat(int m,int n,int M,int N,int* d_nnz,int* o_nnz){{{*/ 43 PetscMat::PetscMat(int m,int n,int M,int N,int* d_nnz,int* o_nnz){ 39 PetscMat::PetscMat(int m,int n,int M,int N,int* d_nnz,int* o_nnz){/*{{{*/ 44 40 45 41 MatCreate(IssmComm::GetComm(),&this->matrix); … … 51 47 } 52 48 /*}}}*/ 53 /*FUNCTION PetscMat::PetscMat(IssmDouble* serial_mat,int M,int N,IssmDouble sparsity){{{*/ 54 PetscMat::PetscMat(IssmDouble* serial_mat,int M,int N,IssmDouble sparsity){ 49 PetscMat::PetscMat(IssmDouble* serial_mat,int M,int N,IssmDouble sparsity){/*{{{*/ 55 50 56 51 int i; … … 74 69 } 75 70 /*}}}*/ 76 /*FUNCTION PetscMat::PetscMat(int M,int N, int connectivity, int numberofdofspernode){{{*/ 77 PetscMat::PetscMat(int M,int N, int connectivity,int numberofdofspernode){ 71 PetscMat::PetscMat(int M,int N, int connectivity,int numberofdofspernode){/*{{{*/ 78 72 79 73 this->matrix=NewMat(M,N,connectivity,numberofdofspernode,IssmComm::GetComm()); … … 81 75 } 82 76 /*}}}*/ 83 /*FUNCTION PetscMat::~PetscMat(){{{*/ 84 PetscMat::~PetscMat(){ 77 PetscMat::~PetscMat(){/*{{{*/ 85 78 MatFree(&this->matrix); 86 79 } … … 88 81 89 82 /*PetscMat specific routines: */ 90 /*FUNCTION PetscMat::AllocationInfo{{{*/ 91 void PetscMat::AllocationInfo(void){ 83 void PetscMat::AllocationInfo(void){/*{{{*/ 92 84 93 85 MatInfo info; … … 103 95 } 104 96 /*}}}*/ 105 /*FUNCTION PetscMat::Echo{{{*/ 106 void PetscMat::Echo(void){ 97 void PetscMat::Echo(void){/*{{{*/ 107 98 108 99 MatView(this->matrix,PETSC_VIEWER_STDOUT_WORLD); 109 100 } 110 101 /*}}}*/ 111 /*FUNCTION PetscMat::Assemble{{{*/ 112 void PetscMat::Assemble(void){ 102 void PetscMat::Assemble(void){/*{{{*/ 113 103 114 104 _assert_(this->matrix); … … 118 108 } 119 109 /*}}}*/ 120 /*FUNCTION PetscMat::Norm{{{*/ 121 IssmDouble PetscMat::Norm(NormMode mode){ 110 IssmDouble PetscMat::Norm(NormMode mode){/*{{{*/ 122 111 123 112 IssmDouble norm=0; … … 129 118 } 130 119 /*}}}*/ 131 /*FUNCTION PetscMat::GetSize{{{*/ 132 void PetscMat::GetSize(int* pM,int* pN){ 120 void PetscMat::GetSize(int* pM,int* pN){/*{{{*/ 133 121 134 122 _assert_(this->matrix); … … 136 124 } 137 125 /*}}}*/ 138 /*FUNCTION PetscMat::GetLocalSize{{{*/ 139 void PetscMat::GetLocalSize(int* pM,int* pN){ 126 void PetscMat::GetLocalSize(int* pM,int* pN){/*{{{*/ 140 127 141 128 _assert_(this->matrix); … … 144 131 } 145 132 /*}}}*/ 146 /*FUNCTION PetscMat::MatMult{{{*/ 147 void PetscMat::MatMult(PetscVec* X,PetscVec* AX){ 133 void PetscMat::MatMult(PetscVec* X,PetscVec* AX){/*{{{*/ 148 134 149 135 _assert_(this->matrix); … … 153 139 } 154 140 /*}}}*/ 155 /*FUNCTION PetscMat::Duplicate{{{*/ 156 PetscMat* PetscMat::Duplicate(void){ 141 PetscMat* PetscMat::Duplicate(void){/*{{{*/ 157 142 158 143 PetscMat* output=new PetscMat(); … … 164 149 } 165 150 /*}}}*/ 166 /*FUNCTION PetscMat::ToSerial{{{*/ 167 IssmDouble* PetscMat::ToSerial(void){ 151 IssmDouble* PetscMat::ToSerial(void){/*{{{*/ 168 152 169 153 IssmDouble* output=NULL; … … 174 158 } 175 159 /*}}}*/ 176 /*FUNCTION PetscMat::SetValues{{{*/ 177 void PetscMat::SetValues(int m,int* idxm,int n,int* idxn,IssmDouble* values,InsMode mode){ 160 void PetscMat::SetValues(int m,int* idxm,int n,int* idxn,IssmDouble* values,InsMode mode){/*{{{*/ 178 161 179 162 PetscErrorCode ierr; … … 183 166 } 184 167 /*}}}*/ 185 /*FUNCTION PetscMat::Convert{{{*/ 186 void PetscMat::Convert(MatrixType type){ 168 void PetscMat::Convert(MatrixType type){/*{{{*/ 187 169 188 170 MatConvert(this->matrix,ISSMToPetscMatrixType(type),MAT_REUSE_MATRIX,&this->matrix); -
TabularUnified issm/trunk-jpl/src/c/toolkits/petsc/objects/PetscVec.cpp ¶
r17509 r18063 19 19 20 20 /*PetscVec constructors and destructor*/ 21 /*FUNCTION PetscVec::PetscVec(){{{*/ 22 PetscVec::PetscVec(){ 21 PetscVec::PetscVec(){/*{{{*/ 23 22 this->vector=NULL; 24 23 #ifdef _HAVE_ADOLC_ … … 27 26 } 28 27 /*}}}*/ 29 /*FUNCTION PetscVec::PetscVec(int M,bool fromlocalsize){{{*/ 30 PetscVec::PetscVec(int M,bool fromlocalsize){ 28 PetscVec::PetscVec(int M,bool fromlocalsize){/*{{{*/ 31 29 32 30 this->vector=NewVec(M,IssmComm::GetComm(),fromlocalsize); … … 34 32 } 35 33 /*}}}*/ 36 /*FUNCTION PetscVec::PetscVec(int m,int M){{{*/ 37 PetscVec::PetscVec(int m,int M){ 34 PetscVec::PetscVec(int m,int M){/*{{{*/ 38 35 39 36 VecCreate(IssmComm::GetComm(),&this->vector); … … 44 41 } 45 42 /*}}}*/ 46 /*FUNCTION PetscVec::PetscVec(Vec petsc_vec){{{*/ 47 PetscVec::PetscVec(Vec petsc_vec){ 43 PetscVec::PetscVec(Vec petsc_vec){/*{{{*/ 48 44 49 45 if(petsc_vec==NULL){ … … 58 54 } 59 55 /*}}}*/ 60 /*FUNCTION PetscVec::PetscVec(IssmDouble* serial_vec,int M){{{*/ 61 PetscVec::PetscVec(IssmDouble* serial_vec,int M){ 56 PetscVec::PetscVec(IssmDouble* serial_vec,int M){/*{{{*/ 62 57 63 58 int* idxm=NULL; … … 73 68 } 74 69 /*}}}*/ 75 /*FUNCTION PetscVec::~PetscVec(){{{*/ 76 PetscVec::~PetscVec(){ 70 PetscVec::~PetscVec(){/*{{{*/ 77 71 VecFree(&this->vector); 78 72 } … … 80 74 81 75 /*PetscVec specific routines: */ 82 /*FUNCTION PetscVec::Echo{{{*/ 83 void PetscVec::Echo(void){ 76 void PetscVec::Echo(void){/*{{{*/ 84 77 85 78 _assert_(this->vector); … … 87 80 } 88 81 /*}}}*/ 89 /*FUNCTION PetscVec::Assemble{{{*/ 90 void PetscVec::Assemble(void){ 82 void PetscVec::Assemble(void){/*{{{*/ 91 83 92 84 _assert_(this->vector); … … 96 88 } 97 89 /*}}}*/ 98 /*FUNCTION PetscVec::SetValues{{{*/ 99 void PetscVec::SetValues(int ssize, int* list, IssmDouble* values, InsMode mode){ 90 void PetscVec::SetValues(int ssize, int* list, IssmDouble* values, InsMode mode){/*{{{*/ 100 91 101 92 _assert_(this->vector); … … 104 95 } 105 96 /*}}}*/ 106 /*FUNCTION PetscVec::SetValue{{{*/ 107 void PetscVec::SetValue(int dof, IssmDouble value, InsMode mode){ 97 void PetscVec::SetValue(int dof, IssmDouble value, InsMode mode){/*{{{*/ 108 98 109 99 _assert_(this->vector); … … 112 102 } 113 103 /*}}}*/ 114 /*FUNCTION PetscVec::GetValue{{{*/ 115 void PetscVec::GetValue(IssmDouble* pvalue,int dof){ 104 void PetscVec::GetValue(IssmDouble* pvalue,int dof){/*{{{*/ 116 105 117 106 _assert_(this->vector); … … 120 109 } 121 110 /*}}}*/ 122 /*FUNCTION PetscVec::GetSize{{{*/ 123 void PetscVec::GetSize(int* pM){ 111 void PetscVec::GetSize(int* pM){/*{{{*/ 124 112 125 113 _assert_(this->vector); … … 128 116 } 129 117 /*}}}*/ 130 /*FUNCTION PetscVec::GetLocalSize{{{*/ 131 void PetscVec::GetLocalSize(int* pM){ 118 void PetscVec::GetLocalSize(int* pM){/*{{{*/ 132 119 133 120 _assert_(this->vector); … … 136 123 } 137 124 /*}}}*/ 138 /*FUNCTION PetscVec::Duplicate{{{*/ 139 PetscVec* PetscVec::Duplicate(void){ 125 PetscVec* PetscVec::Duplicate(void){/*{{{*/ 140 126 141 127 _assert_(this->vector); … … 148 134 } 149 135 /*}}}*/ 150 /*FUNCTION PetscVec::Set{{{*/ 151 void PetscVec::Set(IssmDouble value){ 136 void PetscVec::Set(IssmDouble value){/*{{{*/ 152 137 153 138 _assert_(this->vector); … … 156 141 } 157 142 /*}}}*/ 158 /*FUNCTION PetscVec::AXPY{{{*/ 159 void PetscVec::AXPY(PetscVec* X, IssmDouble a){ 143 void PetscVec::AXPY(PetscVec* X, IssmDouble a){/*{{{*/ 160 144 161 145 _assert_(this->vector); … … 164 148 } 165 149 /*}}}*/ 166 /*FUNCTION PetscVec::AYPX{{{*/ 167 void PetscVec::AYPX(PetscVec* X, IssmDouble a){ 150 void PetscVec::AYPX(PetscVec* X, IssmDouble a){/*{{{*/ 168 151 169 152 _assert_(this->vector); … … 172 155 } 173 156 /*}}}*/ 174 /*FUNCTION PetscVec::ToMPISerial{{{*/ 175 IssmDouble* PetscVec::ToMPISerial(void){ 157 IssmDouble* PetscVec::ToMPISerial(void){/*{{{*/ 176 158 177 159 IssmDouble* vec_serial=NULL; … … 181 163 } 182 164 /*}}}*/ 183 /*FUNCTION PetscVec::Copy{{{*/ 184 void PetscVec::Copy(PetscVec* to){ 165 void PetscVec::Copy(PetscVec* to){/*{{{*/ 185 166 186 167 if(this->vector) VecCopy(this->vector,to->vector); … … 188 169 } 189 170 /*}}}*/ 190 /*FUNCTION PetscVec::Max{{{*/ 191 IssmDouble PetscVec::Max(void){ 171 IssmDouble PetscVec::Max(void){/*{{{*/ 192 172 193 173 _assert_(this->vector); … … 199 179 } 200 180 /*}}}*/ 201 /*FUNCTION PetscVec::Norm{{{*/ 202 IssmDouble PetscVec::Norm(NormMode mode){ 181 IssmDouble PetscVec::Norm(NormMode mode){/*{{{*/ 203 182 204 183 IssmDouble norm=0; … … 209 188 } 210 189 /*}}}*/ 211 /*FUNCTION PetscVec::Scale{{{*/ 212 void PetscVec::Scale(IssmDouble scale_factor){ 190 void PetscVec::Scale(IssmDouble scale_factor){/*{{{*/ 213 191 214 192 _assert_(this->vector); … … 217 195 } 218 196 /*}}}*/ 219 /*FUNCTION PetscVec::Dot{{{*/ 220 IssmDouble PetscVec::Dot(PetscVec* input){ 197 IssmDouble PetscVec::Dot(PetscVec* input){/*{{{*/ 221 198 222 199 IssmDouble dot; … … 227 204 } 228 205 /*}}}*/ 229 /*FUNCTION PetscVec::PointwiseDivide{{{*/ 230 void PetscVec::PointwiseDivide(PetscVec* x,PetscVec* y){ 206 void PetscVec::PointwiseDivide(PetscVec* x,PetscVec* y){/*{{{*/ 231 207 232 208 _assert_(this->vector);
Note:
See TracChangeset
for help on using the changeset viewer.