-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding ParticleInCell modules #2334
Conversation
src/Modules/PIC/CMakeLists.txt
Outdated
|
||
|
||
SET(Modules_PIC_SRCS | ||
CreateString.cc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete these from this directory, since we don't need to duplicate module code
src/Modules/PIC/CMakeLists.txt
Outdated
SET(Modules_PIC_HEADERS | ||
CreateString.h | ||
NetworkNotes.h | ||
share.h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep this file and reference
src/Modules/PIC/GravSimple.cc
Outdated
|
||
#include <Modules/PIC/GravSimple.h> | ||
#include <Core/Datatypes/String.h> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include module header
#include<Dataflow/Network/Module.h>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the header, so don't need it here
src/Modules/PIC/GravSimple.cc
Outdated
using namespace SCIRun::Core::Datatypes; | ||
using namespace SCIRun::Dataflow::Networks; | ||
|
||
const ModuleLookupInfo GravSimple::staticInfo_("GravSimple","PIC","SCIRun"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use macro
MODULE_INFO_DEF("GravSimple","PIC","SCIRun");
src/Modules/PIC/GravSimple.h
Outdated
#define MODULES_PIC_GravSimple_H | ||
|
||
#include <Dataflow/Network/Module.h> | ||
#include <Modules/Fields/share.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include <Modules/PIC/share.h>
src/Modules/PIC/share.h
Outdated
#undef SCISHARE | ||
|
||
#if defined(_WIN32) && !defined(BUILD_SCIRUN_STATIC) | ||
#ifdef BUILD_Modules_String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#ifdef BUILD_Modules_PIC
src/Modules/PIC/GravSimple.cc
Outdated
#include <Core/Datatypes/String.h> | ||
|
||
using namespace SCIRun; | ||
using namespace SCIRun::Modules::StringManip; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using namespace SCIRun::Modules::PIC;
src/Modules/PIC/GravSimple.h
Outdated
|
||
namespace SCIRun { | ||
namespace Modules { | ||
namespace StringManip { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
namespace PIC {
"module": | ||
{ | ||
"name": "GravSimple", | ||
"namespace": "StringManip", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"namespace": "PIC",
The new code probably isn't building at all; the higher-level CMakeLists needs to know about the new directory (check src/Modules/CMakeLists.txt) |
Also, please remove the duplicated modules |
And also before going any further: no acronyms in the source. Every appearance of PIC should be ParticleInCell or whatever. |
Thanks, I'll check it out today |
Oh so close to building--here's the fix |
namespace SCIRun { | ||
namespace Core { | ||
namespace Algorithms { | ||
namespace Math { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
namespace Math { | |
namespace ParticleInCell { |
|
||
#include <Core/Algorithms/Base/AlgorithmVariableNames.h> | ||
#include <Core/Algorithms/Base/AlgorithmBase.h> | ||
#include <Core/Algorithms/Math/share.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include <Core/Algorithms/Math/share.h> | |
#include <Core/Algorithms/ParticleInCell/share.h> |
using namespace SCIRun; | ||
using namespace SCIRun::Core::Datatypes; | ||
using namespace SCIRun::Core::Algorithms; | ||
using namespace SCIRun::Core::Algorithms::Math; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using namespace SCIRun::Core::Algorithms::Math; | |
using namespace SCIRun::Core::Algorithms::ParticleInCell; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You did it again, this works like a champ. Thanks, Dan!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just needed to be in the right namespace
TODO
In the new file, add your pull request template. This could include: