Skip to content

Commit

Permalink
Merge pull request #79 from rogerfraser/master
Browse files Browse the repository at this point in the history
New version (1.1) with global plate motion model support
  • Loading branch information
rogerfraser authored Feb 15, 2021
2 parents 2642fd6 + 4b5d718 commit cfd12d8
Show file tree
Hide file tree
Showing 37 changed files with 31,795 additions and 279 deletions.
11 changes: 11 additions & 0 deletions dynadjust/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,15 @@ if (BUILD_TESTING)
add_test (NAME ref-gnss04-network COMMAND $<TARGET_FILE:dnareftranwrapper> gnss -r itrf1991 -e 05.05.2005)
add_test (NAME ref-gnss05-network COMMAND $<TARGET_FILE:dnareftranwrapper> gnss -r gda94)

add_test (NAME ref-itrf-pmm-01 COMMAND $<TARGET_FILE:dnaimportwrapper> -n itrf05_itrf1997_a -r itrf2005 ${CMAKE_SOURCE_DIR}/../sampleData/TEST_ITRF05.SNX)
add_test (NAME ref-itrf-pmm-02 COMMAND $<TARGET_FILE:dnareftranwrapper> itrf05_itrf1997_a -r itrf1997 -e 25.10.2017 --export-dna --verb 2 --plate-model-option 1 -b ${CMAKE_SOURCE_DIR}/../sampleData/PB2002_plates.dig -m ${CMAKE_SOURCE_DIR}/../sampleData/PB2002_poles.dat)
add_test (NAME ref-itrf-pmm-03 COMMAND $<TARGET_FILE:dnaimportwrapper> -n itrf05_itrf1997_b -r itrf2005 ${CMAKE_SOURCE_DIR}/../sampleData/TEST_ITRF05.SNX)
add_test (NAME ref-itrf-pmm-04 COMMAND $<TARGET_FILE:dnareftranwrapper> itrf05_itrf1997_b -r itrf1997 -e 01.01.2020 --export-dna --verb 3 --plate-model-option 1 -b ${CMAKE_SOURCE_DIR}/../sampleData/PB2002_plates.dig -m ${CMAKE_SOURCE_DIR}/../sampleData/PB2002_poles.dat)

add_test (NAME ref-itrf-pmm-05 COMMAND $<TARGET_FILE:dnaimportwrapper> -n apr -r itrf2008 ${CMAKE_SOURCE_DIR}/../sampleData/apr.ITRF2008.04.06.2020.stn ${CMAKE_SOURCE_DIR}/../sampleData/apr.ITRF2008.04.06.2020.msr)
add_test (NAME ref-itrf-pmm-06 COMMAND $<TARGET_FILE:dnareftranwrapper> apr -r itrf2008 -e 01.01.2021 --export-dna --verb 2 --plate-model-option 1 -b ${CMAKE_SOURCE_DIR}/../sampleData/MORVEL56_plates.dig -m ${CMAKE_SOURCE_DIR}/../sampleData/NNR-MORVEL56_poles.dat)
add_test (NAME ref-itrf-pmm-07 COMMAND bash -c "diff <(tail -n +6 apr.ITRF2008.01.01.2021.stn) <(tail -n +4 ${CMAKE_SOURCE_DIR}/../sampleData/apr.ITRF2008.01.01.2021.stn.expected)")

# set execution dependencies (the execution of tests must be sequential)
set_tests_properties(
import-gnss-network geoid-gnss-network adjust-gnss-network
Expand All @@ -232,6 +241,8 @@ if (BUILD_TESTING)
import-urban-network-thread reftran-urban-network-thread geoid-urban-network-thread segment-urban-network-thread adjust-urban-network-thread
PROPERTIES RUN_SERIAL TRUE)
set_tests_properties(test-gnss-network PROPERTIES DEPENDS adjust-gnss-network)
set_tests_properties(ref-itrf-pmm-06 PROPERTIES DEPENDS ref-itrf-pmm-05)
set_tests_properties(ref-itrf-pmm-07 PROPERTIES DEPENDS ref-itrf-pmm-06)
endif ()

message (" ")
Expand Down
1 change: 1 addition & 0 deletions dynadjust/dynadjust/dnaadjust/dnaadjust-stage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,7 @@ void dna_adjust::UnloadBlock(const UINT32& block, const UINT16 file_count, ...)
break;
}
}
va_end(vlist);
}


Expand Down
16 changes: 5 additions & 11 deletions dynadjust/dynadjust/dnageoidint/FileProc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,12 @@ int CALLBACK BrowseCallbackProc(HWND hwnd,UINT uMsg, LPARAM lp, LPARAM pData)
}

CFileProc::CFileProc()
: m_intNumFiles(1), m_lTotalBytes(0)
, m_strFileExt(""), m_fIndex(NULL)
, m_strDestinationFile(""), m_sError("No error"), m_dwError(0)
, m_bAskIfReadOnly(true), m_bOverwriteMode(false), m_bAborted(false)
, m_iRecursionLimit(-1)
{
m_fIndex = NULL;
m_intNumFiles = 1;
m_lTotalBytes = 0;

m_sError = "No error";
m_dwError = 0;
m_bAskIfReadOnly = true;
m_bOverwriteMode = false;
m_bAborted = false;
m_iRecursionLimit = -1;
m_strDestinationFile = "";
}

CFileProc::~CFileProc()
Expand Down
1 change: 1 addition & 0 deletions dynadjust/dynadjust/dnareftran/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ add_library (${PROJECT_NAME} SHARED
${CMAKE_SOURCE_DIR}/include/io/dnaiobms.cpp
${CMAKE_SOURCE_DIR}/include/io/dnaiobst.cpp
${CMAKE_SOURCE_DIR}/include/io/dnaiodna.cpp
${CMAKE_SOURCE_DIR}/include/io/dnaiotpb.cpp
${CMAKE_SOURCE_DIR}/include/measurement_types/dnaangle.cpp
${CMAKE_SOURCE_DIR}/include/measurement_types/dnacoordinate.cpp
${CMAKE_SOURCE_DIR}/include/measurement_types/dnadirection.cpp
Expand Down
Loading

0 comments on commit cfd12d8

Please sign in to comment.