Changeset 3953 for branches/blt4
- Timestamp:
- Sep 24, 2013, 12:41:04 PM (11 years ago)
- Location:
- branches/blt4/src/core
- Files:
-
- 63 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/src/core/Makefile.in
r1948 r3953 13 13 INSTALL = @INSTALL@ 14 14 MKDIR_P = @MKDIR_P@ 15 15 SVN_VERSION := $(shell svnversion $(srcdir)) 16 RAPPTURE_VERSION = @PACKAGE_VERSION@ 16 17 CXX = @CXX@ 17 18 # This hack is because the tcl.m4 file generates the line … … 32 33 DX_LIB_SPEC = @DX_LIB_SPEC@ 33 34 DX_INC_SPEC = @DX_INC_SPEC@ 34 35 CC_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) 36 CXX_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) 35 DEFINES = -DSVN_VERSION=\"$(SVN_VERSION)\" \ 36 -DRAPPTURE_VERSION=\"$(RAPPTURE_VERSION)\" 37 38 CC_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) 39 CXX_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) 37 40 38 41 INCLUDES = \ … … 196 199 197 200 distclean: clean 198 $(RM) Makefile *~201 $(RM) Makefile config.h *~ -
branches/blt4/src/core/RpBindingsDict.cc
r1084 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick S. Kearney, Purdue University 7 * Copyright (c) 2004-20 08 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpBindingsDict.h
r1084 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick S. Kearney, Purdue University 7 * Copyright (c) 2004-20 05 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpBuffer.cc
r2544 r3953 5 5 * AUTHOR: Derrick Kearney, Purdue University 6 6 * 7 * Copyright (c) 2004-20 08 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * ---------------------------------------------------------------------- 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpBuffer.h
r1527 r3953 5 5 * AUTHOR: Derrick Kearney, Purdue University 6 6 * 7 * Copyright (c) 2004-20 08 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * ---------------------------------------------------------------------- 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpBufferCHelper.h
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpBufferCInterface.cc
r1384 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpBufferCInterface.h
r1366 r3953 6 6 * ====================================================================== 7 7 * AUTHOR: Derrick Kearney, Purdue University 8 * Copyright (c) 2004-20 07 Purdue Research Foundation8 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 9 9 * 10 10 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpDXWriter.cc
r1328 r3953 7 7 * ====================================================================== 8 8 * AUTHOR: Derrick S. Kearney, Purdue University 9 * Copyright (c) 200 5-2008 Purdue Research Foundation9 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 10 10 * 11 11 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpDXWriter.h
r1325 r3953 8 8 * ====================================================================== 9 9 * AUTHOR: Derrick S. Kearney, Purdue University 10 * Copyright (c) 200 5-2008 Purdue Research Foundation10 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 11 11 * 12 12 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpDXWriterFInterface.cc
r1086 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 200 5-2008 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpDXWriterFInterface.h
r1086 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick S. Kearney, Purdue University 7 * Copyright (c) 200 5-2008 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpDXWriterFStubs.c
r1086 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick S. Kearney, Purdue University 7 * Copyright (c) 200 5-2008 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpDXWriterFStubs.h
r1086 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick S. Kearney, Purdue University 7 * Copyright (c) 200 5-2008 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpDict.h
- Property svn:executable deleted
r2936 r3953 4 4 * 5 5 * AUTHOR: Derrick Kearney, Purdue University 6 * Copyright (c) 2004-20 08 Purdue Research Foundation6 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 7 7 * 8 8 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpEncode.cc
r1617 r3953 7 7 * ====================================================================== 8 8 * AUTHOR: Derrick Kearney, Purdue University 9 * Copyright (c) 2004-20 07 Purdue Research Foundation9 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 10 10 * 11 11 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpEncode.h
r1451 r3953 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 7 * 8 * Copyright (c) 2004-20 07 Purdue Research Foundation8 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 9 9 * ---------------------------------------------------------------------- 10 10 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpEntityRef.cc
r1582 r3953 2 2 * ====================================================================== 3 3 * AUTHOR: Derrick Kearney, Purdue University 4 * Copyright (c) 2004-20 06 Purdue Research Foundation4 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 5 5 * 6 6 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpEntityRef.h
r788 r3953 18 18 * ====================================================================== 19 19 * AUTHOR: Derrick Kearney, Purdue University 20 * Copyright (c) 2004-20 07 Purdue Research Foundation20 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 21 21 * 22 22 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpFortranCommon.cc
r1086 r3953 7 7 * ====================================================================== 8 8 * AUTHOR: Derrick Kearney, Purdue University 9 * Copyright (c) 2004-20 05 Purdue Research Foundation9 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 10 10 * 11 11 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpFortranCommon.h
r1086 r3953 7 7 * ====================================================================== 8 8 * AUTHOR: Derrick Kearney, Purdue University 9 * Copyright (c) 2004-20 05 Purdue Research Foundation9 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 10 10 * 11 11 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpLibrary.cc
r3025 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick S. Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and … … 12 12 */ 13 13 14 #include "config.h" 14 15 #include "scew/scew.h" 15 16 #include "scew_extras.h" … … 63 64 parser = scew_parser_create(); 64 65 65 // Don't trim whitespaces 66 scew_parser_ignore_whitespaces(parser, 0); 66 // Don't ignore whitespaces! 67 // Things like string inputs may have trailing newlines that 68 // matter to the underlying application. 69 scew_parser_ignore_whitespaces(parser, 1); 67 70 68 71 /* Loads an XML file */ … … 132 135 // fill in the current RpLibrary's data with other's data 133 136 parser = scew_parser_create(); 134 // Don't trim whitespaces 135 scew_parser_ignore_whitespaces(parser, 0); 137 scew_parser_ignore_whitespaces(parser, 1); 136 138 137 139 // Loads the XML from other … … 219 221 // fill in the current RpLibrary's data with other's data 220 222 parser = scew_parser_create(); 221 // Don't trim whitespaces 222 scew_parser_ignore_whitespaces(parser, 0); 223 scew_parser_ignore_whitespaces(parser, 1); 223 224 224 225 // Loads the XML from other … … 1873 1874 scew_element *tmpNode = NULL; 1874 1875 const char *contents = NULL; 1875 int retVal = 1;1876 1876 int deleteTmpNode = 0; 1877 1877 … … 1939 1939 // maybe we want to count the number of children 1940 1940 // that we have successfully added? 1941 retVal = 0;1942 1941 } 1943 1942 else { … … 2222 2221 RpLibrary::result(int exitStatus) 2223 2222 { 2224 std::stringstream outputFile;2225 2223 std::fstream file; 2226 2224 std::string xmlText = ""; 2227 time_t t = 0; 2228 struct tm* timeinfo = NULL; 2229 std::string timestamp = ""; 2230 std::string username = ""; 2231 std::string hostname = ""; 2225 time_t t; 2226 struct tm* timeinfo; 2227 std::stringstream outputFile; 2228 std::string timestamp; 2229 std::string username; 2230 std::string hostname; 2232 2231 char *user = NULL; 2233 2232 2234 if (this->root) { 2235 #ifdef _POSIX_SOURCE 2236 // if the posix function gettimeofday is available, 2237 // we can get more precision on the time and more 2238 // unique filenames. 2239 struct timeval tv; 2240 gettimeofday(&tv,NULL); 2241 outputFile << "run" << tv.tv_sec << tv.tv_usec << ".xml"; 2233 if (this->root == NULL) { 2234 return; /* No tree available */ 2235 } 2236 2237 t = time(NULL); /* This is presumably the time the 2238 * simulation finished. */ 2239 #ifdef HAVE_GETTIMEOFDAY 2240 /* If the posix function gettimeofday is available, use it to produce 2241 * unique filenames. */ 2242 struct timeval tv; 2243 gettimeofday(&tv,NULL); 2244 outputFile << "run" << tv.tv_sec << tv.tv_usec << ".xml"; 2242 2245 #else 2243 outputFile << "run" << (int)time(&t)<< ".xml";2246 outputFile << "run" << (int)t << ".xml"; 2244 2247 #endif 2245 file.open(outputFile.str().c_str(),std::ios::out); 2246 2247 put("tool.version.rappture.revision","$LastChangedRevision$"); 2248 put("tool.version.rappture.modified","$LastChangedDate$"); 2249 if ( "" == get("tool.version.rappture.language") ) { 2250 put("tool.version.rappture.language","c++"); 2251 } 2252 2253 // generate a timestamp for the run file 2254 timeinfo = localtime(&t); 2255 timestamp = std::string(ctime(&t)); 2256 // erase the 24th character because it is a newline 2257 timestamp.erase(24); 2258 // concatinate the timezone 2259 timestamp.append(" "); 2248 file.open(outputFile.str().c_str(),std::ios::out); 2249 2250 2251 put("tool.version.rappture.version", RAPPTURE_VERSION); 2252 put("tool.version.rappture.revision", SVN_VERSION); 2253 put("tool.version.rappture.modified", 2254 "$LastChangedDate$"); 2255 if ( "" == get("tool.version.rappture.language") ) { 2256 put("tool.version.rappture.language","c++"); 2257 } 2258 // generate a timestamp for the run file 2259 timeinfo = localtime(&t); 2260 timestamp = std::string(ctime(&t)); 2261 // erase the 24th character because it is a newline 2262 timestamp.erase(24); 2263 // concatenate the timezone 2264 timestamp.append(" "); 2260 2265 #ifdef _WIN32 2261 timestamp.append(_tzname[_daylight]); 2262 // username is left blank for windows because i dont know 2263 // how to retrieve username on win32 environment. 2264 username = ""; 2265 hostname = ""; 2266 timestamp.append(_tzname[_daylight]); 2267 username = ""; 2268 hostname = ""; 2269 user = getenv("USERNAME"); 2270 if (user != NULL) { 2271 username = std::string(user); 2272 } else { 2273 user = getenv("LOGNAME"); 2274 if (user != NULL) { 2275 username = std::string(user); 2276 } 2277 } 2266 2278 #else 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2279 timestamp.append(timeinfo->tm_zone); 2280 user = getenv("USER"); 2281 if (user != NULL) { 2282 username = std::string(user); 2283 } else { 2284 user = getenv("LOGNAME"); 2285 if (user != NULL) { 2286 username = std::string(user); 2287 } 2288 } 2277 2289 #endif 2278 2290 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2291 // add the timestamp to the run file 2292 put("output.time", timestamp); 2293 put("output.status",exitStatus); 2294 put("output.user",username); 2295 put("output.host",hostname); 2296 2297 if ( file.is_open() ) { 2298 xmlText = xml(); 2299 if (!xmlText.empty()) { 2300 file << xmlText; 2301 } 2302 // check to make sure there were no 2303 // errors while writing the run.xml file. 2304 if ( (!file.good()) 2305 || ((long)xmlText.length() != ((long)file.tellp()-(long)1)) 2294 2306 ) { 2295 status.error("Error while writing run file"); 2296 status.addContext("RpLibrary::result()"); 2297 } 2298 file.close(); 2299 } 2300 else { 2301 status.error("Error while opening run file"); 2302 status.addContext("RpLibrary::result()"); 2303 } 2304 std::cout << "=RAPPTURE-RUN=>" << outputFile.str() << std::endl; 2305 } 2307 status.error("Error while writing run file"); 2308 status.addContext("RpLibrary::result()"); 2309 } 2310 file.close(); 2311 } else { 2312 status.error("Error while opening run file"); 2313 status.addContext("RpLibrary::result()"); 2314 } 2315 std::cout << "=RAPPTURE-RUN=>" << outputFile.str() << std::endl; 2306 2316 } 2307 2317 -
branches/blt4/src/core/RpLibrary.h
r2544 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick S. Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpLibraryCInterface.cc
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpLibraryCInterface.h
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpLibraryFInterface.cc
r2558 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and … … 238 238 xmlText = lib->get(inPath); 239 239 if (!xmlText.empty()) { 240 fortranify(xmlText.c_str(),retText, 240 fortranify(xmlText.c_str(),retText,retText_len); 241 241 } 242 242 -
branches/blt4/src/core/RpLibraryFInterface.h
r2544 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick S. Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpLibraryFStubs.c
r2544 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpLibraryFStubs.h
r2544 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpOutcome.cc
r2544 r3953 4 4 * 5 5 * AUTHOR: Michael McLennan, Purdue University 6 * Copyright (c) 2004-20 07 Purdue Research Foundation6 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 7 7 * ---------------------------------------------------------------------- 8 8 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpOutcome.h
r1366 r3953 4 4 * 5 5 * AUTHOR: Michael McLennan, Purdue University 6 * Copyright (c) 2004-20 07 Purdue Research Foundation6 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 7 7 * ---------------------------------------------------------------------- 8 8 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpOutcomeCHelper.h
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpOutcomeCInterface.cc
r1074 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpOutcomeCInterface.h
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpPtr.cc
r1328 r3953 4 4 * 5 5 * AUTHOR: Michael McLennan, Purdue University 6 * Copyright (c) 2004-20 06 Purdue Research Foundation6 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 7 7 * ---------------------------------------------------------------------- 8 8 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpPtr.h
r1031 r3953 4 4 * 5 5 * AUTHOR: Michael McLennan, Purdue University 6 * Copyright (c) 2004-20 06 Purdue Research Foundation6 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 7 7 * ---------------------------------------------------------------------- 8 8 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpResult.cc
r1382 r3953 9 9 * ====================================================================== 10 10 * AUTHOR: Michael McLennan, Purdue University 11 * Copyright (c) 2004-20 05 Purdue Research Foundation11 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 12 12 * 13 13 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpSimpleBuffer.h
r2544 r3953 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 7 * 8 * Copyright (c) 2004-20 08 Purdue Research Foundation8 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 9 9 * ---------------------------------------------------------------------- 10 10 * See the file "license.terms" for information on usage and … … 49 49 * GOVERNMENT USE: If you are acquiring this software on behalf of the 50 50 * U.S. government, the Government shall have only "Restricted Rights" 51 * in the software and related documentation as defined in the Federal ·51 * in the software and related documentation as defined in the Federal 52 52 * Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you 53 53 * are acquiring the software on behalf of the Department of Defense, the … … 57 57 * authors grant the U.S. Government and others acting in its behalf 58 58 * permission to use and distribute the software in accordance with the 59 * terms specified in this license. ·59 * terms specified in this license. 60 60 * 61 61 * ====================================================================== … … 245 245 return; 246 246 } 247 _numElemsUsed = numElems;248 247 } 249 248 … … 644 643 645 644 while (curMemb != _numElemsUsed) { 646 fprintf(stdout,"_buf[%lu] = :%# x:\n", (long unsigned int)curMemb,645 fprintf(stdout,"_buf[%lu] = :%#lx:\n", (long unsigned int)curMemb, 647 646 (unsigned long)_buf[curMemb]); 648 647 curMemb += 1; -
branches/blt4/src/core/RpUnits.cc
r1824 r3953 7 7 * ====================================================================== 8 8 * AUTHOR: Derrick Kearney, Purdue University 9 * Copyright (c) 2004-20 07 Purdue Research Foundation9 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 10 10 * 11 11 * See the file "license.terms" for information on usage and … … 1335 1335 std::string type = ""; // junk var used because units2list requires it 1336 1336 std::string retStr = ""; 1337 double origNumVal = 0;1338 1337 double numVal = 0; 1339 1338 double toExp = 0; … … 1365 1364 1366 1365 convErr = unitSlice(val,fromUnitsName,numVal); 1367 origNumVal = numVal;1368 1366 1369 1367 if (convErr != 0) { … … 2700 2698 // RpUnits* cubic_meter = RpUnits::define("m3", NULL, RP_TYPE_VOLUME); 2701 2699 // RpUnits* cubic_feet = RpUnits::define("ft3", NULL, RP_TYPE_VOLUME); 2702 RpUnits* us_gallon = NULL;2703 RpUnits* liter = NULL;2704 2705 us_gallon =RpUnits::define("gal", NULL, RP_TYPE_VOLUME);2706 liter =RpUnits::define("L", NULL, RP_TYPE_VOLUME, RPUNITS_METRIC);2700 // RpUnits* us_gallon = NULL; 2701 // RpUnits* liter = NULL; 2702 2703 RpUnits::define("gal", NULL, RP_TYPE_VOLUME); 2704 RpUnits::define("L", NULL, RP_TYPE_VOLUME, RPUNITS_METRIC); 2707 2705 2708 2706 /* … … 2785 2783 RpUnitsPreset::addPresetMass () { 2786 2784 2787 RpUnits* gram = NULL; 2788 2789 gram = RpUnits::define("g", NULL, RP_TYPE_MASS, RPUNITS_METRIC,!RPUNITS_CASE_INSENSITIVE); 2785 RpUnits::define("g", NULL, RP_TYPE_MASS, RPUNITS_METRIC,!RPUNITS_CASE_INSENSITIVE); 2790 2786 2791 2787 return 0; … … 2887 2883 RpUnitsPreset::addPresetForce () { 2888 2884 2889 RpUnits* newton = NULL; 2890 2891 newton = RpUnits::define("N", NULL, RP_TYPE_FORCE, RPUNITS_METRIC); 2885 RpUnits::define("N", NULL, RP_TYPE_FORCE, RPUNITS_METRIC); 2892 2886 2893 2887 return 0; … … 2937 2931 /** 2938 2932 * Defines the following units: 2933 * volt (V) 2939 2934 * mole (mol) 2940 * 2935 * hertz (Hz) 2936 * becquerel (Bq) 2937 * amu 2938 * bel (B) 2939 * amp 2940 * ohm 2941 2941 * Return codes: 0 success, anything else is error 2942 2942 */ … … 2945 2945 RpUnitsPreset::addPresetMisc () { 2946 2946 2947 RpUnits* volt = NULL; 2948 RpUnits* mole = NULL; 2949 RpUnits* hertz = NULL; 2950 RpUnits* becquerel = NULL; 2951 RpUnits* amu = NULL; 2952 RpUnits* bel = NULL; 2953 RpUnits* amp = NULL; 2954 RpUnits* ohm = NULL; 2955 2956 volt = RpUnits::define("V", NULL, RP_TYPE_EPOT, RPUNITS_METRIC); 2957 mole = RpUnits::define("mol",NULL, "quantity", RPUNITS_METRIC); 2958 hertz = RpUnits::define("Hz", NULL, "frequency", RPUNITS_METRIC); 2959 becquerel = RpUnits::define("Bq", NULL, "radioactivity", RPUNITS_METRIC); 2960 amu = RpUnits::define("amu", NULL, "mass_unit", !RPUNITS_METRIC); 2961 bel = RpUnits::define("B", NULL, "audio_transmission", RPUNITS_METRIC); 2962 amp = RpUnits::define("amp", NULL, "electric_current", RPUNITS_METRIC); 2963 ohm = RpUnits::define("ohm", NULL, "electric_resistance", RPUNITS_METRIC); 2947 RpUnits::define("V", NULL, RP_TYPE_EPOT, RPUNITS_METRIC); 2948 RpUnits::define("mol",NULL, "quantity", RPUNITS_METRIC); 2949 RpUnits::define("Hz", NULL, "frequency", RPUNITS_METRIC); 2950 RpUnits::define("Bq", NULL, "radioactivity", RPUNITS_METRIC); 2951 RpUnits::define("amu", NULL, "mass_unit", !RPUNITS_METRIC); 2952 RpUnits::define("B", NULL, "audio_transmission", RPUNITS_METRIC); 2953 RpUnits::define("amp", NULL, "electric_current", RPUNITS_METRIC); 2954 RpUnits::define("ohm", NULL, "electric_resistance", RPUNITS_METRIC); 2964 2955 2965 2956 // RpUnits* percent = RpUnits::define("%", NULL, RP_TYPE_MISC); … … 2981 2972 RpUnitsPreset::addPresetPower () { 2982 2973 2983 RpUnits* watt = NULL;2984 2985 2974 // watts are derived units = J/s = kg*m2/s3 = Newton*m/s and Amps*Volt 2986 watt =RpUnits::define("W", NULL, RP_TYPE_POWER, RPUNITS_METRIC);2975 RpUnits::define("W", NULL, RP_TYPE_POWER, RPUNITS_METRIC); 2987 2976 2988 2977 return 0; -
branches/blt4/src/core/RpUnits.h
- Property svn:executable deleted
r1527 r3953 7 7 * ====================================================================== 8 8 * AUTHOR: Derrick Kearney, Purdue University 9 * Copyright (c) 2004-20 07 Purdue Research Foundation9 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 10 10 * 11 11 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUnitsCInterface.cc
r1581 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 05 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUnitsCInterface.h
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 05 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUnitsFInterface.cc
r1024 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 05 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUnitsFInterface.h
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 05 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUnitsFStubs.c
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 05 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUnitsFStubs.h
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 05 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUnitsStd.cc
r1427 r3953 1 1 /* 2 2 * ====================================================================== 3 * Copyright (c) 2004-20 05 Purdue Research Foundation3 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 4 4 * 5 5 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUnitsStd.h
r1427 r3953 1 1 /* 2 2 * ====================================================================== 3 * Copyright (c) 2004-20 05 Purdue Research Foundation3 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 4 4 * 5 5 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUtils.cc
r1090 r3953 5 5 * AUTHOR: Derrick Kearney, Purdue University 6 6 * 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * ---------------------------------------------------------------------- 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUtils.h
r665 r3953 5 5 * AUTHOR: Derrick Kearney, Purdue University 6 6 * 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * ---------------------------------------------------------------------- 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUtilsCInterface.cc
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUtilsCInterface.h
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUtilsFInterface.cc
r1105 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUtilsFInterface.h
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick S. Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUtilsFStubs.c
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/RpUtilsFStubs.h
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 07 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/config.h.in
r2936 r3953 70 70 #undef HAVE_CTYPE_H 71 71 72 /* Define to 1 if you have the <env.h> header file. */ 73 #undef HAVE_ENV_H 74 72 75 /* Define to 1 if you have the <errno.h> header file. */ 73 76 #undef HAVE_ERRNO_H 74 77 78 /* Render servers can use ffmpeg */ 79 #undef HAVE_FFMPEG 80 75 81 /* Define to 1 if you have the <ffmpeg/avcodec.h> header file. */ 76 82 #undef HAVE_FFMPEG_AVCODEC_H … … 91 97 #undef HAVE_FSTREAM 92 98 99 /* Define to 1 if you have the `gettimeofday' function. */ 100 #undef HAVE_GETTIMEOFDAY 101 93 102 /* Define to 1 if you have the `img_convert' function. */ 94 103 #undef HAVE_IMG_CONVERT … … 121 130 #undef HAVE_LIBAVUTIL_AVUTIL_H 122 131 123 /* Define to 1 if you have the `m' library (-lm). */124 #undef HAVE_LIB M132 /* Define to 1 if you have the <libavutil/mathematics.h> header file. */ 133 #undef HAVE_LIBAVUTIL_MATHEMATICS_H 125 134 126 135 /* Define to 1 if you have the `ncurses' library (-lncurses). */ … … 154 163 #undef HAVE_NCURSES_H 155 164 165 /* Define to 1 if you have the <node.h> header file. */ 166 #undef HAVE_NODE_H 167 156 168 /* Define to 1 if you have the <Python.h> header file. */ 157 169 #undef HAVE_PYTHON_H 158 170 171 /* Define to 1 if you have the <ruby.h> header file. */ 172 #undef HAVE_RUBY_H 173 174 /* Define to 1 if you have the <ruby/node.h> header file. */ 175 #undef HAVE_RUBY_NODE_H 176 159 177 /* Define to 1 if you have the <sstream> header file. */ 160 178 #undef HAVE_SSTREAM … … 208 226 #undef HAVE_VECTOR 209 227 228 /* Define to 1 if you have the <version.h> header file. */ 229 #undef HAVE_VERSION_H 230 210 231 /* Define to the address where bug reports for this package should be sent. */ 211 232 #undef PACKAGE_BUGREPORT … … 220 241 #undef PACKAGE_TARNAME 221 242 222 /* Define to the home page for this package. */223 #undef PACKAGE_URL224 225 243 /* Define to the version of this package. */ 226 244 #undef PACKAGE_VERSION 245 246 /* Define this macro to use ruby/node.h */ 247 #undef REALLY_HAVE_RUBY_NODE_H 227 248 228 249 /* The size of `int', as computed by sizeof. */ -
branches/blt4/src/core/rappture.h
r656 r3953 1 1 /* 2 2 * ====================================================================== 3 * Copyright (c) 2004-20 05 Purdue Research Foundation3 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 4 4 * 5 5 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/rappture_fortran.c
r1018 r3953 1 1 /* 2 2 * ====================================================================== 3 * Copyright (c) 2004-20 05 Purdue Research Foundation3 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 4 4 * 5 5 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/scew/scew_extras.c
r1018 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 05 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/scew/scew_extras.h
r1018 r3953 1 1 /* 2 2 * ====================================================================== 3 * Copyright (c) 2004-20 05 Purdue Research Foundation3 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 4 4 * 5 5 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/scew_extras.c
r1824 r3953 5 5 * ====================================================================== 6 6 * AUTHOR: Derrick Kearney, Purdue University 7 * Copyright (c) 2004-20 05 Purdue Research Foundation7 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 8 8 * 9 9 * See the file "license.terms" for information on usage and -
branches/blt4/src/core/scew_extras.h
r583 r3953 1 1 /* 2 2 * ====================================================================== 3 * Copyright (c) 2004-20 05 Purdue Research Foundation3 * Copyright (c) 2004-2012 HUBzero Foundation, LLC 4 4 * 5 5 * See the file "license.terms" for information on usage and
Note: See TracChangeset
for help on using the changeset viewer.