Commit Graph

54 Commits

Author SHA1 Message Date
chtong
78374341f0 Take out unused variable. 2003-03-05 16:48:06 +00:00
castilla
0da1274ee8 added prototype for HYPRE_BiCGSTABSetPrintLevel 2003-03-03 21:02:49 +00:00
ulrikey
7e2b51367a implemented the print_level/ logging standards 2003-02-28 17:56:03 +00:00
chtong
f3afe32619 Plug memory leak in case initial rnorm = 0.0. 2003-01-25 01:47:26 +00:00
chtong
56dffe4637 Put safeguard to not delete null pointers. 2002-12-20 01:40:10 +00:00
ulrikey
21567e6f9f added convergence check in GMRES and BiCGSTAB for use with the hybrid solver 2002-11-19 18:43:01 +00:00
chtong
a767b199b1 Fix other potential memory leaks. This version should be relatively clean. 2002-10-29 18:46:29 +00:00
chtong
8d61dac991 Fix a potential memory leak. 2002-10-29 18:12:38 +00:00
ulrikey
26fece6451 corrected BiCGSTABFunctions declaration 2002-10-25 18:27:29 +00:00
ulrikey
ce302c49e7 removed Identity functions 2002-10-24 22:30:27 +00:00
ulrikey
c9a59e73ed fixed a bug in the way functions for bicgstab were defined, which caused
use of the wrong function in case of no preconditioning
2002-10-24 21:47:52 +00:00
treadway
ae68dc30e2 Using global variable ${AR} for ar command, AIX needed extra flags
to support 64-bit object files (AR="ar -X64")
2002-10-24 20:54:38 +00:00
ulrikey
4e8d3d2ccc corrected a bug 2002-09-17 17:08:51 +00:00
painter
f1c8de55bd fix bug in arg type in HYPRE_PCGSetAbsoluteTolFactor 2002-09-16 20:57:32 +00:00
lambda
acece99ffc Added non-invasive solver non-numeric input data handling.
This error handling does not affect solver performance.
2002-09-09 17:41:47 +00:00
painter
e7cebbb5d3 For GMRES, implement the new logging and printing standard. The old function call remains for
backwards compatibility.  Also, GetResidual is implemented for use with the Babel interface.
2002-08-21 19:59:32 +00:00
painter
f25319f10e bug fixes, proper use of log level and print level 2002-08-21 19:54:51 +00:00
painter
eec19dd545 delete (incorrect) PCGGetPreconditionedResidual functions 2002-08-14 22:08:55 +00:00
chtong
c3fd834b96 Change the gamma check criterion( The previous version does not work for
ALE3D).
2002-07-26 18:38:39 +00:00
painter
ed636adacc restored the old SetLogging function. The functionality will be updated
in the very near future, but for now it does the same as before.

incorrect GetPreconditionedResidual functions added, will be changed back later
2002-07-24 22:35:04 +00:00
painter
fd33b0bdc6 Change *SetLogging functions to *SetPrintLevel, and add *SetLogLevel functions,
in accordance with the new logging/printing standard.
Add *GetResidual functions for use with the new Babel interface (they require
SetLogLevel).
2002-07-19 18:21:19 +00:00
painter
eb8824d211 HYPRE-level interface for ConvergenceFactorTol (cf_tol).
Minor change in comments.
2002-07-17 22:29:35 +00:00
painter
bdc8ffdb9e Test for NaNs in input; if so return an error. 2002-07-03 23:18:07 +00:00
chtong
9189b7615c Take out unused variables. 2002-06-28 16:33:30 +00:00
painter
487294a329 change name of krylov library 2002-06-20 20:05:27 +00:00
painter
73f93722e6 Three things to prevent problems with zero, subnormal, or other tiny numbers:
1. test for ==zero before division in alpha calculation; error exit if so
2. test for near-subnormal value of gamma at end of iteration; normal exit if so
3. absolute error tolerance available: stopping test which divided by
   <b,b> now divides by <b,b>+atolf.  Default is atolf=0.  The previous purely
   absolute error tolerance test remains there.
