Skip to content

Commit

Permalink
fix: type of setGroupSize function (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
HPDell authored Jan 12, 2024
1 parent dafda54 commit 3a7354f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/gwmodelpp/GWRBasic.h
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ class GWRBasic : public GWRBase, public IBandwidthSelectable, public IVarialbeSe
public: // Implement IGwmParallelOpenmpEnabled
void setOmpThreadNum(const int threadNum) override { mOmpThreadNum = threadNum; }
void setGPUId(const int gpuId) override { mGpuId = gpuId; };
void setGroupSize(const double size) override { mGroupLength = size; };
void setGroupSize(const size_t size) override { mGroupLength = size; };

protected:

Expand Down
2 changes: 1 addition & 1 deletion include/gwmodelpp/GWRMultiscale.h
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ class GWRMultiscale : public SpatialMultiscaleAlgorithm, public IBandwidthSelect

public: // IParallelCudaEnabled interface
void setGPUId(const int gpuId) override { mGpuId = gpuId; }
void setGroupSize(const double size) override { mGroupLength = size; }
void setGroupSize(const size_t size) override { mGroupLength = size; }

protected:

Expand Down
2 changes: 1 addition & 1 deletion include/gwmodelpp/IParallelizable.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ struct IParallelCudaEnabled
* 对于大多数 GPU 可选择值 64。
*
*/
virtual void setGroupSize(const double size) = 0;
virtual void setGroupSize(const size_t size) = 0;

};

Expand Down

0 comments on commit 3a7354f

Please sign in to comment.