Changeset 165 for trunk/src/fortran
- Timestamp:
- Jan 31, 2006, 2:49:49 PM (19 years ago)
- Location:
- trunk/src/fortran
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/fortran/RpLibraryFInterface.cc
r125 r165 177 177 lib = getObject_Lib(*handle); 178 178 if (lib) { 179 if (*childHandle < 1) { 179 180 if (*childHandle > 0) { 180 181 // check to see if there were any previously returned children 181 182 childNode = getObject_Lib(*childHandle); … … 183 184 184 185 // call the children base method 185 childNode = lib->children( path,childNode);186 childNode = lib->children(inPath,childNode); 186 187 187 188 // store the childNode in the dictionary. 188 189 // 189 190 // because the base method is using static memory to get store the 190 // children we should be able to che kcand see if the childHandle191 // was val ud.191 // children we should be able to check and see if the childHandle 192 // was valid. 192 193 // if so, then we can just return the childHandle back to the user 193 194 // if not, store the object in the dictionary and return the new … … 199 200 } 200 201 else { 201 newObjHandle = *childHandle;202 newObjHandle = storeObject_Lib(childNode,*childHandle); 202 203 } 203 204 } -
trunk/src/fortran/RpUnitsFInterface.cc
r119 r165 33 33 34 34 if (basisName && *basisName) { 35 // basisStrName = fortObjDictUnits.find(*basisName);36 35 basisStrName = ObjDictUnits.find(*basisName); 37 36 … … 41 40 } 42 41 43 // newUnit = RpUnits::define(unitName, basis);44 42 newUnit = RpUnits::define(inText, basis); 45 43 … … 65 63 inText = null_terminate(searchName,searchName_len); 66 64 67 // RpUnits* searchUnit = RpUnits::find(searchName);68 65 const RpUnits* searchUnit = RpUnits::find(inText); 69 66 … … 89 86 90 87 if (newBasis) { 88 // make the metric extensions and retrieve the error code 91 89 result = RpUnits::makeMetric(newBasis); 92 90 } 93 91 } 94 92 93 // return the error code 95 94 return result; 96 95 } … … 101 100 const RpUnits* unitObj = NULL; 102 101 std::string unitNameText = ""; 103 int result = 0;102 int result = 1; 104 103 105 104 if (unitRefVal && *unitRefVal) { … … 108 107 unitNameText = unitObj->getUnits(); 109 108 fortranify(unitNameText.c_str(), retText, retText_len); 109 result = 0; 110 110 } 111 111 } … … 119 119 const RpUnits* unitObj = NULL; 120 120 std::string unitNameText = ""; 121 int result = 0;121 int result = 1; 122 122 123 123 if (unitRefVal && *unitRefVal) { … … 126 126 unitNameText = unitObj->getUnitsName(); 127 127 fortranify(unitNameText.c_str(), retText, retText_len); 128 result = 0; 128 129 } 129 130 } … … 136 137 { 137 138 const RpUnits* unitObj = NULL; 138 int result = 0;139 int result = 1; 139 140 140 141 if (unitRefVal && *unitRefVal) { … … 142 143 if (unitObj) { 143 144 *retExponent = unitObj->getExponent(); 145 result = 0; 144 146 } 145 147 }
Note: See TracChangeset
for help on using the changeset viewer.