OptimizeBandwidth problem

Numerical methods and mathematical models of Elmer
Post Reply
vinphend
Posts: 5
Joined: 27 Oct 2009, 21:48

OptimizeBandwidth problem

Post by vinphend »

I wrote electrostatic model http://slil.ru/28168098 , but it stops solving it in OptimizeBandwidth section.
Any ideas how to get the solution?

ElmerGUItester is all green, Solver log is:
ELMER SOLVER (v 5.5.0) STARTED AT: 2009/11/06 10:01:08
MAIN:
MAIN: ==========================================
MAIN: E L M E R S O L V E R S T A R T I N G
MAIN: Library version: 5.5.0 (Rev: )
MAIN: HYPRE library linked in.
MAIN: ==========================================
MAIN:
MAIN:
MAIN: -----------------------
MAIN: Reading Model ...
Model Input: Unlisted keyword: [flow solution name] in section: [equation 1]
MAIN: Done
MAIN: -----------------------
Loading user function library: [StatElecSolve]...[StatElecSolver_Init]
Loading user function library: [StatElecSolve]...[StatElecSolver]
OptimizeBandwidth: ---------------------------------------------------------
OptimizeBandwidth: Computing matrix structure for: electrostatics...done.
OptimizeBandwidth: Half bandwidth without optimization: 338073
OptimizeBandwidth:

terminal output is:
tiga@fileServer:~$ export ELMER_HOME=/usr && export ELMERGUI_HOME=/usr/share/ElmerGUI && export ELMER_POST_HOME=/usr/share/elmerpost && export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
tiga@fileServer:~$ ElmerGUI
Load /usr/share/ElmerGUI/edf/egini.xml... done
Load tetlib... done
Unable to get proc address for 'tetgenio'
Constructing ElmergridAPI... done
Load /usr/share/ElmerGUI/edf/edf.xml... done
Load /usr/share/ElmerGUI/edf/helmholtz.xml... done
Load /usr/share/ElmerGUI/edf/k-epsilon.xml... done
Load /usr/share/ElmerGUI/edf/linearelasticity.xml... done
Load /usr/share/ElmerGUI/edf/statcurrent.xml... done
Load /usr/share/ElmerGUI/edf/elasticplate.xml... done
Load /usr/share/ElmerGUI/edf/savescalars.xml... done
Load /usr/share/ElmerGUI/edf/poissonboltzmann.xml... done
Load /usr/share/ElmerGUI/edf/electrostatics.xml... done
Load /usr/share/ElmerGUI/edf/heatequation.xml... done
Load /usr/share/ElmerGUI/edf/meshdeform.xml... done
Load /usr/share/ElmerGUI/edf/navier-stokes.xml... done
Load /usr/share/ElmerGUI/edf/saveline.xml... done
Load /usr/share/ElmerGUI/edf/resultoutput.xml... done
Load /usr/share/ElmerGUI/edf/freesurface.xml... done
Load /usr/share/ElmerGUI/edf/reynolds.xml... done
Initialize GL
Vendor: Tungsten Graphics, Inc
Renderer: Mesa DRI Intel(R) G33 GEM 20090712 2009Q2 RC3
Version: 1.4 Mesa 7.6
Project directory: /home/tiga/tmp/sp3proj9
Clearing model data
Loading project document...
Loading mesh files...
Loading elmer mesh files
Summary:
Nodes: 340385
Point elements: 0
Edge elements: 12144
Surface elements: 680480
Volume elements: 0
Found 1020864 edges on boundary
Bcs/materials on surface elements: 5
Bcs/materials on edge elements: 42
Bcs/materials on point elements: 0
Generating lists to display
Generated 54 lists
Ready
Bcs/materials on surface elements: 5
Bcs/materials on edge elements: 42
Bcs/materials on point elements: 0
Generating lists to display
Generated 54 lists
Reset model view
Loading geometry input file
Geometry input file: /home/tiga/tmp/sp3proj9/
Unable to open file: file type unknown
Regenerating and saving the solver input file...
Ready
Solver emitted signal: QProcess::ProcessState: 1
Solver emitted signal: QProcess::ProcessState: 2
Solver started
Solver emitted error signal: 1
Solver emitted signal: QProcess::ProcessState: 0
Solver ready

System - Ubuntu 9.10, Elmer was installed from repository.
raback
Site Admin
Posts: 4841
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: OptimizeBandwidth problem

Post by raback »

Hi

(~copy-paste from the old discussion list)

"Sometimes, depending on the configuration of the system and compiler, stack size may become a bottleneck in what comes to bandwidth optimization (it is a recursive task). The default linux (also other unixes) stacksizes come out very small.

If this is the case, you could try to unlimit the stack size by giving an appropriate system command (ulimit or unlimit in Linux).
using *sh (sh,bash,ksh,...) shells do:

Code: Select all

ulimit -s unlimited
using *csh (csh,tcsh,...) shells do:

Code: Select all

unlimit stacksize
If that does not help (in Windows environment) and you are using gcc/gfortran, you could also try adjusting the stack size provided by the compiler for example by defining

Code: Select all

$ export LDFLAGS="-Xlinker --stack=1000000000"
and then reconfiguring/recompiling the binaries (see gcc-manuals or more details about -Xlinker (or -Wl) and --stack). It is also recommended to use gfortran 4.2 or newer."

-Peter
hazelsct
Posts: 153
Joined: 05 Oct 2009, 17:02
Location: Boston, MA, USA
Contact:

Re: OptimizeBandwidth problem

Post by hazelsct »

Also, if you recompile, consider doing so from the www.opennovation.org/ubuntu repository which has subversion r4262 vs. r4214 in the Ubuntu archive.
vinphend
Posts: 5
Joined: 27 Oct 2009, 21:48

Re: OptimizeBandwidth problem

Post by vinphend »

raback wrote: If this is the case, you could try to unlimit the stack size by giving an appropriate system command (ulimit or unlimit in Linux).
using *sh (sh,bash,ksh,...) shells do:

Code: Select all

ulimit -s unlimited
Thanks a lot! It helped!
Post Reply