Re: [deal.II] SOURCE_DIR for input data reading in user project unit testing

2018-02-06 Thread Weixiong Zheng
Oh! I see. After your post, I went back to macro_deal_ii_add_test.cmake and did find quotes around the ${CMAKE_CURRENT_SOURCE_DIR}. So I added the quotes in the definition and realized I can get rid of using BOOST_PP_STRINGIZE. Thanks! 在 2018年2月6日星期二 UTC-8上午10:01:01,Wolfgang Bangerth写道: > > On

Re: [deal.II] SOURCE_DIR for input data reading in user project unit testing

2018-02-06 Thread Wolfgang Bangerth
On 02/06/2018 10:28 AM, Weixiong Zheng wrote: > #define SOURCE_DIR /Users/GrillCheese/UCB/Research/xtrans/tests/mesh Thanks sir, I got confused a bit. So you meant even with quotes around it, the macro in *.cc code will still not be interpreted as a string? What I'm saying is that a

Re: [deal.II] Relacement of laplace and Mass matrix usage with cell wise assembly for v-equation in step-23

2018-02-06 Thread Wolfgang Bangerth
On 02/06/2018 10:31 AM, Dulcimer0909 wrote: The initialization of the cell_matrix and cell_rhs and cell_rhs_1 are being done in the beginning. >    for(const auto &cell: dof_handler.active_cell_iterators()) >    { >    fe_values.reinit(cell); >    cell_matrix   = 0

Re: [deal.II] Relacement of laplace and Mass matrix usage with cell wise assembly for v-equation in step-23

2018-02-06 Thread Dulcimer0909
Hello Professor, Thank you for your reply and your time. The initialization of the cell_matrix and cell_rhs and cell_rhs_1 are being done in the beginning. >for(const auto &cell: dof_handler.active_cell_iterators()) >{ >fe_values.reinit(cell); >cell_matri

Re: [deal.II] SOURCE_DIR for input data reading in user project unit testing

2018-02-06 Thread Weixiong Zheng
在 2018年2月6日星期二 UTC-8上午8:33:43,Wolfgang Bangerth写道: > > On 02/05/2018 11:37 PM, Weixiong Zheng wrote: > > > > 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: st

Re: [deal.II] SOURCE_DIR for input data reading in user project unit testing

2018-02-06 Thread Weixiong Zheng
Thanks, sir. I'd try that. Weixiong 在 2018年2月6日星期二 UTC-8上午8:33:43,Wolfgang Bangerth写道: > > On 02/05/2018 11:37 PM, Weixiong Zheng wrote: > > > > 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

Re: [deal.II] SOURCE_DIR for input data reading in user project unit testing

2018-02-06 Thread Wolfgang Bangerth
On 02/05/2018 11:37 PM, Weixiong Zheng wrote: 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 sho

Re: [deal.II] Re: Crack propagation

2018-02-06 Thread feapman
Dear Prof. Wick, thanks a lot for your support. I will learn how these commands work in the proposed phase-field user element. Kind regards, Yaakov On Saturday, February 3, 2018 at 7:20:27 AM UTC+1, Thomas Wick wrote: > > Hello, > > there are two flags in the parameter file that you need to ch

Re: [deal.II] Re: Crack propagation

2018-02-06 Thread feapman
Dear Prof. Wick, thanks a lot for your support. I will learn how these commands in your user element works, Kind regards, Yaakov On Saturday, February 3, 2018 at 7:20:27 AM UTC+1, Thomas Wick wrote: > > Hello, > > there are two flags in the parameter file that you need to change: > > set Decomp