-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split variables will be read from a text file.
- Loading branch information
abtin98
committed
Jul 15, 2019
1 parent
54b5854
commit dea37af
Showing
10 changed files
with
108 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ set(DG_SOURCE | |
dg.cpp | ||
weak_dg.cpp | ||
strong_dg.cpp | ||
split_form.cpp | ||
) | ||
|
||
foreach(dim RANGE 1 3) | ||
|
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 @@ | ||
#include "split_form.h" | ||
|
||
namespace PHiLiP { | ||
namespace splitform { | ||
|
||
template <int dim, typename real> | ||
SplitForm<dim, real>::SplitForm() | ||
{ | ||
alpha = 0; | ||
f = ""; | ||
g = ""; | ||
} | ||
|
||
template class SplitForm<1, double>; | ||
template class SplitForm<2, double>; | ||
template class SplitForm<3, double>; | ||
|
||
} //splitform namespace | ||
|
||
|
||
|
||
} //PHiLiP namespace |
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,27 @@ | ||
#ifndef __SPLIT_FORM_H__ | ||
#define __SPLIT_FORM_H__ | ||
|
||
#include <iostream> | ||
#include <vector> | ||
#include "parameters/all_parameters.h" | ||
#include <deal.II/base/function_parser.h> | ||
|
||
namespace PHiLiP { | ||
namespace splitform { | ||
template <int dim, typename real> | ||
class SplitForm | ||
{ | ||
public: | ||
SplitForm(); | ||
|
||
double alpha; | ||
std::string f; | ||
std::string g; //we can't use functionparser because we don't know how many state variables we have (which is a template argument we need to feed the functionparser | ||
|
||
//FunctionParser<dim> fp; | ||
//FunctionParser g_function; | ||
void parse_functions(std::string fstring, std::string gstring); | ||
}; | ||
} //splitform namespace | ||
} //PHiLiP namespace | ||
#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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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