Adept Scientific - English
The world's best software for research, science and engineering.
flag arrow
clearclear
 

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKusdedksvnofi
Home
Products
Training
Consultancy
 Buy Online
Downloads
Education
Support
My Adept
International |  About Us |  Contact Us |  Press Room |  Jobs


The Next Steps

• Ask us a question
• Maple Product Tour
• Buy Maple Now
• View Maple Pricing
• Find out about Online Training
• Download a Brochure
• Request a Brochure
• Download a Demo
• Request a Demo
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 11 Professional
Maple 11 Academic
Maple 11 Student Use
Recorded Online Seminars
FREE Training Resources


MapleNet
Maple T.A.
MapleConnect
BlockImporter for Simulink
BlockBuilder for Simulink
Maple Toolboxes
Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

View Maple 10 in Action
Product Comparison Chart

Latest Information

New Features: Professional
New Features: Academic
The Maple Reporter
The Maple Reporter Online
Numerical Algorithms Group
(NAG)


Service & Support

Maple 10 Training Videos
MaplePrimes, blogs, forums
Elite Maintenance Program
Application Centre
Powertools
Maple User Group (MUG)
Join the Maple User Group
(MUG)

Search the Knowledge Base
Technical Support request

List Archives >  Maple User Group List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[MUG] Run out of memory

Search email archive for  

[MUG] Run out of memory
Author: Robert Fischer    Posted: Thu, 31 Oct 2002 15:58:34 +0100

>> From: Robert Fischer "rfischer"

Hello Maple users!

At first I work with Maple 5 Release 5 under Unix.
I wrote a loop aiming to do the following:
Maple reads in data produced by an external C programm using the
readdata-command. After some computation and conversion of the data in
a list of list of points the data is given to the surfdata-command to
yield a 3d plot. This plot is saved in the jpg-format and put into a
directory using interface and plotoutput commands.
This loop should serve to produce hundreds of pictures of my data.
After about 20 goings of my loop the following error occurs: could not
fork process. I have found out that Maple has used all memory my computer
provides. Have you an idea how to avoid this problem ?

The second problem which may be connected to my problem mentioned above is
: Within the loop all results and assignments are presented on the screen.
I did not put : behind the od of the loop in order to prevent the
presentation on the screen because if I did so my pictures would not be
produced in the jpeg and put into the directory.
Do you have a suggestion how to produce the plots avoiding the screen
output?

Thank for your suggestions.

Yours,
Robert

[MUG] Re: Run out of memory
Author: Maple User Group    Posted: Mon, 4 Nov 2002 10:21:38 -0500 (

>> From: Maple User Group "maple_gr"

-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

From: "Dr Francis J. Wright" "F.J.Wright"
To: "maple-list"
Subject: Run out of memory
Date: Fri, 1 Nov 2002 16:41:30 -0000

From: "Robert Fischer" "rfischer"
| At first I work with Maple 5 Release 5 under Unix.
| I wrote a loop aiming to do the following:
| Maple reads in data produced by an external C programm using the
| readdata-command. After some computation and conversion of the data in
| a list of list of points the data is given to the surfdata-command to
| yield a 3d plot. This plot is saved in the jpg-format and put into a
| directory using interface and plotoutput commands.
| This loop should serve to produce hundreds of pictures of my data.
| After about 20 goings of my loop the following error occurs: could not
| fork process. I have found out that Maple has used all memory my computer
| provides. Have you an idea how to avoid this problem ?
|
| The second problem which may be connected to my problem mentioned above is
| : Within the loop all results and assignments are presented on the screen.
| I did not put : behind the od of the loop in order to prevent the
| presentation on the screen because if I did so my pictures would not be
| produced in the jpeg and put into the directory.
| Do you have a suggestion how to produce the plots avoiding the screen
| output?


I wouldn't use Maple for this kind of plotting; I would use something like
gnuplot (which is free). Maple graphics are excellent for investigating
data generated within Maple, but trying to use Maple just as a graphics
back-end does not seem like a good idea to me.

Francis


-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Fri, 1 Nov 2002 08:39:51 -0800 (PST)
From: Robert Israel "israel"
To: "maple-list"
Subject: Run out of memory


Worksheets with lots of 3D plots can sometimes take up inordinate amounts
of memory under Unix. But there's no need to display the plots, or any other
results, on the screen. All you have to do is something like this:

for ... do
...
plotsetup(jpeg, plotoutput=..., plotoptions=...);
print(surfdata(...));
...
od:
plotsetup(default);

Robert Israel "israel"
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2


-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Fri, 01 Nov 2002 11:10:43 -0800
From: Allan Wittkopf "awittkop"
Subject: Run out of memory
To: "maple-list"

Could you send us the code for this problem.

Thanks,
Allan


-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Sat, 2 Nov 2002 02:17:25 -0500 (EST)
From: Carl Devore "devore"
To: "maple-list"
Subject: Run out of memory


You mention using plotoutput, but not plotsetup. That might be the
problem. I have not tested the following in Maple 5, but it works in
Maple 8 without any appreciable build up of memory and without any screen
display:

R:= rand(-50..50):
for n to 100 do
plotsetup(jpeg, plotoutput= sprintf("%d.jpg", n));
print(plots[surfdata]([seq([seq([i,j,R()], i= 1..50)], j= 1..50)]))
od:

Previous by date: [MUG] Re: filter transformations -- basic algebraic manipulations, Maple User Group
Next by date: [MUG] operator overloading, Jarausch
Previous thread: [MUG] new to Maple, how to load a library, Thomas Wieder
Next thread: [MUG] operator overloading, Jarausch



Ready to buy?

Maple - single user licence
Add to shopping basket
$ 1,895.00
Upgrade to Maple 12 from v11
Add to shopping basket
$ 995.00
Upgrade to Maple 12 from v10 & below
Add to shopping basket
$ 1,395.00

Featured Downloads

What's New in Maple 11 for Professionals
Maple White Paper: Technical Knowledge - An Asset You Can Afford to Lose?
Maple in Electronics Application Pack
Maple in Robotics & Aerospace Application Pack
Maple in Finance Application Pack

Product Reviews

"Without the Maple software, we would have to spend weeks generating the equations of motion for every experiment. Then the chances that we did it right would basically be near zero. There would always be a mistake somewhere. It is very difficult to set up a dynamic motion model by hand."
- Jean-Claude PiedBeouf, Ph.D Manager of Robotics, Canadian Space Agency

"Its very good - highly accurate and easy to use. The speed of Maple allows me to change equations and quickly reintegrate them into the application, so more possibilities can be explored to achieve the precise effect desired."
Shawn Neely, Senior R & D Director for PDI/Dreamworks
adept

Top of the Page

Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2007, Adept Scientific plc.
Site designed and maintained by Adeptise

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055