------------------------------------------------------------------------------
| 913 | |
| 914 | //------------------------------------------------------------------------------ |
| 915 | bool vtkOverlappingAMRMetaData::GetCoarsenedAMRBox( |
| 916 | unsigned int level, unsigned int id, vtkAMRBox& box) |
| 917 | { |
| 918 | if (level == 0) |
| 919 | { |
| 920 | vtkErrorMacro("Cannot get AMR box at level 0."); |
| 921 | return false; |
| 922 | } |
| 923 | |
| 924 | if (this->HasRefinementRatio()) |
| 925 | { |
| 926 | box = this->GetAMRBox(level, id); |
| 927 | if (box.IsInvalid()) |
| 928 | { |
| 929 | vtkErrorMacro("Invalid AMR box."); |
| 930 | return false; |
| 931 | } |
| 932 | |
| 933 | int refinementRatio = this->GetRefinementRatio(level - 1); |
| 934 | box.Coarsen(refinementRatio); |
| 935 | } |
| 936 | else |
| 937 | { |
| 938 | return false; |
| 939 | } |
| 940 | |
| 941 | return true; |
| 942 | } |
| 943 | |
| 944 | //------------------------------------------------------------------------------ |
| 945 | bool vtkOverlappingAMRMetaData::operator==(const vtkOverlappingAMRMetaData& other) const |
no test coverage detected