-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
70 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) 2021 Chanjung Kim. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
#ifndef LAPLACE_EQ_THERM_SERVER_CORE_FINITE_ELEMENT_METHOD_SPACE_HH | ||
#define LAPLACE_EQ_THERM_SERVER_CORE_FINITE_ELEMENT_METHOD_SPACE_HH | ||
|
||
#include <leth/Space.hh> | ||
|
||
class FiniteElementMethodSpace : public Space | ||
{ | ||
public: | ||
FiniteElementMethodSpace(uint16_t width, uint16_t height); | ||
|
||
protected: | ||
virtual char const* GetName() noexcept override; | ||
|
||
virtual char const* GetErrorMessage(ErrorCode errorCode) noexcept override final; | ||
|
||
virtual ErrorCode RunSimulation(Point const* input, float* output) noexcept override final; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) 2021 Chanjung Kim. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
#include <leth/FiniteElementMethodSpace.hh> | ||
|
||
FiniteElementMethodSpace::FiniteElementMethodSpace(uint16_t width, uint16_t height) : | ||
Space { width, height } | ||
{} | ||
|
||
char const* FiniteElementMethodSpace::GetName() noexcept | ||
{ | ||
return "FiniteElementMethodSpace"; | ||
} | ||
|
||
char const* FiniteElementMethodSpace::GetErrorMessage(ErrorCode errorCode) noexcept | ||
{ | ||
if (errorCode == 0) | ||
return "Success"; | ||
|
||
return "UnknownError"; | ||
} | ||
|
||
ErrorCode FiniteElementMethodSpace::RunSimulation(Point const* input, float* output) noexcept | ||
{ | ||
return 0; | ||
} |