can't open file: CHECK PERMISSIONS by executing the command:";
echo "
chmod go+rwx $WebTrilinosDirectory/tmp";
echo "
then reload this page.";
echo "
can't open file: CHECK PERMISSIONS by executing the command:";
echo "
chmod go+rwx $HBMatrixDirectory";
echo "
then reload this page.";
echo "
Last PHP error that occured: $php_errormsg";
echo "
can't open file: CHECK PERMISSIONS by executing the command:";
echo "
chmod go+rwx $HBMatrixDirectory";
echo "
then reload this page.";
echo "
#includeThe output is reported below, and it should contain the hello message. If it does not, please check your installation, then reload this page. Problems may arise from incorrect location of header files, LDFLAGS, or LIBS.int main(int argc, char* argv[]) { std::cout << "Hello, WebTrilinos World!" << std::endl; return(EXIT_SUCCESS); }
$program = ""; $program .= "#include\n"; $program .= "int main(int argc, char* argv[]) {\n"; $program .= ' std::cout << "Hello, WebTrilinos World!" << std::endl;'; $program .= " return(EXIT_SUCCESS); } \n"; global $TempDirectory; global $CXX; $timestamp = date("y-m-d_H.i.s", time()); $configFileName = "$TempDirectory/WebTrilinos/$timestamp.cpp"; $configExe = "$TempDirectory/WebTrilinos/test1-$timestamp.exe"; if(!is_dir("$TempDirectory/WebTrilinos")) mkdir("$TempDirectory/WebTrilinos", 0777); $configFile = fopen($configFileName, 'w') or die("can't open $configFileName: $php_errormsg"); if (-1 == fwrite($configFile, $program)) { die("can't write to $configFileName: $php_errormsg"); } fclose($configFile); echo ""; passthru("$CXX $configFileName -o $configExe 2>&1 && $configExe 2>&1"); passthru("/bin/rm -f $configExe"); echo ""; ?>
#includeThe output is reported below, and it should contain the printout of the Epetra communicator object. If it does not, please check your installation, then reload this page. Recall that you need to make install Trilinos to use WebTrilinos. Problems may arise from the incorrect location of header files, LDFLAGS, LIBS.#include "Epetra_ConfigDefs.h" #include "Epetra_SerialComm.h" int main(int argc, char* argv[]) { Epetra_SerialComm Comm; std::cout << Comm; return(EXIT_SUCCESS); }
$program = ""; $program .= "#include\n"; $program .= '#include "Epetra_ConfigDefs.h"' . "\n"; $program .= '#include "Epetra_SerialComm.h"' . "\n"; $program .= "int main(int argc, char* argv[]) {\n"; $program .= 'Epetra_SerialComm Comm;std::cout << Comm;'; $program .= " return(EXIT_SUCCESS); } \n"; global $TempDirectory; global $INCLUDES; global $LDFLAGS; global $LIBS; global $CXX; $timestamp = date("y-m-d_H.i.s", time()); $configFileName = "$TempDirectory/WebTrilinos/$timestamp.cpp"; $configExe = "$TempDirectory/WebTrilinos/test2-$timestamp.exe"; if(!is_dir("$TempDirectory/WebTrilinos")) mkdir("$TempDirectory/WebTrilinos", 0777); $configFile = fopen($configFileName, 'w') or die("can't open $configFileName: $php_errormsg"); if (-1 == fwrite($configFile, $program)) { die("can't write to $configFileName: $php_errormsg"); } fclose($configFile); echo ""; passthru("$CXX $configFileName $INCLUDES $LDFLAGS $LIBS -o $configExe 2>&1 && $configExe 2>&1"); passthru("/bin/rm -f $configExe"); echo ""; ?>
#includeThe output is reported below, and it should contain the printout of the Epetra communicator object. If it does not, please check your installation, then reload this page.#include "Epetra_ConfigDefs.h" #include "Epetra_SerialComm.h" int main(int argc, char* argv[]) { Epetra_SerialComm Comm; std::cout << Comm; return(EXIT_SUCCESS); }
$program = ""; $program .= "#include\n"; $program .= '#include "Epetra_ConfigDefs.h"' . "\n"; $program .= '#include "Epetra_SerialComm.h"' . "\n"; $program .= "int main(int argc, char* argv[]) {\n"; $program .= 'Epetra_SerialComm Comm;std::cout << Comm;'; $program .= " return(EXIT_SUCCESS); } \n"; global $TempDirectory; global $INCLUDES; global $LDFLAGS; global $LIBS; global $CXX; $timestamp = date("y-m-d_H.i.s", time()); $configFileName = "$TempDirectory/WebTrilinos/$timestamp.cpp"; $configExe = "$TempDirectory/WebTrilinos/test3-$timestamp.exe"; if(!is_dir("$TempDirectory/WebTrilinos")) mkdir("$TempDirectory/WebTrilinos", 0777); $configFile = fopen($configFileName, 'w') or die("can't open $configFileName: $php_errormsg"); if (-1 == fwrite($configFile, $program)) { die("can't write to $configFileName: $php_errormsg"); } fclose($configFile); passthru("$CXX $configFileName $INCLUDES $LDFLAGS $LIBS -o $configExe 2>&1 && $configExe 2>&1"); passthru("/bin/rm -f $configExe"); ?>
global $PYTHONPATH; $command = ""; if ($PYTHONPATH != "") $command .= "PYTHONPATH=$PYTHONPATH "; $command .= 'python -c "from PyTrilinos import Epetra; comm = Epetra.PyComm(); print comm" 2>&1'; echo ""; passthru($command); echo ""; ?>
global $PYTHONPATH; $command = ""; if ($PYTHONPATH != "") $command .= "PYTHONPATH=$PYTHONPATH "; $command .= 'python -c "from PyTrilinos import Epetra, EpetraExt, Amesos, IFPACK, AztecOO, ML" 2 > &1'; echo ""; passthru($command); echo ""; ?>
For more details, please check the official WebTrilinos' web page.