|
72 | 72 | #define WH_WOA_DB_TYPE_DEFAULT (1)
|
73 | 73 | #define WH_WOA_DB_TYPE_MIN (0)
|
74 | 74 | #define WH_WOA_DB_TYPE_MAX (1)
|
| 75 | +#define WH_SEDIMENT_DECK41_FORMAT_DEFAULT (1) |
| 76 | +#define WH_SEDIMENT_DECK41_FORMAT_MIN (0) |
| 77 | +#define WH_SEDIMENT_DECK41_FORMAT_MAX (1) |
75 | 78 | #endif // defined (WOSS_NETCDF_SUPPORT)
|
76 | 79 |
|
77 | 80 | namespace ns3 {
|
@@ -191,6 +194,9 @@ WossHelper::WossHelper ()
|
191 | 194 | #if defined (WOSS_NETCDF_SUPPORT)
|
192 | 195 | m_sedimDbCreatorDebug (WH_DEBUG_DEFAULT),
|
193 | 196 | m_sedimDbDebug (WH_DEBUG_DEFAULT),
|
| 197 | +#if defined (WOSS_NETCDF4_SUPPORT) |
| 198 | + m_sedimDbDeck41DbType(WH_SEDIMENT_DECK41_FORMAT_DEFAULT), |
| 199 | +#endif // defined (WOSS_NETCDF4_SUPPORT) |
194 | 200 | m_sedimDbCoordFilePath (WH_STRING_DEFAULT),
|
195 | 201 | m_sedimDbMarsdenFilePath (WH_STRING_DEFAULT),
|
196 | 202 | m_sedimDbMarsdenOneFilePath (WH_STRING_DEFAULT),
|
@@ -409,6 +415,9 @@ WossHelper::Initialize (Ptr<WossPropModel> wossPropModel)
|
409 | 415 | m_sedimDbCreator->setDeck41MarsdenOnePathName (m_sedimDbMarsdenOneFilePath);
|
410 | 416 | m_sedimDbCreator->setDebug (m_sedimDbCreatorDebug);
|
411 | 417 | m_sedimDbCreator->setWossDebug (m_sedimDbDebug);
|
| 418 | +#if defined (WOSS_NETCDF4_SUPPORT) |
| 419 | + m_sedimDbCreator->setDeck41DbType ((woss::DECK41DbType)m_sedimDbDeck41DbType); |
| 420 | +#endif // defined (WOSS_NETCDF4_SUPPORT) |
412 | 421 |
|
413 | 422 | m_wossController->setSedimentDbCreator (m_sedimDbCreator);
|
414 | 423 | }
|
@@ -1339,6 +1348,13 @@ WossHelper::GetTypeId ()
|
1339 | 1348 | BooleanValue (WH_DEBUG_DEFAULT),
|
1340 | 1349 | MakeBooleanAccessor (&WossHelper::m_sedimDbDebug),
|
1341 | 1350 | MakeBooleanChecker () )
|
| 1351 | +#if defined (WOSS_NETCDF4_SUPPORT) |
| 1352 | + .AddAttribute ("SedimentDbDeck41DbType", |
| 1353 | + "SSP WOA Db Type: 0 = V1 Format Db, 1 = V2 Format Db", |
| 1354 | + IntegerValue (WH_SEDIMENT_DECK41_FORMAT_DEFAULT), |
| 1355 | + MakeIntegerAccessor (&WossHelper::m_sedimDbDeck41DbType), |
| 1356 | + MakeIntegerChecker<int> (WH_SEDIMENT_DECK41_FORMAT_MIN, WH_SEDIMENT_DECK41_FORMAT_MAX ) ) |
| 1357 | +#endif // defined (WOSS_NETCDF4_SUPPORT) |
1342 | 1358 | .AddAttribute ("SedimDbCoordFilePath",
|
1343 | 1359 | "Sediment Db will read the coordinates database from this file (full path required)",
|
1344 | 1360 | StringValue (WH_STRING_DEFAULT),
|
|
0 commit comments