X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=binaries%2Fsrc%2Fdisembl%2FTisean_3.0.1%2Fsource_f%2Ftimerev.f;fp=binaries%2Fsrc%2Fdisembl%2FTisean_3.0.1%2Fsource_f%2Ftimerev.f;h=a931cb9af27d12472ee3084701762f5c388dac20;hb=a17c780665c109829426e062df4d75ff950725e0;hp=0000000000000000000000000000000000000000;hpb=f47da0247a9f9a8ac55571234064a0d3ded06b6c;p=jabaws.git diff --git a/binaries/src/disembl/Tisean_3.0.1/source_f/timerev.f b/binaries/src/disembl/Tisean_3.0.1/source_f/timerev.f new file mode 100644 index 0000000..a931cb9 --- /dev/null +++ b/binaries/src/disembl/Tisean_3.0.1/source_f/timerev.f @@ -0,0 +1,61 @@ +c=========================================================================== +c +c This file is part of TISEAN +c +c Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber +c +c TISEAN is free software; you can redistribute it and/or modify +c it under the terms of the GNU General Public License as published by +c the Free Software Foundation; either version 2 of the License, or +c (at your option) any later version. +c +c TISEAN is distributed in the hope that it will be useful, +c but WITHOUT ANY WARRANTY; without even the implied warranty of +c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +c GNU General Public License for more details. +c +c You should have received a copy of the GNU General Public License +c along with TISEAN; if not, write to the Free Software +c Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +c +c=========================================================================== +c Statistics for time reversibility +c author T. Schreiber (1999) +c=========================================================================== + parameter(nx=1000000) + dimension x(nx) + character*72 file + data iverb/1/ + + call whatido("time reversal asymmetry statistic",iverb) + id=abs(ican("d",1)) + nmaxx=ican("l",nx) + nexcl=ican("x",0) + jcol=ican("c",0) +c isout=igetout(fout,iverb) + + do 10 ifi=1,nstrings() + call nthstring(ifi,file) + nmax=nmaxx + call readfile(nmax,x,nexcl,jcol,file,iverb) + t2=0 + t3=0 + do 20 n=id+1,nmax + t2=t2+(x(n)-x(n-id))**2 + 20 t3=t3+(x(n)-x(n-id))**3 + 10 write(*,*) t3/t2, " "//file(1:index(file," ")-1) + end + + subroutine usage() +c usage message + + call whatineed( + . "[-d# -l# -x# -c# -V# -h] file(s)") + call popt("d","delay (1)") + call popt("l","number of values to be read (all)") + call popt("x","number of values to be skipped (0)") + call popt("c","column to be read (1 or file,#)") + call pall() + stop + end +