[Trilinos-Users] NOX example error

Who Dat izonth at hotmail.com
Wed Nov 5 14:29:32 MST 2008


I copied over the nox example from the link below into my directory, compiled and ran the executable. At the end of execution I receive an error that looks to be related to freeing memory. The output of nox_ex2 in my directory is below. If I run the nox_ex2 executable generated by compiling trilinos in the trilinos didasko directory I get the same output but without the error.
 
Any ideas on why switching the directory causes the error?
 
http://trilinos.sandia.gov/packages/docs/dev/packages/didasko/doc/html/nox_ex2.html
 
************************************************************************
-- Parameters Passed to Nonlinear Solver --
     Nonlinear Solver = Line Search Based     Direction ->       Method = Newton      Newton ->        Forcing Term Method = Constant       Rescue Bad Newton Solve = 1   [default]       Linear Solver ->         Aztec Preconditioner = ilu   [unused]        Aztec Solver = GMRES        Compute Scaling Manually = 1   [default]        Convergence Test = r0   [default]        Max Age Of Prec = 1   [default]        Max Iterations = 800   [unused]        Orthogonalization = Classical   [default]        Output Frequency = 50        Output Solver Details = 1   [default]        Preconditioner = None   [default]        Preconditioner Operator = Use Jacobian   [default]        Preconditioner Reuse Policy = Rebuild   [default]        RCM Reordering = Disabled   [default]        Size of Krylov Subspace = 300   [default]        Throw Error on Prec Failure = 1   [default]        Tolerance = 0.0001        Zero Initial Guess = 0   [default]     Line Search ->       Method = More'-Thuente      More'-Thuente ->        Curvature Condition = 0.9999   [default]       Default Step = 1   [default]       Interval Width = 1e-15   [default]       Max Iters = 20   [default]       Maximum Step = 1e+06   [default]       Minimum Step = 1e-12   [default]       Optimize Slope Calculation = 0   [default]       Recovery Step = 1   [default]       Recovery Step Type = Constant   [default]       Sufficient Decrease = 0.0001   [default]       Sufficient Decrease Condition = Armijo-Goldstein   [default]     Printing ->       MyPID = 0      Output Information = 63      Output Precision = 3      Output Processor = 0     Solver Options ->       Status Test Check Type = Minimal   [default]************************************************************************-- Status Test Results --**...........OR Combination ->   **...........F-Norm = 1.000e+00 < 1.000e-04               (Length-Scaled Two-Norm, Absolute Tolerance)  **...........Number of Iterations = 0 < 20************************************************************************
************************************************************************-- Nonlinear Solver Step 0 -- ||F|| = 5.477e+00  step = 0.000e+00  dx = 0.000e+00************************************************************************
       CALCULATING FORCING TERM       Method: Constant       Forcing Term: 0.0001
************************************************************************-- More'-Thuente Line Search --   1: step = 1.000e+00 old f = 5.477e+00 new f = 2.506e-02 (STEP ACCEPTED!)************************************************************************************************************************************************-- Status Test Results --**...........OR Combination ->   **...........F-Norm = 4.575e-03 < 1.000e-04               (Length-Scaled Two-Norm, Absolute Tolerance)  **...........Number of Iterations = 1 < 20************************************************************************
************************************************************************-- Nonlinear Solver Step 1 -- ||F|| = 2.506e-02  step = 1.000e+00  dx = 4.953e-01************************************************************************
       CALCULATING FORCING TERM       Method: Constant       Forcing Term: 0.0001
************************************************************************-- More'-Thuente Line Search --   1: step = 1.000e+00 old f = 2.506e-02 new f = 9.971e-07 (STEP ACCEPTED!)************************************************************************
************************************************************************-- Nonlinear Solver Step 2 -- ||F|| = 9.971e-07  step = 1.000e+00  dx = 2.451e-03 (Converged!)************************************************************************
************************************************************************-- Final Status Test Results --Converged....OR Combination ->   Converged....F-Norm = 1.820e-07 < 1.000e-04               (Length-Scaled Two-Norm, Absolute Tolerance)  ??...........Number of Iterations = -1 < 20************************************************************************
-- NOX solver did not converge --
-- Parameter List From Solver --Nonlinear Solver = Line Search BasedDirection ->  Method = Newton Newton ->   Forcing Term Method = Constant  Rescue Bad Newton Solve = 1   [default]  Linear Solver ->    Aztec Preconditioner = ilu   [unused]   Aztec Solver = GMRES   Compute Scaling Manually = 1   [default]   Convergence Test = r0   [default]   Max Age Of Prec = 1   [default]   Max Iterations = 800   Orthogonalization = Classical   [default]   Output Frequency = 50   Output Solver Details = 1   [default]   Preconditioner = None   [default]   Preconditioner Operator = Use Jacobian   [default]   Preconditioner Reuse Policy = Rebuild   [default]   RCM Reordering = Disabled   [default]   Size of Krylov Subspace = 300   [default]   Throw Error on Prec Failure = 1   [default]   Tolerance = 0.0001   Use Preconditioner as Solver = 0   [default]   Zero Initial Guess = 0   [default]   Output ->     Achieved Tolerance = 2.99431e-05   [unused]    Number of Linear Iterations = 8   [unused]    Total Number of Linear Iterations = 17Line Search ->  Method = More'-Thuente More'-Thuente ->   Curvature Condition = 0.9999   [default]  Default Step = 1   [default]  Interval Width = 1e-15   [default]  Max Iters = 20   [default]  Maximum Step = 1e+06   [default]  Minimum Step = 1e-12   [default]  Optimize Slope Calculation = 0   [default]  Recovery Step = 1   [default]  Recovery Step Type = Constant   [default]  Sufficient Decrease = 0.0001   [default]  Sufficient Decrease Condition = Armijo-Goldstein   [default] Output ->   Total Number of Failed Line Searches = 0   [unused]  Total Number of Line Search Calls = 2   [unused]  Total Number of Line Search Inner Iterations = 0   [unused]  Total Number of Non-trivial Line Searches = 0   [unused]Output ->  2-Norm of Residual = 9.97076e-07   [unused] Nonlinear Iterations = 2   [unused]Printing ->  MyPID = 0 Output Information = 63 Output Precision = 3 Output Processor = 0Solver Options ->  Status Test Check Type = Minimal   [default]Computed solution : Epetra::Vector     MyPID           GID               Value           0             0                 -0.0461         0             1                 -0.0663         0             2                 -0.0721         0             3                 -0.0663         0             4                 -0.0461         0             5                 -0.0706         0             6                  -0.104         0             7                  -0.114         0             8                  -0.104         0             9                 -0.0706         0            10                 -0.0813         0            11                  -0.122         0            12                  -0.134         0            13                  -0.122         0            14                 -0.0813         0            15                 -0.0813         0            16                  -0.122         0            17                  -0.134         0            18                  -0.122         0            19                 -0.0813         0            20                 -0.0706         0            21                  -0.104         0            22                  -0.114         0            23                  -0.104         0            24                 -0.0706         0            25                 -0.0461         0            26                 -0.0663         0            27                 -0.0721         0            28                 -0.0663         0            29                 -0.0461*** glibc detected *** ./noxexample: free(): invalid next size (normal): 0x0000000000a0e660 ***======= Backtrace: =========/lib/libc.so.6[0x7f3d82c4e08a]/lib/libc.so.6(cfree+0x8c)[0x7f3d82c51c1c]./noxexample[0x40be2e]./noxexample[0x40db52]./noxexample[0x40ac80]./noxexample[0x40a1bb]/lib/libc.so.6(__libc_start_main+0xf4)[0x7f3d82bf81c4]./noxexample(__gxx_personality_v0+0x321)[0x407749]======= Memory map: ========00400000-007f7000 r-xp 00000000 08:01 8129227                            /home/my_path/simulator/noxexample009f7000-009f9000 rw-p 003f7000 08:01 8129227                            /home/my_path/simulator/noxexample009f9000-00aed000 rw-p 009f9000 00:00 0                                  [heap]7f3d7c000000-7f3d7c021000 rw-p 7f3d7c000000 00:00 0 7f3d7c021000-7f3d80000000 ---p 7f3d7c021000 00:00 0 7f3d829aa000-7f3d829c7000 r-xp 00000000 08:01 2018353                    /usr/lib/libg2c.so.0.0.07f3d829c7000-7f3d82bc7000 ---p 0001d000 08:01 2018353                    /usr/lib/libg2c.so.0.0.07f3d82bc7000-7f3d82bc8000 rw-p 0001d000 08:01 2018353                    /usr/lib/libg2c.so.0.0.07f3d82bc8000-7f3d82bda000 rw-p 7f3d82bc8000 00:00 0 7f3d82bda000-7f3d82d32000 r-xp 00000000 08:01 7328496                    /lib/libc-2.7.so7f3d82d32000-7f3d82f32000 ---p 00158000 08:01 7328496                    /lib/libc-2.7.so7f3d82f32000-7f3d82f35000 r--p 00158000 08:01 7328496                    /lib/libc-2.7.so7f3d82f35000-7f3d82f37000 rw-p 0015b000 08:01 7328496                    /lib/libc-2.7.so7f3d82f37000-7f3d82f3c000 rw-p 7f3d82f37000 00:00 0 7f3d82f3c000-7f3d82f49000 r-xp 00000000 08:01 7328221                    /lib/libgcc_s.so.17f3d82f49000-7f3d83149000 ---p 0000d000 08:01 7328221                    /lib/libgcc_s.so.17f3d83149000-7f3d8314a000 rw-p 0000d000 08:01 7328221                    /lib/libgcc_s.so.17f3d8314a000-7f3d831ca000 r-xp 00000000 08:01 7328504                    /lib/libm-2.7.so7f3d831ca000-7f3d833c9000 ---p 00080000 08:01 7328504                    /lib/libm-2.7.so7f3d833c9000-7f3d833cb000 rw-p 0007f000 08:01 7328504                    /lib/libm-2.7.so7f3d833cb000-7f3d834ba000 r-xp 00000000 08:01 2016131                    /usr/lib/libstdc++.so.6.0.97f3d834ba000-7f3d836ba000 ---p 000ef000 08:01 2016131                    /usr/lib/libstdc++.so.6.0.97f3d836ba000-7f3d836c0000 r--p 000ef000 08:01 2016131                    /usr/lib/libstdc++.so.6.0.97f3d836c0000-7f3d836c3000 rw-p 000f5000 08:01 2016131                    /usr/lib/libstdc++.so.6.0.97f3d836c3000-7f3d836d6000 rw-p 7f3d836c3000 00:00 0 7f3d836d6000-7f3d83794000 r-xp 00000000 08:01 2017224                    /usr/lib/libgfortran.so.2.0.07f3d83794000-7f3d83993000 ---p 000be000 08:01 2017224                    /usr/lib/libgfortran.so.2.0.07f3d83993000-7f3d83995000 rw-p 000bd000 08:01 2017224                    /usr/lib/libgfortran.so.2.0.07f3d83995000-7f3d83a0e000 r-xp 00000000 08:01 6438953                    /usr/lib/libblas.so.3.07f3d83a0e000-7f3d83c0e000 ---p 00079000 08:01 6438953                    /usr/lib/libblas.so.3.07f3d83c0e000-7f3d83c0f000 rw-p 00079000 08:01 6438953                    /usr/lib/libblas.so.3.07f3d83c0f000-7f3d8423d000 r-xp 00000000 08:01 6438933                    /usr/lib/liblapack.so.3.07f3d8423d000-7f3d8443d000 ---p 0062e000 08:01 6438933                    /usr/lib/liblapack.so.3.07f3d8443d000-7f3d84441000 rw-p 0062e000 08:01 6438933                    /usr/lib/liblapack.so.3.07f3d84441000-7f3d84545000 rw-p 7f3d84441000 00:00 0 7f3d84545000-7f3d84562000 r-xp 00000000 08:01 7328232                    /lib/ld-2.7.so7f3d84744000-7f3d84748000 rw-p 7f3d84744000 00:00 0 7f3d8475e000-7f3d84762000 rw-p 7f3d8475e000 00:00 0 7f3d84762000-7f3d84764000 rw-p 0001d000 08:01 7328232                    /lib/ld-2.7.so7fff8c74e000-7fff8c763000 rw-p 7ffffffea000 00:00 0                      [stack]7fff8c7fe000-7fff8c800000 r-xp 7fff8c7fe000 00:00 0                      [vdso]ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0           Aborted
_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live
http://clk.atdmt.com/MRT/go/119462413/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://software.sandia.gov/mailman/private/trilinos-users/attachments/20081105/3a773812/attachment-0001.html 


More information about the Trilinos-Users mailing list