00001 //*****************************************************************// 00002 // Albany 2.0: Copyright 2012 Sandia Corporation // 00003 // This Software is released under the BSD license detailed // 00004 // in the file "license.txt" in the top-level Albany directory // 00005 //*****************************************************************// 00006 00007 #include "AAdapt_UnifSizeField.hpp" 00008 #include "AlbPUMI_FMDBMeshStruct.hpp" 00009 #include "Epetra_Import.h" 00010 00011 AAdapt::UnifSizeField::UnifSizeField(const Teuchos::RCP<AlbPUMI::AbstractPUMIDiscretization>& disc) : 00012 comm(disc->getComm()) { 00013 } 00014 00015 AAdapt::UnifSizeField:: 00016 ~UnifSizeField() { 00017 } 00018 00019 void 00020 AAdapt::UnifSizeField::computeError() { 00021 } 00022 00023 00024 void 00025 AAdapt::UnifSizeField::setParams(const Epetra_Vector* sol, const Epetra_Vector* ovlp_sol, 00026 double element_size, double err_bound, 00027 const std::string state_var_name) { 00028 00029 solution = sol; 00030 ovlp_solution = ovlp_sol; 00031 elem_size = element_size; 00032 00033 } 00034 00035 double AAdapt::UnifSizeField::getValue(ma::Entity* v) { 00036 return elem_size; 00037 } 00038