Re: [sfepy-devel] GSoC Phase II
Probably yes but not today. Try putting the check statement to the beginning of the function and various other places. Also try printf/fmf_print, and print sizes of variable, to help determining where the problem actually is.
r.
----- Reply message ----- From: "Ankit Mahato" <aryan...@gmail.com> To: <sfepy...@googlegroups.com> Subject: [sfepy-devel] GSoC Phase II Date: Mon, Aug 12, 2013 15:28 Hi R,
Is it possible for you to come on Teamviewer - http://www.teamviewer.com/hi/index.aspx
Regards.
On Monday, 12 August 2013 18:52:29 UTC+5:30, Ankit Mahato wrote:
On Sunday, 11 August 2013 23:21:13 UTC+5:30, Robert Cimrman wrote:Hi Ankit,
On Sat, 10 Aug 2013, Ankit Mahato wrote:
Hi R,
I tried mem_checkIntegrity inside the functions but it is not printing
any debugging result.�
mem_checkIntegrity(421,"convect_build_vtg","termsNavierStokes.c","~/sfepy/sfepy/
terms/extmods");
mem_checkIntegrity(546,"term_ns_asm_convect","termsNavierStokes.c","~/sfepy/sfep
y/terms/extmods");
Am I adding it correctly?
Use the macro without arguments (see sfepy/fem/extmods/common.h for
definition):
check_memory_integrity();
and do not forget to rebuild the sources.
After adding it to convect_build_vtg()
...
default:
errput( ErrHead "ERR_Switch\n" );
return( RET_Fail );
}
check_memory_integrity();
return( RET_OK );
}
...
and typing "make", I get tons of
checking memory integrity in
sfepy/terms/extmods, sfepy/terms/extmods/termsNavierStokes.c,
convect_build_vtg(), 476:
allocated memory: 8 records, usage: 52032, max: 52032
memory OK.
- trying with the examples/navier_stokes/navier_stokes2d.py
Also try changing the debug flags in site_cfg.py:
debug_flags = '-DDEBUG_FMF'
or even
debug_flags = '-DDEBUG_FMF -DDEBUG_MESH'
It printed the debug results for examples/navier_stokes/navier_stokes2d.py
Then I tried running the convective_difffusive.py and it did not print any line containing allocated memory report: .. .. .. convdiff: matrix structural nonzeros: 1747752 (8.65e-04% fill) convdiff: updating materials... convdiff: m convdiff: ...done in 0.01 s convdiff: nls: iter: 0, residual: 2.002082e-02 (rel: 1.000000e+00) convect_build_vtg(): ERR_Switch Traceback (most recent call last): File "examples/phase_change/convective_diffusive/convective_diffusive.py", line 131, in <module> main() File "examples/phase_change/convective_diffusive/convective_diffusive.py", line 113, in main flow = problem.solve() File "/usr/local/lib/python2.7/dist-packages/sfepy/fem/problemDef.py", line 933, in solve vec = solvers.nls(vec0) File "/usr/local/lib/python2.7/dist-packages/sfepy/solvers/nls.py", line 345, in __call__ mtx_a = fun_grad(vec_x) File "/usr/local/lib/python2.7/dist-packages/sfepy/fem/evaluate.py", line 66, in eval_tangent_matrix mtx = pb.equations.eval_tangent_matrices(vec, mtx) File "/usr/local/lib/python2.7/dist-packages/sfepy/fem/equations.py", line 640, in eval_tangent_matrices self.evaluate(mode='weak', dw_mode='matrix', asm_obj=tangent_matrix) File "/usr/local/lib/python2.7/dist-packages/sfepy/fem/equations.py", line 526, in evaluate asm_obj=asm_obj) File "/usr/local/lib/python2.7/dist-packages/sfepy/fem/equations.py", line 766, in evaluate ret_status=True) File "/usr/local/lib/python2.7/dist-packages/sfepy/terms/terms.py", line 1474, in evaluate vals.append(self.sign * val) RuntimeError: ccore error (see above)
r.
-- You received this message because you are subscribed to the Google Groups "sfepy-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sfepy-devel...@googlegroups.com. To post to this group, send email to sfepy...@googlegroups.com. Visit this group at http://groups.google.com/group/sfepy-devel.
On Monday, 12 August 2013 19:33:52 UTC+5:30, Robert Cimrman wrote:
Probably yes but not today. Try putting the check statement to the beginning of the function and various other places. Also try printf/fmf_print, and print sizes of variable, to help determining where the problem actually is.
Okie R.
r.
----- Reply message ----- From: "Ankit Mahato" <arya...@gmail.com <javascript:>> To: <sfep...@googlegroups.com <javascript:>> Subject: [sfepy-devel] GSoC Phase II Date: Mon, Aug 12, 2013 15:28
Hi R,
Is it possible for you to come on Teamviewer - http://www.teamviewer.com/hi/index.aspx
Regards.
On Monday, 12 August 2013 18:52:29 UTC+5:30, Ankit Mahato wrote:
On Sunday, 11 August 2013 23:21:13 UTC+5:30, Robert Cimrman wrote:
Hi Ankit,
On Sat, 10 Aug 2013, Ankit Mahato wrote:
Hi R,
I tried mem_checkIntegrity inside the functions but it is not printing any debugging result.�
mem_checkIntegrity(421,"convect_build_vtg","termsNavierStokes.c","~/sfepy/sfepy/
terms/extmods");
mem_checkIntegrity(546,"term_ns_asm_convect","termsNavierStokes.c","~/sfepy/sfep
y/terms/extmods");
Am I adding it correctly?
Use the macro without arguments (see sfepy/fem/extmods/common.h for definition):
check_memory_integrity();
and do not forget to rebuild the sources.
After adding it to convect_build_vtg()
... default: errput( ErrHead "ERR_Switch\n" ); return( RET_Fail ); } check_memory_integrity(); return( RET_OK ); } ...
and typing "make", I get tons of
checking memory integrity in sfepy/terms/extmods, sfepy/terms/extmods/termsNavierStokes.c, convect_build_vtg(), 476: allocated memory: 8 records, usage: 52032, max: 52032 memory OK.
- trying with the examples/navier_stokes/navier_stokes2d.py
Also try changing the debug flags in site_cfg.py:
debug_flags = '-DDEBUG_FMF'
or even
debug_flags = '-DDEBUG_FMF -DDEBUG_MESH'
It printed the debug results for examples/navier_stokes/navier_stokes2d.py Then I tried running the convective_difffusive.py and it did not print any line containing allocated memory report: .. .. .. convdiff: matrix structural nonzeros: 1747752 (8.65e-04% fill) convdiff: updating materials... convdiff: m convdiff: ...done in 0.01 s convdiff: nls: iter: 0, residual: 2.002082e-02 (rel: 1.000000e+00) convect_build_vtg(): ERR_Switch Traceback (most recent call last): File "examples/phase_change/convective_diffusive/convective_diffusive.py", line 131, in <module> main() File "examples/phase_change/convective_diffusive/convective_diffusive.py", line 113, in main flow = problem.solve() File "/usr/local/lib/python2.7/dist-packages/sfepy/fem/problemDef.py", line 933, in solve vec = solvers.nls(vec0) File "/usr/local/lib/python2.7/dist-packages/sfepy/solvers/nls.py", line 345, in __call__ mtx_a = fun_grad(vec_x) File "/usr/local/lib/python2.7/dist-packages/sfepy/fem/evaluate.py", line 66, in eval_tangent_matrix mtx = pb.equations.eval_tangent_matrices(vec, mtx) File "/usr/local/lib/python2.7/dist-packages/sfepy/fem/equations.py", line 640, in eval_tangent_matrices self.evaluate(mode='weak', dw_mode='matrix', asm_obj=tangent_matrix) File "/usr/local/lib/python2.7/dist-packages/sfepy/fem/equations.py", line 526, in evaluate asm_obj=asm_obj) File "/usr/local/lib/python2.7/dist-packages/sfepy/fem/equations.py", line 766, in evaluate ret_status=True) File "/usr/local/lib/python2.7/dist-packages/sfepy/terms/terms.py", line 1474, in evaluate vals.append(self.sign * val) RuntimeError: ccore error (see above)
r.
--
You received this message because you are subscribed to the Google Groups "sfepy-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sfepy-d...@googlegroups.com <javascript:>. To post to this group, send email to sfep...@googlegroups.com<javascript:> . Visit this group at http://groups.google.com/group/sfepy-devel.
participants (2)
-
Ankit Mahato
-
Robert Cimrman