sorry,  After recompiling deal.II, it now works correctly.


在2020年10月30日星期五 UTC+8 上午11:47:34<Nick Wang> 写道:

> I added a pause code to see where the problem is
> I find when exe. this code and crash back
> *gridin.read_msh(f);*
>
> this is my code here 
>
> void grid_1()
> {
>   std::string str("grid_1");
>   std::cout << str << std::endl;
>   std::system("pause");
>
>   Triangulation<2> triangulation;
>   std::system("pause");
>   GridIn<2> gridin;
>   std::system("pause");
>   gridin.attach_triangulation(triangulation);
>   std::system("pause");
>   std::ifstream f("example.msh");
>   str = "in file\n";
>   std::cout << str << std::endl;
>   std::system("pause");
>
>   gridin.read_msh(f);
>
>   print_mesh_info(triangulation, "grid-1.vtu");
> }
>
> 在2020年10月30日星期五 UTC+8 上午11:43:59<Nick Wang> 写道:
>
>> yeah,  I also put the file in my exe.  but when I try to make the exe. 
>> it can't work well  and crash back .
>> I try to delete the step-49 *grid 1* related  codes and it can work well 
>> , I get the vtu.
>>
>>
>> 在2020年10月30日星期五 UTC+8 上午10:55:30<Wolfgang Bangerth> 写道:
>>
>>> On 10/29/20 8:53 PM, Nick Wang wrote: 
>>> >  I replaced all the files in step-49, while still crashed during 
>>> debugging 
>>> > this is my code, I don't know why. 
>>>
>>> Nick -- did you also put the missing file in the directory in which you 
>>> run 
>>> the executable? What is the concrete error message? 
>>>
>>> Best 
>>> W. 
>>>
>>>
>>> -- 
>>> ------------------------------------------------------------------------ 
>>> Wolfgang Bangerth email: bang...@colostate.edu 
>>> www: http://www.math.colostate.edu/~bangerth/ 
>>>
>>>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/5a41fa6b-d232-4335-8d47-e69306bea9d4n%40googlegroups.com.

Reply via email to