Skip to content

Commit

Permalink
replace all SVN versions with git, build MovingBoundary solver on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Feb 9, 2024
1 parent c83ccc2 commit fd47480
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 98 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
-DOPTION_TARGET_FV_SOLVER=ON \
-DOPTION_TARGET_STOCHASTIC_SOLVER=ON \
-DOPTION_TARGET_NFSIM_SOLVER=ON \
-DOPTION_TARGET_MOVINGBOUNDARY_SOLVER=OFF \
-DOPTION_TARGET_MOVINGBOUNDARY_SOLVER=ON \
-DOPTION_TARGET_SUNDIALS_SOLVER=ON \
-DOPTION_TARGET_HY3S_SOLVERS=OFF \
-B . -S ..
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/build-dockcross-win64/
/.project
/.cproject
/svnversion.txt
/build-win64/
/.DS_Store
/build-linux64/
Expand Down
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ if(POLICY CMP0057)
cmake_policy(SET CMP0057 NEW)
endif()

set(SVERSION "unversionedbuild")
message("svnversion ${SVERSION}")
add_definitions(-DSVNVERSION=svn${SVERSION})

#include (LocalJNI.cmake)

set(RULE_MESSAGES OFF)
Expand Down
17 changes: 0 additions & 17 deletions MBSolver/Solver/include/version.h

This file was deleted.

