Skip to content

Commit

Permalink
Merging develop into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightly Bot authored and cwsmith committed Oct 6, 2022
2 parents 58a8832 + 97ca1ef commit 0b511a2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
4 changes: 2 additions & 2 deletions cmake/FindSimModSuite.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ string(REGEX REPLACE
"${SIM_VERSION}")

set(MIN_VALID_SIM_VERSION 12.0.190225)
set(MAX_VALID_SIM_VERSION 16.0-210623)
set(MAX_VALID_SIM_VERSION 18.0-220930)
if( ${SKIP_SIMMETRIX_VERSION_CHECK} )
message(STATUS "Skipping Simmetrix SimModSuite version check."
" This may result in undefined behavior")
Expand Down Expand Up @@ -113,7 +113,7 @@ message(STATUS "SIM_ARCHOS ${SIM_ARCHOS}")
option(SIM_PARASOLID "Use Parasolid through Simmetrix" OFF)
if (SIM_PARASOLID)
set(MIN_SIM_PARASOLID_VERSION 290)
set(MAX_SIM_PARASOLID_VERSION 330)
set(MAX_SIM_PARASOLID_VERSION 350)
foreach(version RANGE
${MAX_SIM_PARASOLID_VERSION}
${MIN_SIM_PARASOLID_VERSION} -10)
Expand Down
2 changes: 1 addition & 1 deletion parma/diffMC/.clang_complete
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-D_HAVE_ZOLTAN_
-D_PUMI_HAS_ZOLTAN_
-D_HAVE_PARMETIS_
-DFMDB_PARALLEL
-DFMDB
Expand Down
4 changes: 0 additions & 4 deletions test/runSimxAnisoAdapt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
#include "MeshSimAdapt.h"
#include "SimDiscrete.h"
#include "SimMessages.h"
#include "SimError.h"
#include "SimErrorCodes.h"
#include "SimMeshingErrorCodes.h"
#include "SimDiscreteErrorCodes.h"
#include <iostream>

#include <cassert>
Expand Down
23 changes: 16 additions & 7 deletions test/simTranslate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#include "SimAdvModel.h"
#include "SimUtil.h"
#include "SimMessages.h"
#include "SimError.h"
#include "SimErrorCodes.h"
#include "MeshSim.h"
#include "SimAttribute.h"
#include "AttributeTypes.h"
Expand All @@ -26,6 +24,17 @@
#include "gmi_sim_config.h"
#include <gmi_sim.h>

#if SIMMODSUITE_MAJOR_VERSION >= 18
#include "SimInfo.h"
#include "SimInfoCodes.h"
#define SIM_ERROR(suffix,err) SimInfo_##suffix(err)
typedef pSimInfo pSimError;
#else
#include "SimError.h"
#include "SimErrorCodes.h"
#define SIM_ERROR(suffix,err) SimError_##suffix(err)
#endif

#ifdef SIM_PARASOLID
#include "SimParasolidKrnl.h"
#endif
Expand All @@ -46,14 +55,14 @@ static std::string acisExt = ".sat";
static std::string paraExt = ".xmt_txt";
static std::string paraExtshort = ".x_t";

void printSimError(pSimError err)
{
void printSimError(pSimError err) {
printf("Simmetrix error caught:\n");
printf(" Error code: %d\n",SimError_code(err));
printf(" Error string: %s\n",SimError_toString(err));
SimError_delete(err);
printf(" Error code: %d\n",SIM_ERROR(code,err));
printf(" Error string: %s\n",SIM_ERROR(code,err));
SIM_ERROR(delete,err);
}


void translateModel(std::string mdlName, pGModel* simmodel, pProgress& progress)
{
(void)progress;
Expand Down

0 comments on commit 0b511a2

Please sign in to comment.