[oorb] r279 committed - Updated computation of moments for ranging

2 views
Skip to first unread message

oo...@googlecode.com

unread,
Apr 14, 2015, 3:22:22 AM4/14/15
to oo...@googlegroups.com
Revision: 279
Author: jxvir...@gmail.com
Date: Tue Apr 14 07:22:00 2015 UTC
Log: Updated computation of moments for ranging
https://code.google.com/p/oorb/source/detail?r=279

Modified:
/trunk/main/oorb.f90

=======================================
--- /trunk/main/oorb.f90 Wed Mar 11 18:45:14 2015 UTC
+++ /trunk/main/oorb.f90 Tue Apr 14 07:22:00 2015 UTC
@@ -1954,8 +1954,16 @@
END IF
END IF

+ CALL toString(dt, str, error, frmt="(F10.2)")
+ IF (error) THEN
+ CALL errorMessage("oorb / ranging ", &
+ "TRACE BACK (165)", 1)
+ STOP
+ END IF
+ str = TRIM(id) // "_"// TRIM(str)
! WRITE RANGING OUTPUT FILE WITH
CALL NEW(out_file, TRIM(id) // ".sor")
+! CALL NEW(out_file, TRIM(str) // ".sor")
CALL OPEN(out_file)
IF (error) THEN
CALL errorMessage("oorb / ranging", &
@@ -2015,6 +2023,7 @@
END IF
IF (separately) THEN
CALL NEW(out_file, TRIM(id) // ".orb")
+! CALL NEW(out_file, TRIM(str) // ".orb")
CALL OPEN(out_file)
IF (error) THEN
CALL errorMessage("oorb / ranging", &
@@ -2207,8 +2216,14 @@
STOP
END IF
DO j=1,6
- CALL moments(elements_arr(:,j), &
- pdf=pdf_arr_cmp, std_dev=stdev, errstr=errstr)
+ SELECT CASE (TRIM(flavor))
+ CASE ("mc", "random-walk")
+ CALL moments(elements_arr(:,j), &
+ pdf=pdf_arr_cmp, std_dev=stdev, errstr=errstr)
+ CASE ("mcmc")
+ CALL moments(elements_arr(:,j), &
+ std_dev=stdev, errstr=errstr)
+ END SELECT
WRITE(getUnit(tmp_file), "(F22.15,1X)", &
advance="no") stdev
stdev_arr(j)=stdev
Reply all
Reply to author
Forward
0 new messages