mirror of https://github.com/BOINC/boinc.git
svn path=/trunk/boinc/; revision=22821
This commit is contained in:
parent
ebe1256b58
commit
a89ae6f3c6
|
@ -27,6 +27,7 @@
|
||||||
#include "wrappture.h"
|
#include "wrappture.h"
|
||||||
|
|
||||||
int main(int argc, char * argv[]) {
|
int main(int argc, char * argv[]) {
|
||||||
|
char buf[256];
|
||||||
|
|
||||||
RpLibrary* lib = NULL;
|
RpLibrary* lib = NULL;
|
||||||
|
|
||||||
|
@ -43,8 +44,8 @@ int main(int argc, char * argv[]) {
|
||||||
|
|
||||||
int err = 0;
|
int err = 0;
|
||||||
|
|
||||||
// create a rappture library from the file filePath
|
boinc_resolve_filename("driver.xml", buf, sizeof(buf));
|
||||||
lib = rpLibrary(argv[1]);
|
lib = rpLibrary(buf);
|
||||||
|
|
||||||
if (lib == NULL) {
|
if (lib == NULL) {
|
||||||
// cannot open file or out of memory
|
// cannot open file or out of memory
|
||||||
|
@ -93,7 +94,6 @@ int main(int argc, char * argv[]) {
|
||||||
RPLIB_OVERWRITE );
|
RPLIB_OVERWRITE );
|
||||||
|
|
||||||
// Run core simulator
|
// Run core simulator
|
||||||
char buf[256];
|
|
||||||
sprintf(buf, "%g %g", T, Ef);
|
sprintf(buf, "%g %g", T, Ef);
|
||||||
int retval = boinc_run_rappture_app("fermi", buf);
|
int retval = boinc_run_rappture_app("fermi", buf);
|
||||||
if (retval) {
|
if (retval) {
|
||||||
|
|
Loading…
Reference in New Issue