Commit Graph
512 Commits
Author SHA1 Message Date
Veselin Dobrev 006a1590ef Comment out unnecessary call to HostReadWrite. 2020-03-02 16:21:08 -08:00
camierjs 3f3013084d Dont need to Host-read tdof vector 2020-03-02 13:55:25 -08:00
camierjs da45d8d6a5 Fix ex24p uninitialized X vector 2020-03-02 11:53:17 -08:00
Tzanio 88a78bb6aa Merge branch 'master' into bsd-relicense
Conflicts:
	CONTRIBUTING.md
2020-03-02 09:28:37 -08:00
rcarson3 d4b1ec5f05 AccumulateAndCount* bug fixes for device runs
Whenever GridFunction::ProjectDiscCoefficient* was called with the device being run the gridfunction didn't necessarily have the gridfunction data on the host thus causing errors when the AccumulateAndCount* functions were called.
2020-02-27 18:57:47 -08:00
Tzanio 2bcd8b5293 Merge branch 'master' into ndpa-dev
Conflicts:
	examples/CMakeLists.txt
	examples/makefile
	fem/bilinearform_ext.cpp
2020-02-27 10:32:08 -08:00
Tzanio e689fd5b28 Merge branch 'master' into bsd-relicense 2020-02-27 09:29:25 -08:00
Tzanio Kolev cfbe0bf5ac Merge pull request #1271 from salazardetroya/zz-with-coeff
Consider the coefficient in the BilinearIntegrator when computing the fluxes in ZienkiewiczZhuEstimator
2020-02-23 17:57:53 -08:00
Tzanio 2caa222edf A number of changes to switch the code from LGPL-2.1 to BSD-3:
- Updated LICENSE, README, CHANGELOG and CONTRIBUTING.md
- Removed COPYRIGHT, added NOTICE
- Updated the headers in all source files, makefiles, etc.
2020-02-23 11:16:46 -08:00
Jakub Červený f6762fb85b More changes to make ex1 compilable. 2020-02-13 13:31:44 +01:00
Ido Akkerman fe3446d50f Remove white space 2020-02-10 17:33:15 +01:00
Miguel Salazar de Troya 58ed2c2333 adding setter and fixing with_coeff to bool 2020-02-03 16:23:44 -08:00
Dylan Copeland a02409f8c9 Removed absolute value in diagonal assembly, by using a new MultTransposeUnsigned function in ElementRestriction. Made some changes for gpu support. 2020-02-03 09:58:28 -08:00
Miguel Salazar de Troya 32a0104a0d passing the flag to consider the coefficient in the flux computation 2020-01-29 10:06:49 -08:00
Stowell, Mark L 8fb34a4cad Bug fixes in GetValues methods (thanks to unit testing) 2020-01-23 17:03:06 -08:00
Stowell, Mark L 69f6e413f1 Simplifying GetValues methods by using GetValue methods 2020-01-23 14:52:05 -08:00
Stowell, Mark L 08c6d61928 Adding implementation of GetValues method so that examples will compile 2020-01-23 14:29:32 -08:00
Ido Akkerman fef5517ec2 Merge branch 'master' into laplacian_dev 2020-01-09 10:14:25 +01:00
Stowell, Mark L 0486231ce9 Merge remote-tracking branch 'origin/master' into lp-error-est-dev 2020-01-08 14:04:16 -08:00
Stowell, Mark L ffa13d0e65 Merge remote-tracking branch 'origin/master' into no-tet-reorder-dev 2019-12-19 09:38:56 -08:00
Stowell, Mark L c0a4a3b0d5 Adding more general GetValue and GetVectorValue methods to GridFunction 2019-12-16 21:52:17 -08:00
Stowell, Mark L d8ed4d4cd2 Adding GridFunction::GetValue methods that take transformation objects rather than simple indices 2019-12-15 23:35:58 -08:00
Stowell, Mark L 603cb4cb28 Merge remote-tracking branch 'origin/master' into no-tet-reorder-dev
# Conflicts:
#	fem/bilinearform.cpp
#	fem/pfespace.cpp
2019-08-22 20:15:22 -07:00
Stowell, Mark L 7e61ddc5f8 Increasing integration order in element-wise Lp error computations 2019-08-22 14:46:58 -07:00
Stowell, Mark L 484609f57a Merge remote-tracking branch 'origin/master' into lp-error-est-dev 2019-08-22 10:47:55 -07:00
Ido Akkerman c606ff21d5 Merge branch 'master' into laplacian_dev 2019-06-05 09:41:55 +02:00
artv3 80f781df02 first pass at app fixes 2019-05-30 06:29:07 -07:00
Tzanio 9fc570b1cc Merge branch 'master' into builddoftoarrays-dev 2019-05-25 22:23:58 -07:00
Tzanio b3c3c5cf4c Merge branch 'memory-dev' of github.com:mfem/mfem into memory-dev 2019-05-24 14:23:56 -07:00
Tzanio 1a69dcff78 Replaced FIXMEs with TODO or NOTE 2019-05-24 14:23:39 -07:00
camierjs bd08fa9592 Merge branch 'memory-dev' of github.com:mfem/mfem into memory-dev 2019-05-24 14:21:12 -07:00
camierjs 283264ade4 {Read,Write,ReadWrite}Access => {Read,Write,ReadWrite}
Add shortcut for Host{Read,Write,ReadWrite}
2019-05-24 14:08:45 -07:00
Tzanio e36d1ea8fd Several change to (hopefully) simplify the interface:
* The parameter of Vector::UseDevice(bool) no longer has a default value. All
  the calls to UseDevice() in operator.cpp bilinearform_ext.cpp gridfunc.?pp and
  linearform.?pp have been replaced with UseDevice(true).

