Changeset 774 for cpp/frams/genetics/f4/conv_f4.cpp
- Timestamp:
- 04/11/18 01:16:08 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f4/conv_f4.cpp
r760 r774 25 25 26 26 27 SString GenoConv_f40::convert(SString &in, MultiMap * 27 SString GenoConv_f40::convert(SString &in, MultiMap *map, bool using_checkpoints) 28 28 { 29 29 int res; 30 f4_Model * 30 f4_Model *model = new f4_Model(); 31 31 res = model->buildFromF4(in, using_checkpoints); 32 32 if (GENOPER_OK != res) return SString(); // oops … … 50 50 51 51 52 SString GenoConv_F41_TestOnly::convert(SString &in, MultiMap * 52 SString GenoConv_F41_TestOnly::convert(SString &in, MultiMap *map, bool using_checkpoints) 53 53 { 54 54 int res; 55 f4_Model * 55 f4_Model *model = new f4_Model(); 56 56 res = model->buildFromF4(in, using_checkpoints); 57 57 if (GENOPER_OK != res) return SString(); // oops … … 126 126 127 127 128 f4_Cell * f4_Model::getStick(f4_Cell *C)128 f4_Cell* f4_Model::getStick(f4_Cell *C) 129 129 { 130 130 if (T_STICK4 == C->type) return C; … … 142 142 143 143 /// updated by Macko to follow new SDK standards (no more neuroitems) 144 int f4_Model::buildModelRec(f4_Cell * 144 int f4_Model::buildModelRec(f4_Cell *C) 145 145 { 146 146 int partidx; … … 192 192 // adjust mass/vol of first endpoint 193 193 jj_p1_refno = C->dadlink->p2_refno; 194 Part * 194 Part *p1 = getPart(jj_p1_refno); 195 195 p1->mass += 1.0; 196 196 // p1->volume += 1.0/C->P.mass; … … 230 230 if (C->type == T_NEURON4) ///<this case was updated by MacKo 231 231 { 232 const char 232 const char* nclass = C->neuclass->name.c_str(); 233 233 int partno, jointno; 234 234 if (C->neuclass->getPreferredLocation() == 0) … … 298 298 if (C->links[j]->from == NULL) 299 299 { 300 const char 301 char 302 NeuroClass * 300 const char* nclass = C->links[j]->t.c_str(); 301 char* temp = (char*)C->links[j]->t.c_str(); 302 NeuroClass *sensortest = GenoOperators::parseNeuroClass(temp); 303 303 //backward compatibility for G*TS 304 304 if (C->links[j]->t == "*" || C->links[j]->t == "S" || C->links[j]->t == "T")
Note: See TracChangeset
for help on using the changeset viewer.