Skip to content

Commit

Permalink
in vcell/smoldyn bridge declare Smoldyn headers as C not C++
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed May 24, 2024
1 parent 4ae3c05 commit 6aabaf1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bridgeVCellSmoldyn/SimpleMesh.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#ifndef SIMPLE_MESH_H
#define SIMPLE_MESH_H

extern "C" {
#include <smoldyn.h>
}

class SimpleMesh : public AbstractMesh {
public:
void getCenterCoordinates(int volIndex, double* coords);
void getDeltaXYZ(double* delta);
void getNumXYZ(int* num);
public:
void getCenterCoordinates(int volIndex, double* coords);
void getDeltaXYZ(double* delta);
void getNumXYZ(int* num);
private:
};

Expand Down
2 changes: 2 additions & 0 deletions bridgeVCellSmoldyn/vcell_smoldyn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
#include <cstdarg>
#include <VCELL/SimulationMessaging.h>
#include <VCELL/GitDescribe.h>
extern "C" {
#include "opengl2.h"
#include "smoldyn.h"
#include "random2.h"
#include "smoldynfuncs.h"
}
#include "SimpleValueProvider.h"
#include "SimpleMesh.h"
#include "vcellhybrid.h"
Expand Down

0 comments on commit 6aabaf1

Please sign in to comment.