Re: Adpack1.8 with linux - crashes ( No.1 ) |
- Date: 2005/02/15 15:16
- Name: T.Ozaki
- Hi,
I guess that your problem is related to a memory limitation in your computational environment or your compiler.
There are several ways to resolve this problem as follows:
(1) reduce array size in adpack.h, e.g.
ASIZE1 13000 ASIZE2 7 ASIZE3 7 ASIZE4 10
(2) find some appropriate compiler options to enlarge the available memory size, e.g.,
gcc -O3 -Wl,--heap,900000,--stack,900000 -static
The options should depend on your system.
(3) use ADPACK1.6 instead of ADPACK1.8
The difference between two versions is slight with respect to the functionalities. So, if the version 1.6 works well, you can use 1.6 instead of 1.8 without any disbenefit. You will find a pre-defined value, 'LimitE', in the file, adpack.h. The selection of LimitE seems to be quite important to accurately solve 1-D differential equations. I use 1.0e+150 and 1.0e+303 for LimitE in ADPACK1.6 and 1.8, respectively. In my experience, 1.0e+303 looks better in linux and gcc with respect to numerical robustness. This is the main difference between two versions.
Regards,
T.Ozaki
|
Re: Adpack1.8 with linux - crashes ( No.2 ) |
- Date: 2005/02/15 17:26
- Name: Ken Lux
- Thanks for the tips. Tweaking the array sizes fixed it.
Maybe its time to buy some more memory :)
|
|