A might-be-sloppy resolution I came out is to use boost to transform
SOURCE_DIR macro to string, which is
#include
...
void test ()
{
...
std::string string_from_macro = BOOST_PP_STRINGIZE(SOURCE_DIR);
...
}
It worked, but as what I said, in a sloppy way. I'd be happy to see what
you
Thanks Matthias,
What I've tried is to
ADD_DEFINITION(-DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}) in the
CMakeLists.txt in the test directory. I tried tesing SOURCE_DIR in *.cc
file like: std::cout << SOURCE_DIR << std::endl;
When I did "make", screen printout shows:
":2:20: note: expanded
在 2018年2月5日星期一 UTC-8下午8:55:19,Wolfgang Bangerth写道:
>
> On 02/05/2018 09:15 PM, Weixiong Zheng wrote:
> >
> > I am trying to get unit test work for my project. It works until
> reaching the
> > point of reading input data. I tried to specify the directory using
> getcwd()
> > though it
On Mon, Feb 5, 2018, at 22:15 CST, Weixiong Zheng wrote:
> Hello All,
>
> I am trying to get unit test work for my project. It works until reaching
> the point of reading input data. I tried to specify the directory using
> getcwd() though it didn't work with ctest. I
On 02/05/2018 09:15 PM, Weixiong Zheng wrote:
I am trying to get unit test work for my project. It works until reaching the
point of reading input data. I tried to specify the directory using getcwd()
though it didn't work with ctest. I noticed there was another user having the
same issue
Hello All,
I am trying to get unit test work for my project. It works until reaching
the point of reading input data. I tried to specify the directory using
getcwd() though it didn't work with ctest. I noticed there was another user
having the same issue and the resolution was to use
On 01/30/2018 07:53 AM, Dulcimer0909 wrote:
for(unsigned int i = 0; i < dofs_per_cell; i++)
{
for (unsigned int j = 0; j < dofs_per_cell; j++)
{
matrix_v.add (local_dof_indices[i],
Dulcimer,
it is difficult for any of us to just look at a piece of code and tell
where exactly things are going wrong. You'll have to learn to debug what
is happening in your case, and for this it is easiest if you make the
problem as simple as possible -- for example, use zero boundary
Hi,
I have Cahn-Hilliard system - scalar equation for
phase field and chemical potential. I tried to modify only
the phase field part of solution in distributed code like
step-40:
template
> void Main::postprocess_solution(){
>
> nsSystem.computing_timer.enter_subsection("Solution
> In such a case, one wants to restart the computations
We have support for snapshot in parallel with adaptive meshes
by using the SolutionTransfer class. See "Use for serialization" in
10 matches
Mail list logo