-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathmain.C
39 lines (36 loc) · 1.08 KB
/
main.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <UT/UT_DSOVersion.h>
#include <OP/OP_Operator.h>
#include <OP/OP_OperatorTable.h>
#include "util/eigen.h"
#include "SIM/SIM_Stokes.h"
///
/// This is the hook that Houdini grabs from the dll to link in
/// this. As such, it merely has to implement the data factory
/// for this node.
///
void
initializeSIM(void *)
{
Eigen::setNbThreads(12);
#ifndef NDEBUG
if ( Eigen::nbThreads() > 1 )
std::cout << "Eigen is multithreaded" << std::endl;
#endif
IMPLEMENT_DATAFACTORY(SIM_Stokes);
}
// Register sop operator
#if 0
void
newSopOperator(OP_OperatorTable *table)
{
table->addOperator(new OP_Operator(
"hdk_stokes", // Internal name
"Stokes", // UI name
SOP_Stokes::myConstructor, // How to build the SOP
SOP_Stokes::buildTemplates(), // My parameters
1, // Min # of sources
2, // Max # of sources
0,//SOP_Stokes::myVariables, // Local variables
OP_FLAG_GENERATOR)); // Flag it as generator
}
#endif