Commit Graph
19 Commits
Author SHA1 Message Date
camierjs db6ac1970e Peach 1/4 && Cleanup 2019-06-09 21:23:11 -07:00
camierjs bcce24f6f1 ex24 with PA 2019-06-08 19:30:59 -07:00
camierjs 3e6d242b03 WIP non-square J for sdim=3 and dim=2 2019-06-07 16:00:19 -07:00
Veselin Dobrev 40378a046b Introduce a new Memory class for handling host + device allocations
and transfers.

The Memory class is now used by some MFEM classes (like Array and
Vector) which can be used on the Device. Such classes now provide
methods to access the underlying Memory object, e.g. GetMemory.

Updated ex1/ex1p and ex6/ex6p to not need to enable/disable the
Device at specific points -- the Device is now enabled just at the
start. Also, the same examples can now run on Device (e.g. -d cuda)
without the partial assembly option (-pa) -- full assembly will
be still done on CPU but the sparse matrix action and vector
operations will be done using the Device.

Reverted changes in class DenseMatrix related to using the Device.
At this point, DenseMatrix operations are only used for small matrices
and using the Device in this case is not a good option.
2019-05-16 14:53:39 -07:00
Stowell, Mark L fc3c0743ae Altering FGMRES to use the same iteration/pass numbers used in GMRES 2018-11-01 16:05:03 -07:00
Stowell, Mark L 684fbcb2e6 Changing to FGMRES to work with no preconditioner (Yes, I know... why not just use GMRES if you don't have a preconditioner?) 2018-11-01 15:44:06 -07:00
Veselin Dobrev c6dafc6483 A set of small fixes and cleanups uncovered by static analysis with
clang static analyzer.
2017-12-09 16:12:35 -08:00
Tzanio Kolev bac8f5c330 Merge branch 'master' into xsdk-cpissues-dev 2017-11-02 07:43:37 -07:00
Veselin Dobrev 4c2c0864bf A couple of updates in class NewtonSolver:
* Print the relative error, ||r||/||r_0||, in addition to the
  absolute error, ||r||.

* In the method ComputeScalingFactor, pass the optional rhs, b,
  instead of the correction vector, c, which can be accessed by
  derived classes as a data member of the class. Same holds true
  for the residual vector, r.
2017-10-18 21:14:44 -07:00
Veselin Dobrev 27ffe35369 Merged general/globalcomm.[ch]pp and general/globalostream.[ch]pp into
general/globals.[ch].

Renamed class WrappedOStream to OutStream and use a different
implementation in order to support the case when the OutStream is passed
as a parameter of type std::ostream.

In class MPI_Session, added an MPI_Comm parameter to both constructors,
with a default value of MPI_COMM_WORLD.

Hide the global variable MFEM_COMM_WORLD and allow access (read and
write) with global functions: GetGlobalMPI_Comm() and
SetGlobalMPI_Comm() - in the future, we may want to perform some tasks
when changing the "global" MPI communicator.

In mfem_error(), use GetGlobalMPI_Comm() instead of MPI_COMM_WORLD.

Minor formatting changes and #include reordering.
2017-09-29 15:52:51 -07:00
Tzanio abe85f4cb6 make style 2017-09-28 10:15:26 -07:00
Aaron Fisher aa040f3e64 Made everything work with the new mfem::out and mfem::err output. 2017-09-27 15:42:37 -07:00
Veselin Dobrev 025e925f0f [tmop-dev] PR review: a first pass of small tweaks. 2017-09-21 19:54:01 -07:00
Vladimir Tomov cdf6496eff Added a virtual method for scaling the Newton update in NewtonSolver.
Added the corresponding changes in exsmp.
2017-08-08 15:51:12 -07:00
Tzanio 1569425857 Version 3.3 2017-01-28 22:05:47 -08:00
Jakub Cerveny 125ff226e4 Version 3.2 2016-06-30 10:37:30 -07:00
Tzanio dbae60fe32 Version 3.1 2016-02-16 15:45:48 -08:00
Tzanio Kolev 6b72d34af6 Bugfix for VS2012 2015-01-29 17:08:16 -08:00
Tzanio Kolev 9d7774a03e Version 3.0 2015-01-26 15:07:34 -08:00