2002-06-20 20:00:06 +00:00
ulrikey
5857cc050f erased previous committed change 2002-06-20 19:01:51 +00:00
ulrikey
1e8f9dfc5e added a second criterion to check the convergence factor, which takes
effect when pcg fulfills the first stopping criterion, this works only
when rel_change is set
2002-06-20 16:19:29 +00:00
ulrikey
1de3018f71 Added a parameter Converged to PCGData structure, which indicates
whether PCG has converged and is of importance for the relchange
stopping criterium
2002-06-18 17:46:19 +00:00
chtong
c14fb0f54a Take away variable that is not used. 2002-04-30 21:00:28 +00:00
ulrikey
7d09eca5e0 added the parameter rel_residual_norm in the PCGData structure.
Now one can always retrieve the final residual norm (even for logging =0)
This is consistent with the other Krylov solvers
2002-04-19 19:12:37 +00:00
ulrikey
98213b6e73 commented out declaration of log_file_name 2002-03-26 23:03:40 +00:00
jjones
8a554a9650 Moved initial calculation of i_prod_0 and added logic to compute
it in the correct norm (two norm or preconditioner norm).
Previous code incorrectly used two norm always.
2002-03-21 23:50:00 +00:00
painter
5fec088b02 don't declare unreferenced variables 2002-03-12 19:15:16 +00:00
painter
95e58cfc67 Exit in the rare case where gamma==0 exactly (can come from pathological
input like near-zero b in Ax=b).
2002-03-04 21:48:31 +00:00
ulrikey
131111861b change in logging.
for logging = 0,  no printout, norms are not stored (as before)
for logging = 1, no printout, norms are stored
for logging > 1, norms are stored and printed to standard output on proc. 0
during each iteration step.
2002-01-15 22:47:42 +00:00
painter
753a17fd72 bug fix in format of logging 2001-08-24 17:00:21 +00:00
painter
31c6b5ac15 Change logging to be similar to that in the pcg functions formerly in
parcsr_ls.

This required an additional function, CommInfo, in hypre_PCGFunctions.
Such a function has long been included in the corresponding structure
for other Krylov methods.
2001-08-22 22:11:25 +00:00
ulrikey
f878bda347 removed #if 0 and #endif which prevented the residual norms from being
printed when logging is set
2001-08-16 16:11:00 +00:00
chtong
0391d39989 Fix a memory leak problem with multiple calls to Setup with the same
PCG instantiation.
2001-06-27 23:58:13 +00:00
painter
b5cea2bc6a regenerated this file to reflect recent changes in gmres.c 2001-04-12 17:17:07 +00:00
painter
14be0ceee2 put divide by 0 test before dividing 2001-04-11 17:45:36 +00:00
painter
0d31c24a9a Add rel_change test (just like in PCG) to GMRES. 2001-04-10 23:03:43 +00:00
falgout
3ac2d0d8d7 _linear_solvers=>_ls translations 2000-12-14 18:17:26 +00:00
treadway
de1a06a935 correcting include paths 2000-12-12 00:23:28 +00:00
painter
5a04db7d65 user-callable CGNR and BiCGSTAB 2000-11-28 22:31:21 +00:00
painter
01174a20ba user-callable functions for GMRES 2000-11-28 00:40:25 +00:00
falgout
29edfc9222 Fixed srcdir typo. 2000-11-21 01:41:48 +00:00
treadway
3f0e022432 added $(srcdir) information back in 2000-11-21 00:03:44 +00:00
painter
8054fff84b more detailed guard code
Copy certain .h files into krylov.h, rather than #include them - because krylov.h
gets copied into hypre/include, and the other files don't.
2000-11-16 22:28:35 +00:00