Maple-pcluster: Difference between revisions

From Research Computing Center Wiki
Jump to navigation Jump to search
(Created page with "Category:ZclusterCategory:SoftwareCategory:Bioinformatics === Category === Other === Program On === pcluster === Version === 10.06 === Author / Distribut...")
 
No edit summary
Line 1: Line 1:
[[Category:Zcluster]][[Category:Software]][[Category:Bioinformatics]]   
[[Category:Zcluster]][[Category:Software]][[Category:Other]]   
=== Category ===
=== Category ===


Line 25: Line 25:
   
   
1. Using the command-prompt interface:
1. Using the command-prompt interface:
<pre class="gscript">
<pre class="gcommand">
maple
maple
</pre>  
</pre>  


Line 48: Line 48:


Sample Maple program zeros.mws with Maple commands to solve for the complex roots of a simple polynomial:
Sample Maple program zeros.mws with Maple commands to solve for the complex roots of a simple polynomial:
<pre class="gcommand">
<pre class="gscript">
P:=z^5+5*z^4+11*z^3+8*z+22:
P:=z^5+5*z^4+11*z^3+8*z+22:
  zeros:=fsolve(P, z, complex):
  zeros:=fsolve(P, z, complex):
Line 56: Line 56:
quit:
quit:
</pre>
</pre>
2. Create a script file to run the Maple program.
2. Create a script file to run the Maple program.
Sample script file runMaple.sh to run a Maple program called zeros.mws and it saves the standard output of the execution in a file called zeros.output:
Sample script file runMaple.sh to run a Maple program called zeros.mws and it saves the standard output of the execution in a file called zeros.output:
<pre class="gcommand">
<pre class="gscript">
#!/bin/csh
#!/bin/csh
cd your_working_directory  
cd your_working_directory  
maple < zeros.mws > zeros.output  
maple < zeros.mws > zeros.output  
exit
exit
</pre>
</pre>
Then submit the sample script file runMaple.sh to the queue:
Then submit the sample script file runMaple.sh to the queue:
<pre class="gcommand>
<pre class="gcommand">
ugsub T1-i1-t1-24h runMaple.sh
ugsub T1-i1-t1-24h runMaple.sh
</pre>
</pre>
Line 81: Line 84:
   
   
=== System ===
=== System ===
64-bit Linux
AIX

Revision as of 10:12, 13 February 2013

Category

Other

Program On

pcluster

Version

10.06

Author / Distributor

MapleSoft (see http://www.maplesoft.com)

Description

Maple is a mathematics software tool, which provides a mathematical computation engine with fully integrated numerics and symbolics, all accessible from a WYSIWYG technical document environment. Live math is expressed in its natural 2D typeset notation, linked to state-of-the-art graphics and animations with full document editing and presentation control.

Running Program

To run Maple interactively, start the application in one of the following ways:

1. Using the command-prompt interface:

maple

2. Using the GUI front-end with the Maple10 standard interface:

xmaple &

3. Using the GUI front-end with the classical worksheet interface:

xmaple -cw &

If you are planning to run Maple interactively for more than 10 minutes, please run it on an interactive node instead of the pcluster headnode.

Maple can also be run on the batch queue, which is recommended if you are planning to run long jobs. Here is an example of how this can be done:

1. Create a Maple program first.

Sample Maple program zeros.mws with Maple commands to solve for the complex roots of a simple polynomial:

P:=z^5+5*z^4+11*z^3+8*z+22:
 zeros:=fsolve(P, z, complex):
 for j to nops([zeros]) do
     printf(`%f %f \n`, Re(zeros[j]), Im(zeros[j]))
 od:
quit:

2. Create a script file to run the Maple program.

Sample script file runMaple.sh to run a Maple program called zeros.mws and it saves the standard output of the execution in a file called zeros.output:

#!/bin/csh
cd your_working_directory 
maple < zeros.mws > zeros.output 
exit

Then submit the sample script file runMaple.sh to the queue:

ugsub T1-i1-t1-24h runMaple.sh

The queuename T1-i1-t1-24h used in this example can be replaced by other one processor queuenames (that is, the maximum runtime of 24h can be changed). Please refer to Running Jobs on pcluster for more information on how to submit batch jobs on pcluster.

Documentation

Examples of Maple programs are available in /usr/local/maple10/examples

The user manual is available in /usr/local/maple10/doc

Installation

Installed in /usr/local/maple10

System

AIX