* Added shortcuts for the device flags of the Memory objects inside the Vector
  and Array classes:

    bool Array::UseDevice()
    bool Vector::UseDevice()

* The internal device flag in Memory::FlagMask is now called USE_DEVICE (it was
  previously called EXEC_FLAG). The accessor function for this flag have been
  renamed:

    bool Memory::GetExecFlag()     -> bool Memory::UseDevice()
    void Memory::SetExecFlag(bool) -> void Memory::UseDevice(bool)

* Further renamed:

    Memory::SyncWith         -> Memory::Sync
    Memory::SyncAliasToBase  -> Memory::SyncAlias
    Memory::SyncAliasToBase_ -> Memory::SyncAlias_

* Replaced FIXME with TODO in general/mem_manager.cpp
2019-05-24 14:01:15 -07:00
Veselin Dobrev 798ded1f55 Merge branch 'master' into memory-dev 2019-05-22 23:53:04 -07:00
Robert W. Anderson ba5904e66a automatically build dof_to arrays in functions where they are needed 2019-05-21 12:38:26 -07:00
Veselin Dobrev f8d1f5d557 Make sure GridFunction::MakeRef marks itself and its base vector
for execution on the mfem::Device.

Refine the logic in Vector::operator=.

Update the comment for Memory::SyncWith.
2019-05-18 00:40:43 -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 6410f4e814 make style 2019-04-22 13:55:26 -07:00
Stowell, Mark L 0a9acf4ac4 Increasing integration order in ComputeLpError methods so they work with DG spaces 2019-04-22 13:40:30 -07:00
Stowell, Mark L 7cbc593816 Adding size check on result vector 2019-04-22 13:39:34 -07:00
Stowell, Mark L 2b7569c900 Generalizing ComputeElementError methods to accept Vectors 2019-04-22 13:36:40 -07:00
Stefano Zampini 0c1318dfd3 FiniteElementForGeometry can return NULL
This fixes the segfault but this should be handled better
2019-03-19 11:18:03 +03:00
Stowell, Mark L f33a43f28a Cleaning up a few warnings 2018-12-24 18:08:56 -08:00
Stowell, Mark L 95b349f68c Merge remote-tracking branch 'origin/master' into no-tet-reorder-dev 2018-12-24 17:58:23 -08:00
Stowell, Mark L c213bab266 Adding doftrans to various other methods in GridFunction 2018-12-10 15:44:13 -08:00
Veselin Dobrev 634d9431d8 Add support for parallel non-conforming meshes in class
ZienkiewiczZhuEstimator.

This support is based on the update in ParGridFunction::ComputeFlux
which, in turn, is based on the support for GroupCommunicators in
ParFiniteElementSpaces on non-conforming meshes.
2018-12-05 20:11:57 -08:00
Stowell, Mark L 2b72a7617c Merge remote-tracking branch 'origin/master' into no-tet-reorder-dev 2018-11-26 14:57:46 -08:00
Stowell, Mark L 4112e9319a Changing method names 2018-11-18 17:00:17 -08:00
Stowell, Mark L fd9f21fad6 Adding transformation to various get value methods in GridFunction 2018-11-18 10:53:25 -08:00
Stowell, Mark L dab06bc0a3 Initial changes to test DofTransformation classes 2018-11-14 13:39:11 -08:00