MCPcopy Create free account
hub / github.com/Kitware/VTK / main

Function main

Examples/AMR/Cxx/Generate2DAMRDataSetWithPulse.cxx:58–73  ·  view source on GitHub ↗

Program main

Source from the content-addressed store, hash-verified

56// Program main
57//
58int main(int argc, char** argv)
59{
60 // Fix compiler warning for unused variables
61 static_cast<void>(argc);
62 static_cast<void>(argv);
63
64 // STEP 0: Initialize gaussian pulse parameters
65 SetPulse();
66
67 // STEP 1: Get the AMR dataset
68 auto amrDataSet = vtkSmartPointer<vtkOverlappingAMR>::Take(GetAMRDataSet());
69 assert("pre: nullptr AMR dataset" && (amrDataSet != nullptr));
70
71 AMRCommon::WriteAMRData(amrDataSet, "Gaussian2D");
72 return 0;
73}
74
75//=============================================================================
76// Function Prototype Implementation

Callers

nothing calls this directly

Calls 5

TakeFunction · 0.85
WriteAMRDataFunction · 0.85
SetPulseFunction · 0.70
GetAMRDataSetFunction · 0.70
assertFunction · 0.50

Tested by

no test coverage detected