9 changes: 3 additions & 6 deletions MBSolver/Solver/src/ReportClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <ReportClient.h>
#include <Universe.h>
#include <TextReportClient.h>
#include <version.h>
#include <flex.h>
#include <vhdf5/dataset.h>
#include <vhdf5/attribute.h>
Expand All @@ -27,6 +26,7 @@
#include <MBridge/Figure.h>
#include <Hdf5OutputWriter.h>
#include <VCELL/SimulationMessaging.h>
#include <VCELL/GitDescribe.h>
#pragma GCC diagnostic ignored "-Winvalid-offsetof"
using moving_boundary::World ;
using moving_boundary::CoordinateType;
Expand Down Expand Up @@ -804,11 +804,8 @@ namespace {
H5::DataSet runTime = vcellH5::primitiveWrite(baseGroup,"runTime",totalTime);
//annotate version info - we place on runTime node to allow easy exclusion when doing
//h5diff (see --exclude-path)
const vcell_util::Version & version = vcell_util::Version::get( );
vcellH5::writeAttribute(runTime,"svnVersion",version.svn);
vcellH5::writeAttribute(runTime,"compileDate",version.compileDate);
vcellH5::writeAttribute(runTime,"compileTime",version.compileTime);

std::string gitVersion(g_GIT_DESCRIBE);
vcellH5::writeAttribute(runTime,"gitVersion", gitVersion);
unsigned int lastTimeIndex = static_cast<unsigned int>(genTimes.size( ));
vcellH5::primitiveWrite(baseGroup,"lastTimeIndex",lastTimeIndex);

Expand Down
14 changes: 5 additions & 9 deletions MBSolver/Solver/src/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@
#include <vcellxml.h>
#include <vhdf5/file.h>
#include <Logger.h>
#include <boundaryProviders.h>
#include <StateClient.h>
#include <MBridge/MatlabDebug.h>
#include <tclap/CmdLine.h>
#include <ReportClient.h>
#include <TextReportClient.h>
#include <version.h>
#include <Timer.h>
#include <VCELL/SimulationMessaging.h>
#include <VCELL/GitDescribe.h>

/**
* usings and typedefs
Expand Down Expand Up @@ -88,10 +85,9 @@ namespace {

int main(int argc, char *argv[])
{
const vcell_util::Version & version = vcell_util::Version::get( );
std::cout
<< "MovingBoundarySolver version $URL$"
<< "revision " << version.svn << ' ' << version.compileDate << std::endl;
std::cout
<< "MovingBoundarySolver version " << g_GIT_DESCRIBE
<< std::endl;

std::string filename;
std::string outname;
Expand Down Expand Up @@ -119,7 +115,7 @@ int main(int argc, char *argv[])
namespace tclap = TCLAP;
try {
using namespace TCLAP;
CmdLine cmd("Moving boundary solve",' ',version.svn);
CmdLine cmd("Moving boundary solve",' ',g_GIT_DESCRIBE);
cmd.setExceptionHandling(false);
ValueArg<std::string> config("c","config","Input XML file name",false,"","string",cmd);
ValueArg<std::string> output("o","output","HDF5 output file name",false,"","string",cmd);
Expand Down
27 changes: 0 additions & 27 deletions MBSolver/Solver/src/version.cpp

This file was deleted.

3 changes: 1 addition & 2 deletions MBSolver/Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ set(SRC_FILES
vcellutil.cpp
vdemo.cpp
vectortest.cpp
versiontest.cpp
vi64.cpp
vi64.cpp
voltest.cpp
worldtest.cpp
)
Expand Down
8 changes: 0 additions & 8 deletions MBSolver/Tests/versiontest.cpp

This file was deleted.

1 change: 0 additions & 1 deletion MBSolver/matlab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ else (MSVC11)
endif (MSVC11)

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fPIC")
add_definitions(-DSVNVERSION="16888")
include_directories(${MATLAB_INCLUDE_DIR})

add_subdirectory(util)
Expand Down
2 changes: 0 additions & 2 deletions MBSolver/matlab/clipperLink/matlabClipper.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#include <fstream>
#include <version.h>
#include "svnversion.h"
#include "matlabStruct.h"
#include <clipper.hpp>
#include "explore.h"
Expand Down
5 changes: 1 addition & 4 deletions MBSolver/matlab/clipperLink/mexClipper.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#include <fstream>
#include <version.h>
#include "svnversion.h"
#include "matlabStruct.h"
#include <intersection.h>
#include "explore.h"
Expand All @@ -11,7 +9,6 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
SVN_VERSION_TAG

using spatial::Point2D;
void mexFunctionClipper(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
Expand Down Expand Up @@ -39,7 +36,7 @@ void mexFunctionClipper(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs
{
const bool showVer = mls.boolean("version", false);
if (showVer) {
mexPrintf("Moving Boundary version %s\n",svn_version_string);
mexPrintf("Moving Boundary version %s\n","unknown - integrate with github version - TODO");
}
}
typedef matlabLink::MData<double> DS;
Expand Down
4 changes: 1 addition & 3 deletions MBSolver/matlab/fronTierLink/flink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <VCDictionary.h>
#include <matlabAssert.h>
#include <mexstream.h>
#include <svnversion.h>
#include <vcGccCompat.h>
//#include <VCellFrontierUtil.h>
using std::vector;
Expand All @@ -18,7 +17,6 @@ namespace Frontier {
}
}
namespace {
SVN_VERSION_TAG;

//slot in
std::vector<Front *> fronts;
Expand Down Expand Up @@ -292,7 +290,7 @@ void showHelp( ) {
const char * const variant = "debug";
#endif

help << "link library " << svn_version_string << ' ' << variant << endl;
help << "link library " << variant << endl;
help << std::ends;

std::string helpString = help.str( ); // create string on stack to keep c_str pointer valid until end of function
Expand Down
2 changes: 1 addition & 1 deletion MBSolver/matlab/fronTierLink/winbuild.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@


%% Fei's command
mex fronTierCmd.cpp flink.cpp ../util/matlabStruct.cpp ../util/VCDictionary.cpp ../util/mlAssert.cpp -I../util -I../../Solver/include -I../../FronTierLib -I../../FronTierLib/util -I../../vcommons/include -DSVNVERSION="16888" ../FronTierReference/FronTier_64b.lib
mex fronTierCmd.cpp flink.cpp ../util/matlabStruct.cpp ../util/VCDictionary.cpp ../util/mlAssert.cpp -I../util -I../../Solver/include -I../../FronTierLib -I../../FronTierLib/util -I../../vcommons/include ../FronTierReference/FronTier_64b.lib
2 changes: 0 additions & 2 deletions MBSolver/matlab/util/matlabStruct.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#include <sstream>
#include "matlabStruct.h"
#include "matlabAssert.h"
#include "svnversion.h"
#include "vcGccCompat.h"
SVN_VERSION_TAG

using matlabLink::MatlabStruct;
using matlabLink::MData;
Expand Down
10 changes: 0 additions & 10 deletions MBSolver/matlab/util/svnversion.h

This file was deleted.

0 comments on commit fd47480

Please sign in to comment.