File | Last Change |
---|---|
![]() |
|
![]() |
1.11 (8 years ago) by mbobra: updated function calls for Jz to include the correct numerical derivative described in the sw_functions.c commit message for v.1.33. |
![]() |
1.33 (8 years ago) by mbobra: forgot to free the err_termX arrays |
![]() |
1.33 (8 years ago) by mbobra: changed the numerical derivative. here is a description of the problem that i fixed: In computeJz(), the newly malloc'd jz array has its interior points filled with values but its boundary points are left alone: for (i = 1; i <= nx-2; i++) { for (j = 1; j <= ny-2; j++) { // calculate jz at all points ... In all subsequent functions the array jz is used whole, including the uninitialized border. I ran your test case in the debugger. On n02, jz was 0 on the border; on solar3, I got wild values (gdb) p jz[0] $16 = 1.37765386e+10 (gdb) p jz[1] $17 = 1.35754556e-19 (gdb) p jz[2] $18 = 1.35631939e-19 If the code relies on the border being 0, then it was pure luck that it ran correctly on x86_64. |
![]() |
1.5 (9 years ago) by arta: Dont overwrite std compile flags. |
![]() |
1.3 (9 years ago) by xudong: added doffset |
![]() |
1.1 (11 years ago) by xudong: Update functioning code sharp.c per Monica's request |
![]() |
1.1 (11 years ago) by xudong: Update functioning code sharp.c per Monica's request |
![]() |
1.1 (11 years ago) by xudong: Update functioning code sharp.c per Monica's request |
![]() |
1.1 (11 years ago) by xudong: Update functioning code sharp.c per Monica's request |
![]() |
1.1 (11 years ago) by xudong: Update functioning code sharp.c per Monica's request |
![]() |
1.2 (11 years ago) by mbobra: The threshold for the mask has been changed to greater than 2 (old threshold was greater than 1). Modified Files: swharp_vectorB.c |
![]() |
1.1 (11 years ago) by mbobra: module to calculate the LOS B SHARP data |
![]() |
1.1 (11 years ago) by mbobra: functions for the space weather hmi active region patch (sharp) computations |