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

Method GetTimeSteps

IO/Geometry/vtkMFIXReader.cxx:1880–2039  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1878
1879//------------------------------------------------------------------------------
1880void vtkMFIXReader::GetTimeSteps()
1881{
1882 int nextRecord, numberOfRecords;
1883 char fileName[VTK_MAXPATH];
1884 int cnt = 0;
1885
1886 for (int i = 0; i < this->NumberOfSPXFilesUsed; ++i)
1887 {
1888 for (int k = 0; k < (int)sizeof(fileName); k++)
1889 {
1890 fileName[k] = 0;
1891 }
1892 strncpy(fileName, this->FileName, sizeof(fileName) - 1);
1893 size_t fileNameLength = strlen(fileName);
1894 if (fileNameLength >= 4)
1895 {
1896 fileName[fileNameLength - 4] = '\0';
1897 }
1898 if (i == 0)
1899 {
1900 strcat(fileName, ".SP1");
1901 }
1902 else if (i == 1)
1903 {
1904 strcat(fileName, ".SP2");
1905 }
1906 else if (i == 2)
1907 {
1908 strcat(fileName, ".SP3");
1909 }
1910 else if (i == 3)
1911 {
1912 strcat(fileName, ".SP4");
1913 }
1914 else if (i == 4)
1915 {
1916 strcat(fileName, ".SP5");
1917 }
1918 else if (i == 5)
1919 {
1920 strcat(fileName, ".SP6");
1921 }
1922 else if (i == 6)
1923 {
1924 strcat(fileName, ".SP7");
1925 }
1926 else if (i == 7)
1927 {
1928 strcat(fileName, ".SP8");
1929 }
1930 else if (i == 8)
1931 {
1932 strcat(fileName, ".SP9");
1933 }
1934 else if (i == 9)
1935 {
1936 strcat(fileName, ".SPA");
1937 }

Callers 6

RequestInformationMethod · 0.95
ReadMetaDataMethod · 0.45
ReadMetaDataMethod · 0.45
UpdateInformationMethod · 0.45
GetActiveFilesMethod · 0.45
RequestDataMethod · 0.45

Calls 6

SwapIntMethod · 0.95
clearMethod · 0.45
readMethod · 0.45
GetValueMethod · 0.45
InsertValueMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected