Commit 5c2d76dc authored by Ruonan Wang's avatar Ruonan Wang Committed by Wang, Ruonan
Browse files

added conditions for SSC Fortran tests

parent 52267d2d
......@@ -144,10 +144,16 @@ SscReader::BlocksInfoCommon(const Variable<T> &variable,
b.Start = v.start;
b.Count = v.count;
b.Shape = v.shape;
if (!helper::IsRowMajor(m_IO.m_HostLanguage))
{
std::reverse(b.Start.begin(), b.Start.end());
std::reverse(b.Count.begin(), b.Count.end());
std::reverse(b.Shape.begin(), b.Shape.end());
}
b.IsValue = false;
if (v.shape.size() == 1)
if (b.Shape.size() == 1)
{
if (v.shape[0] == 1)
if (b.Shape[0] == 1)
{
b.IsValue = true;
}
......
......@@ -236,7 +236,10 @@ if(ADIOS2_HAVE_MPI)
endif()
if(ADIOS2_HAVE_SSC)
set (SSC_TESTS "1x1;1x1.Attrs;2x1;1x2;2x1ZeroDataVar;2x1ZeroDataR64;3x5;5x3;3x5LockGeometry;FtoC.1x1;FtoC.3x5;TimeoutOnOpen")
set (SSC_TESTS "1x1;1x1.Attrs;2x1;1x2;2x1ZeroDataVar;2x1ZeroDataR64;3x5;5x3;3x5LockGeometry;TimeoutOnOpen")
if(ADIOS2_HAVE_Fortran)
list (APPEND SSC_TESTS "FtoC.1x1" "FtoC.3x5")
endif()
foreach(test ${SSC_TESTS})
add_common_test(${test} SSC)
endforeach()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment