text stringlengths 9 3.83M |
|---|
subroutine errors
c *****************
c
include'com'
c
double precision pl(KK+1,KK+1)
double precision exact(KK+1)
double precision apprx(KK+1)
double precision errrr(KK+1)
c
c --- computing the Gaussian points
kgauss=k+4
call gauleg(-1.d00,1.d00,x,w,kgauss) ... |
C
C $Id: tdmtri.f,v 1.4 2008-07-27 00:17:33 haley Exp $
C
C Copyright (C) 2000
C University Corporation for Atmospheric Research
C All Rights Reserved
C
C The use of this Software is governed by a License Agreeme... |
INTEGER GETARG,GETLIN,OPEN
INTEGER I,FILE
INTEGER OUTCH,LINE(102)
FILE=-10
IF((GETARG(1,LINE,102).EQ.-1))GOTO 10000
FILE=OPEN(LINE,1)
IF((FILE.NE.-3))GOTO 10001
CALL CANT(LINE)
10001 CONTINUE
10000 CONTINUE
10002 IF((GETLIN(LINE,FILE).EQ.-1))GOTO 10003
I=1... |
* vert_his1_squ1.F
* this file is part of the process {MNE1, MNE1} -> {0, MZ}
* generated by WriteSquaredME 7 Oct 2009 9:58
subroutine gzvert_his1_squ1
implicit character (a-s,u-z)
implicit double complex (t)
#include "vars.h"
Cloop(1) = Cloop(1) +
- (Cval(cc00,iint44(squ1))*
- (1/(72.D... |
C MODULE JULDA
C-----------------------------------------------------------------------
C ROUTINE JULDA CONVERTS FROM MONTH, DAY, YEAR, HOUR FOR A SPECIFIED
C TIME ZONE TO INTERNAL CLOCK TIME
C (JULIAN DAY RELATIVE TO JAN 1, 1900)
C-----------------------------------------------------------------------
... |
C MEMBER FSAV2
C (from old member FCEX2)
C
SUBROUTINE FSAV2(K,PO,CO,C,RO)
C.......................................................................
C THIS SUBROUTINE COMPUTES THE RUNOFF TO BE SAVED AS CARRYOVER.
C.......................................................................
C SUBROUTINE INITIALL... |
module Svc {
@ Scheduler Port with order argument
port Sched(
context: NATIVE_UINT_TYPE @< The call order
)
}
|
************************************************************************
*
* Subroutine INPUTH2 Called by: INIT2
*
* input SBEG and SEND
*
************************************************************************
SUBROUTINE INPUTH2(SBEG,SEND,NSEAS)
*
* logical de... |
!------------------------------------------------------------------------------
! Harvard University Atmospheric Chemistry Modeling Group !
!------------------------------------------------------------------------------
!BOP
!
! !MODULE: diag49_mod
!
! !DESCRIPTION: Module DIAG49\_MOD contains varia... |
SUBROUTINE QGRDFI (U, ROW, M, LROW, TYPE)
C-----------------------------------------------------------------------
C! FPS AP version: Finished gridding row of UV data
C# AP-util
C-----------------------------------------------------------------------
C; Copyright (C) 1995
C; Associated Universities, Inc. Washin... |
subroutine dft_spinflip(g_dens,g_s,basis,c_a,c_b,
S no_sflip,at_flip)
C$Id$
implicit none
#include "errquit.fh"
#include "mafdecls.fh"
#include "global.fh"
#include "bas.fh"
#include "geom.fh"
integer g_dens(2)
integer g_s
integer basis,geom
double precision c_a,c_b
in... |
subroutine get_dampfac(io,nl,dmscale,dmnorm,dmgrad)
dimension dmscale(1),dmnorm(1),dmgrad(1)
c
c read a damping factor file to get the factors for block diagonal damping
c for each sub-layer of the model, for example, 14 basis function means
c 14 sublayers (or radial splines) for the inversion.
c Input: io ... |
C$Procedure GFRFOV ( GF, is ray in FOV? )
SUBROUTINE GFRFOV ( INST, RAYDIR, RFRAME, ABCORR,
. OBSRVR, STEP, CNFINE, RESULT )
C$ Abstract
C
C Determine time intervals when a specified ray intersects the
C space bounded by the field-of-view (FOV) of a specified
C instrum... |
C NAME: PI SPMD ... a simple version.
C This program will numerically compute the integral of
C 4/(1+x*x)
C from 0 to 1. The value of this integral is pi -- which
C is great since it gives us an easy way to check the answer.
C The program was parallelized using OpenMP and an SPMD
C algorit... |
program TSPAN
c to test spantree.for
c If states i and j are connected then IC(1,m)=i, IC(2,m)=j, m=1,ncon
c IC is IC(2,ncon).
c May be easier to work with JCON(i,j)=0 if i,j not connected, =1 if connected
c where JCON(k,k), k=number of states (symmetric -only lower triangle needed)
integer IC(2,200),JCON(100,100)
i... |
* lpair_photos.f =====================================================
* By A. Shamov
* PHOTOS control in LPAIR
* call lpair_photos(flags,omegamin)
* integer flags = 1 - radiation off muon lines
* 2 - radiation off proton lines
* 3 - both
*===========================... |
subroutine copy_32_to_64(n, a32, a64)
implicit none
!
integer, parameter :: sp = selected_real_kind(6, 37)
integer, parameter :: dp = selected_real_kind(15, 307)
!
integer, intent(in) :: n
real(kind=sp), intent(in) :: a32(n)
real(kind=dp), intent(out) :: a64... |
c$pragma c setres
C$PRAGMA C (GETUNO)
C MODULE RSFILE
C-----------------------------------------------------------------------
C Routine to reserve a file unit number for later use.
C-----------------------------------------------------------------------
C notes: (1) This subroutine does not open the file. It just
C... |
C %W% %G%
subroutine hotchg
C process /CHANGE_BUS_TYPES commands.
include 'ipfinc/parametr.inc'
include 'ipfinc/alpha.inc'
include 'ipfinc/arcntl.inc'
include 'ipfinc/area.inc'
include 'ipfinc/blank.inc'
include 'ipfinc/branch.inc'
include 'ipfinc/... |
SUBROUTINE WRTMAP55(PO,NB,MPRV,XXLAT,XXLON,Y,HS,BS,BSS,X,HLV,
. NJFM,NIFM,NJTO,NITO,NQL,LQ1,LQN,MPLOC,JCK,IMAP,MRV,NJUN,NSTR,
. NST,STONAM,GZO,DTMAP,DTH,IOPNMAP,
. K1,K2,K9,K10,K14,K22,K27,K30)
c this subroutine writes out the data needed for FLDVIEW
c data is written to four files:
c (1)... |
C @(#)comdrp.f 20.3 2/13/96
subroutine comdrp (annote, iter, num1, deldrp, num2, delpku,
1 status, getpqv, numitr)
C This subroutine computes the generation reallocation.
C
C Parameters: ANNOTE = Character string identifying calls.
C ITER = Cu... |
SUBROUTINE RADIAL
INCLUDE 'SOLDIV.FI'
C CALCULATES RADIAL LOSS TERMS FOR SOLDIV PLASMA
C RADIAL LOSS RATES USING BOHM DIFFUSION
IF(CHIRSOL.EQ.0.0) GOTO 50
C PARTICLE
TAUPART = (DELN**2)/CHIRSOL
DNRAD = (DELN/TAUPART)*(XLPERP*XNSOL +
2 (XLPAR - XLPERP - DELLT)*XNDIV/EPDIV + DELLT*XND/EPDIV)
C ENERG... |
* vert_lpd1.F
* this file is part of the process {MNE1, MNE1} -> {0, 0}
* generated by WriteSquaredME 5 Oct 2009 6:36
subroutine vert_lpd1
implicit character (a-s,u-z)
implicit double complex (t)
#include "vars.h"
tmp7 = -(1/2.D0*(AAABR(1365)*MTR144(1,1))) +
- 1/2.D0*(AAABR(1365)*MTR145(1,1)) +
... |
SUBROUTINE NULLCOUNT32(A,N,NNULL)
IMPLICIT NONE
C
C_TITLE NULLCOUNT32 - Count 'null' flags in a REAL*4 array
C
C_ARGS TYPE VARIABLE I/O DESCRIPTION
INTEGER*4 N !I # of elements in A
REAL*4 A(N) !I Array to be searched
INTEGER*4 NNULL !O # of nulls found
C
C_DESC Counts the number of nulls in a... |
block data inialpha
double precision alpha(4)
common /healpha/ alpha
data alpha / 0.297104,
* 1.236745,
* 5.749982,
* 38.216677/
end
subroutine basis(x,chi)
*
* returns the basis function chi(i)=exp(-alpha(i)*x^2)
*
double prec... |
module probe_def_m
implicit none
type probe_t
real*8 :: mass, momentum(3), energy
end type probe_t
integer, parameter :: nprobe = 1
&, iprobe_domain = 1
end module probe_def_m
c
module probe_m
c
c-------------------------------------... |
SUBROUTINE GETINT(ACRCY,ILBL,ILBM,IINTS)
C
C
C
IMPLICIT REAL*8 (A-H,O-Z)
C
CTJL EXTENDED DUMMY IINTS
C
INTEGER REFWLK,SYMORB,MAXB,LVFRM1,IINTS(1)
C
COMMON /TAPES/ ITAP52,ITAPE5,ITAPE6,ITAP58,ITAP12,ITAP99,ITAP04
*, ITAPE3,ITAP05,ITAP06
COMMON /DIMS/ NBF,NSYM,NORBS,NROW... |
SUBROUTINE CUBHLX (START, ROTS, HUE, GAMMA, NLEVS, RED, GRN, BLU,
* NLO, nHI)
C-----------------------------------------------------------------------
C! OFM helix in color intensity space called by TVHELX
C# POPS=appl TV-appl
C-----------------------------------------------------------------------
C; Cop... |
SUBROUTINE EQMCKS
C
C THIS SUBROUTINE CALCULATES AND OUTPUTS OVERALL EQUILIBRIUM FORCES
C
C THE INPUT FILES ARE
C KSCC - CASE CONTROL - NOT PREPOSITIONED.
C KPGG - LOAD VECTORS - FILE 110 OR SCRATCH4
C KQG - SPC CONSTRAINTS - FILE 111 OR SCRATCH5
C QMG - MPC CONS... |
C
C NLP-UNCONSTRAINED-CLI/NELDER-MEAD/__ORIG/SRC/NELMIN.F
C =============================================================================
C NONLINEAR OPTIMIZATION ALGORITHMS MULTILANG. VERSION 0.1
C =============================================================================
C NONLINEAR PROGRAMMING ALGORITHMS AS THE (... |
PROGRAM QPLOT
C ********************************************************************
C * *
C * This software is an unpublished work containing confidential and *
C * proprietary information of Birkbeck College. Use, disclosure, *
C * reproduction... |
SUBROUTINE DSPLFT( X, Y, DY, S, N, W, * )
C
C This routine interpolates and/or smooths 1 dimensional array.
C DSPLFT fits a cubic spline function to a set of data points
C (X(I),Y(I)), I = 1, N. The routine will try to achieve
C sum(i=1,N) of (g(X(i))-Y(i))**2/(DY(i)**2) < S where DY(i)>0,
C i=1,....N AND S ... |
FUNCTION betacf(a,b,x)
INTEGER MAXIT
REAL betacf,a,b,x,EPS,FPMIN
PARAMETER (MAXIT=100,EPS=3.e-7,FPMIN=1.e-30)
INTEGER m,m2
REAL aa,c,d,del,h,qab,qam,qap
qab=a+b
qap=a+1.
qam=a-1.
c=1.
d=1.-qab*x/qap
if(abs(d).lt.FPMIN)d=FPMIN
d=1.... |
PROGRAM PGKEX25
C
C Define error file, Fortran unit number, and workstation type,
C and workstation ID.
C
PARAMETER (IERRF=6, LUNIT=2, IWTYPE=1, IWKID=1)
DIMENSION X(100),Y(100)
C
C Open GKS, open and activate a workstation.
C
CALL GOPKS (IERRF,IDUM)
CALL GOPWK (IWKID,LUNIT,IWTYPE)
... |
SUBROUTINE G13ADY(COV,TOR,ERR,WA,IQ1,EPSILN,MAXITN,IFAIL1)
C MARK 9 RELEASE. NAG COPYRIGHT 1981.
C MARK 11.5(F77) REVISED. (SEPT 1985.)
C
C G13ADY CALCULATES PRELIMINARY
C ESTIMATES OF MOVING AVERAGE PARAMETERS FOR G13ADZ
C (CRAMER WOLD FACTORISATION)
C
C PARAMETERS
C COV - ARRAY ... |
c************************************************
program MODELador
c************************************************
c
c Se trata de un programa que es capaz de fabricar un fichero
c perturbado en T,Pe,H,V a partir de un modelo tau,t,pe,magfield
c definiciones
parameter (np=10000) !numero maximo de puntos en tau
... |
C @(#)movnew.f 20.3 2/13/96
c
c Subroutine movnew. Re-orders one and two dimensional arrays.
c 31-Oct-94 Added three new entry points to handle double precision
c arrays: mvnew1d, movod1d and movod2d. Also added an entry point
c to handle a real array movol1r.
c
subroutine movnew (inar1, inar2, inarc, inar... |
SUBROUTINE G03AAF(MATRIX,STD,WEIGHT,N,M,X,LDX,ISX,S,WT,NVAR,E,LDE,
* P,LDP,V,LDV,WK,IFAIL)
C MARK 14 RELEASE. NAG COPYRIGHT 1989.
C MARK 16A REVISED. IER-1035 (JUN 1993).
C MARK 17 REVISED. IER-1661 (JUN 1995).
C
C PRINCIPAL COMPONENT ANALYSIS
C
C .. Parameters ..
C... |
C$PROG MAGNET
SUBROUTINE MAGNET
IMPLICIT REAL*8(A-H,O-Z)
c INTEGER ABSORB
character*4 ABSORB
COMMON/AAA/ V(4), NZ(30), CONST(50), ZZ(25)
DIMENSION Q(10), EL(10), TABRD(150), TABCH(150), W(10)
DIMENSION JRAK(6),TBACK(2)
DIMENSION FXFUK(2)
EQUIVALENCE (CONST(19),DEGRAD)... |
SUBROUTINE MATCK (MFILE,PFILE,A,Z)
C
C THIS ROUTINE CHECKS THE UNIQUENESS OF MATERIAL ID'S FOR
C 1. MAT1 (1) 8. MATT1 (MB) 15. MATS1 (MC)
C 2. MAT2 9. MATT2 16. MATPZ1 (MD)
C 3. MAT3 10. MATT3 17. MTTPZ1
C 4. MAT4 11. MATT4 ... |
double precision mpol,mmon,gamm
common/monopar/mpol,mmon,gamm
|
SUBROUTINE PREFFT (GAMMA)
C-----------------------------------------------------------------------
C! Convex Pseudo AP routine: Initialize FFT tables for QXFOUR.
C# AP-FFT
C-----------------------------------------------------------------------
C; Copyright (C) 1995
C; Associated Universities, Inc. Washington D... |
program T02_1941559
!-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
!-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- Creado por Diego Alejandro Tellez Martinez -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
!-_-_-_-_-_-_-_-_-_-_-_... |
subroutine syminverse( a, n )
implicit none
integer :: n
double precision :: a( n, n )
!D for debug use when n = 2
!D
!D double precision :: b( n, n )
!D double precision :: c( n, n )
double precision work2( 2 * n )
double precision work( n )
integer ipiv( n )
... |
program arithif
c Aritmethic if
read*,i
if (i) 10, 20, 30
10 print*,'Number is negative'
stop
20 print*,'Zero'
stop
30 print*,'Number is positive'
stop
end
|
PROGRAM C05EX13
PARAMETER (PI = 3.1415926)
WRITE(*, 10) SINH(60.0*PI/180.0) ! 1.24937
10 FORMAT(F8.5)
WRITE(*, 20) SINH(45.0*PI/180.0) ! 0.86867
20 FORMAT(F8.5)
WRITE(*, 30) SINH(-1.0) ! -1.17520
30 FORMAT(F8.5)
WRITE(*, 40) SINH(4.0) ! 27.28992
... |
*
* $Id: sfchan_direction.F,v 1.1 2002/09/05 18:54:12 dpp Exp $
*
* $Log: sfchan_direction.F,v $
* Revision 1.1 2002/09/05 18:54:12 dpp
* -> NEW ROUTINE
* -> PROCEDURE TO SET-DIRECTION-ADDRESSES
*
*
*
#include "sys/CLEO_machine.h"
#include "pilot.h"
*-- Author : DAN PETERSON
SUBROUTINE SFCHAN_DIRECTI... |
C MEMBER FRAC26
C (from old member FCFRAC26)
C***********************************************************************
FUNCTION FRAC26(DIFQI,DIFQOK,QI1,QO1,QOK1,QSFRAC,S1,SFILL,IBUG)
C***********************************************************************
C FUNCTION FRAC26 COMPUTES THE FRACTION OF THE TIME PERIOD... |
PROGRAM MAIN
COMMON REAL N,M,K
REAL T,I,J
REAL Y(100,100), X(100,100), Z(100,100)
WRITE(6,*)'MULTIPLICATION OF Y(N,M) AND X(K,N) MATRICES WHERE Y(N,
* M) REPRESENTS N=NUMBER OF COLUMNS AND M=NUMBER OF ROWS'
! * IS CONTINUATION CHARACTER
READ*, N... |
subroutine primlst
x (idnode,mxnode,natms,imcon,rprim,lentry,list,
x cell,xxx,yyy,zzz,xdf,ydf,zdf)
c
c*************************************************************************************
c
c dlpoly routine to split interaction list into primary and secondary
c neighbours for use wi... |
DIMENSION IDEX(200), NVECT(200), XSIZE(200), YSIZE(200), X0(2300),
* Y0(2300), X1(2300), Y1(2300)
DIMENSION RVAL(4)
CHARACTER*32FILE1, FILE2
INTEGER OUTFONT
LOGICAL FIRST, LAST
INFONT = 12
OUTFONT = 13
10 FORMAT(1X, A)
2000 CONTINUE
WRITE(6, 10) '_Enter input f... |
#include "PILOT.inc"
SUBROUTINE SSPRT(ID)
C-----------------------------------------------------------------------
C
C Print decay modes for ID. Note these need not be contiguous,
C so the loop is over all modes in /SSMODE/.
C
C-----------------------------------------------------------------------
#ifdef... |
FUNCTION IFXY(ADSC)
C$$$ SUBPROGRAM DOCUMENTATION BLOCK
C
C SUBPROGRAM: IFXY
C PRGMMR: WOOLLEN ORG: NP20 DATE: 1994-01-06
C
C ABSTRACT: THIS FUNCTION RETURNS THE INTEGER CORRESPONDING TO THE
C BIT-WISE REPRESENTATION OF AN INPUT CHARACTER FXY VALUE OF LENGTH
C SIX.
C
C PROGRAM HISTORY LO... |
c QSATS version 1.0 (3 March 2011)
c file name: eloc.f
c ----------------------------------------------------------------------
c this computes the total energy and the expectation value of the
c potential energy from the snapshots recorded by QSATS.
c -----------------------------------------------... |
subroutine rexsph ( mphase, ipr2, ispec, vixan, xkstep, xkmax,
1 gamach, rgrd,
1 nph, lmaxph, potlbl, spinph, iatph, nat, rat, iphat,
2 ixc, vr0, vi0, ixc0, lreal, rfms2, lfms2, l2lp,
3 ipol, ispin, le2, angks, ptz, iPl, iGrid,
4 ... |
c ==========================================================
c Function filter4. Broadband filreting.
c ==========================================================
c Parameters for filter4 function:
c Input parameters:
c f1,f2 - low corner frequences, f2 > f1, Hz, (double)
c f3,f4 - high corner frequences, f4 > f3, ... |
DIMENSION TITL(20)
CHARACTER CSTR*80
EQUIVALENCE (CSTR,TITL)
CALL SETERM(MTRN)
OPEN(7,FILE='SIM.TMP',STATUS='UNKNOWN')
OPEN(10,FILE='SIM.PCT',STATUS='UNKNOWN')
OPEN(77,FILE='SIM.DS',STATUS='UNKNOWN')
DS=.15
E=.1
RB=.4
NT=600
VS=100000.
EM=1.7... |
subroutine potts_mag(ns,nqm1,ista,nstate)
C Copyright Bernd Berg, Jul 9 2002.
C Magnetization measurement for the Potts model.
include '../../ForLib/implicit.sta'
include '../../ForLib/constants.par'
dimension ista(ns),nstate(0:nqm1)
ltest=.true.
do iq=0,nqm1
nstate(iq)=0
... |
* -*- mode: fortran -*-
*######################################################################*
* i n c l u d e f i l e *
*######################################################################*
****************************************************... |
!
! Demonstrates use of DMMGSetSNESLocal() from Fortran
!
! Note: the access to the entries of the local arrays below use the Fortran
! convention of starting at zero. However calls to MatSetValues() start at 0.
! Also note that you will have to map the i,j,k coordinates to the local PETSc ordering
! before ... |
C DUMMY VERSION FOR AIX: NO FORTRAN ENCODE
SUBROUTINE RICON
WRITE(*,*)'WARNING: RICON CALLED'
WRITE(*,*)'NOT IMPLEMENTED YET ON IBM/AIX'
RETURN
END
|
!-----------------------
! madgraph - a Feynman Diagram package by Tim Stelzer and Bill Long
! (c) 1993
!
! Filename: readproc.f
!-----------------------
subroutine readproc(more)
!************************************************************************
! Super-Routine that checks for duplicates
!********... |
c*********************************************************************
function urand()
c=====================================================================
c Return the next pseudo-random deviate from a sequence which is
c uniformly distributed in the interval [0,1]
c
c Uses the function ran0, the ... |
c RINGFIT.FOR - a program used to solve for the
c rings of the fabry-perot interferometer. this is done by
c solving the equation:
c
c wl= (a + b*z ) * cos( arctan( r/c ) )
c
c where a, b, and c are the coefficients to be solved for and
c r is the radius of a calibration ring, wl is the wavelength
c of that ring, z is... |
SUBROUTINE h_fill_fpp(ABORT,err)
*--------------------------------------------------------
* Hall C HMS Focal Plane Polarimeter Code
*
* Purpose: fill FPP histograms
* histogram IDs are from common block in file
* hms_id_histid.cmn and assigned in h_init_histid
*
* Created by Frank R. W... |
SUBROUTINE IMSEL (INDSK, INCNO, OUTDSK, OUTCNO, VERS, INCB, OUTCB,
* INLUN, OUTLUN, BPOL, EPOL, BIF, EIF, FREQID, START, FINISH,
* NUMSRC, SOURCS, ANTENS, NUMANT, INSUB, OUTSUB, INBUF, OUTBUF,
* IRET)
C-----------------------------------------------------------------------
C! Copies an IM tab... |
function fv(VS)
include "common6.h"
COMMON/GALAXY/ GMG,RG(3),VG(3),FG(3),FGD(3),TG,
& OMEGA,DISK,A,B,V02,RL2,GMB,AR,GAM,ZDUM(7)
real*8 :: VS, E_DIM, fv
*
!write(206,*) "VS", VS
!Calculate dimensionless energy for star at v and r.
E_DIM = 0.5*VS**2... |
SUBROUTINE SET_SPEED(SPEED,*)
C.
C. reqd. routines - NONE
C.
C. Subroutine to set the baud rate of the user's terminal
C.
C. CALL SET_SPEED('Speed',&Line #)
C. where:
C. Speed = Character Variable describing the
C. baud rate of the terminal
C. Line #= Line # to go to on illegal baud rate
C.
C. T. Miles, TRIUMF,... |
C $Header: /u/gcmpack/MITgcm/model/src/load_ref_files.F,v 1.2 2010/12/22 00:05:31 jmc Exp $
C $Name: $
c #include "PACKAGES_CONFIG.h"
#include "CPP_OPTIONS.h"
CBOP
C !ROUTINE: LOAD_REF_FILES
C !INTERFACE:
SUBROUTINE LOAD_REF_FILES( myThid )
C !DESCRIPTION: \bv
C *===============================... |
C$Procedure ZZEKJOIN ( Perform join on two join row sets )
SUBROUTINE ZZEKJOIN ( JBASE1, JBASE2, NJCNST, ACTIVE,
. CPIDX1, CLIDX1, ELTS1, OPS,
. CPIDX2, CLIDX2, ELTS2, STHAN,
. STSDSC, STDTPT, DTPOOL, DTDSCS,
. ... |
PROGRAM CALC_SLENGTH
USE ANGSYM
REAL*8 :: RADA, SLENGTH
INTEGER :: MODEL, NDVR, LMAX, MAN, LAN, KSYM, NANG, NSPS
INTEGER, ALLOCATABLE :: L(:), M(:)
COMPLEX*16, ALLOCATABLE :: CK(:)
CHARACTER(30) :: STR, FILENAME, SYMNAME
IF (IARGC() .LT. 7) STOP 'AT LEAST 7 PARAMET... |
c
c*********************
c
subroutine modobs(xr,xo,wtfunc,tfunc,errscale,ru,rt)
complex xr(*),xo,tfunc(3),xp
real ru,rt
external wtfunc
xp=tfunc(1)*xr(1)+tfunc(2)*xr(2)
pr=real(xp)
pi=aimag(xp)
zr=real(xo)
zi=aimag(xo)
w=abs(zr-pr... |
*
* $Id: smxvec.F,v 1.1 2003/03/05 17:44:48 dpp Exp $
*
* $Log: smxvec.F,v $
* Revision 1.1 2003/03/05 17:44:48 dpp
* -> NEW ROUTINE, moved from "fitter/."
* -> changed all variable names in cdscrtcd to have common root
*
* Revision 1.2 2001/11/19 23:44:15 dpp
* -> delete unused include file
*
* Revis... |
SUBROUTINE F04FEF(N,T,X,WANTP,P,WANTV,V,VLAST,WORK,IFAIL)
C MARK 15 RELEASE. NAG COPYRIGHT 1991.
C -- Written on 9-February-1990.
C This version dated 29-December-1990.
C Sven Hammarling, Nag Ltd.
C
C .. Parameters ..
DOUBLE PRECISION ONE, ZERO
PARAMETER (ONE=1.0D+0,ZERO=0... |
C LAST UPDATE 16/03/89
C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
C
SUBROUTINE CROSS (X,XX,Y,YY,YYY,XXX)
IMPLICIT NONE
C
C Purpose: Interpolates cross point between curve and shadow.
C
REAL X,XX,Y,YY,YYY,XXX
C
C X : Abscissa value 1
C XX : Abscissa value 2
C... |
PROGRAM C03EX03
INTEGER*2 A, B, R
WRITE(*, 10)
10 FORMAT("Entre os valores para as variaveis <A> e <B>.")
READ(*, 20) A
READ(*, 20) B
20 FORMAT(2I6)
R = A + B
IF (R .GE. 10) THEN
WRITE(*, 30) R + 5
30 FORMAT("Resultado = ", I6)
ELSE
... |
FUNCTION factrl(n)
INTEGER n
REAL factrl
CU USES gammln
INTEGER j,ntop
REAL a(33),gammln
SAVE ntop,a
DATA ntop,a(1)/0,1./
if (n.lt.0) then
pause 'negative factorial in factrl'
else if (n.le.ntop) then
factrl=a(n+1)
else if (n.le.... |
subroutine check_switches2 (ierr)
implicit none
integer*4 ierr, iwest, ieast, isouth, inorth, iAk
integer*4 LLm,Lm,MMm,Mm,N, LLm0,MMm0
parameter (LLm0=1519, MMm0=1399, N=32)
integer*4 Lmmpi,Mmmpi,iminmpi,imaxmpi,jminmpi,jmaxmpi
common /comm_setup_mpi/ Lmmpi,Mmmpi,
& ... |
SUBROUTINE OVLT1T2(CMO1,CMO2,T12,DSTO,CCSET2)
C
C Purpose: Calculate orbital overlaps between time steps
C
C History: - Creation (10.07.15, LGMP)
C
C ******************************************************************
C
C List of local dimensions:
C
C DSTO: Dimension of Slater type orbital matr... |
integer function isizof(data)
#if defined(sun)
implicit undefined (a-z)
#else
implicit integer (a-z)
#endif
character*(*) data
if (data .eq. 'REAL') then
isizof = 2
else if (data .eq. 'REAL_IN_BYTES') then
isizof = 8
else if (data .eq. 'INT') then
isizo... |
Subroutine Check_PossibleDisplacement(Qd,Qd1,Qd2,
& Qdp1,Qdp2,
& nA,DeltaLamdai1,DeltaLamdai2,iOut)
Implicit Real(kind=8) (a-h,o-z)
! At the beginning of each Loadstep
Real(kind=8) Qd ,Qd1 ,Qd2 ,Qdp1 ,Qdp2
Dimension Qd(nA),Qd1(nA),Qd2(nA),Qdp1(nA),Qdp2(nA)
DATA zero/0.D0/,one/1.0D0/,tw... |
subroutine psphexll(posupo,M,posuloc,nnod,dumpo)
implicit NONE
!-------------------------------------------------------------------
! This subroutine saves (nnod x 8 array)dumpo array into linked list
! The ending and starting of the linked list is stored in psuloc.
!
! elem: elements array ... |
C $Header: /u/gcmpack/MITgcm/model/src/cg2d_sr.F,v 1.4 2011/06/08 01:46:34 jmc Exp $
C $Name: $
#include "CPP_OPTIONS.h"
#ifdef TARGET_NEC_SX
C set a sensible default for the outer loop unrolling parameter that can
C be overriden in the Makefile with the DEFINES macro or in CPP_OPTIONS.h
#ifndef CG2D_OUTERLOO... |
C $Header: /u/gcmpack/MITgcm/pkg/ptracers/ptracers_readparms.F,v 1.38 2010/12/13 20:27:15 jmc Exp $
C $Name: $
#include "PTRACERS_OPTIONS.h"
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
CBOP
C !ROUTINE: PTRACERS_READPARMS
C !INTERFACE:
SUBROUTINE PTRACERS_READPARMS(... |
Subroutine Get_Loads(LocF,ValF,nLod,nQc1,nQc2,iCont,iOut)
Implicit Real(kind=8) (a-h,o-z)
!==========================================================================================
include 'Drill.h'
include 'Examples.h'
!==========================================================================================
Re... |
SUBROUTINE F08JFF(N,D,E,INFO)
C MARK 16 RELEASE. NAG COPYRIGHT 1992.
C MARK 17 REVISED. IER-1652 (JUN 1995).
C .. Entry Points ..
ENTRY DSTERF(N,D,E,INFO)
C
C Purpose
C =======
C
C DSTERF computes all the eigenvalues of a real symmetric tridiagonal
C matrix T, using the Pal-Walke... |
c---------------------------------------------------------------------
c---------------------------------------------------------------------
subroutine adi(rhs,qs,square,forcing,ws,u,vs,us,
> rho_i,speed,IMAXP,JMAXP,KMAX)
c---------------------------------------------------------------------
c-------... |
C $Header: /u/gcmpack/MITgcm/pkg/seaice/seaice_ad_dump.F,v 1.6 2009/08/27 18:00:01 jmc Exp $
C $Name: $
#include "AD_CONFIG.h"
#include "PACKAGES_CONFIG.h"
#include "SEAICE_OPTIONS.h"
CBOP
C !ROUTINE: seaice_ad_dump
C !INTERFACE:
subroutine seaice_ad_dump( mytime, myiter, myThid )
C !DESCRIPTION: ... |
SUBROUTINE CFEER4
C
C CFEER4 OBTAINS THE EIGENVALUES AND EIGENVECTORS FROM THE
C REDUCED TRIDIAGONAL MATRIX FOR THE COMPLEX FEER METHOD
C
LOGICAL NO B ,DECREM ,QPR ,LZ(1) ,
1 DPMACH
INTEGER NAME(2) ,IZ(1) ,EOR
INTEGER ... |
LOCAL INCLUDE 'REFLG.INC'
C Local include for REFLG
INCLUDE 'INCS:ZPBUFSZ.INC'
INCLUDE 'INCS:PUVD.INC'
INTEGER MAXTIM, MAXSOU
PARAMETER (MAXTIM=100000)
PARAMETER (MAXSOU=300)
C
HOLLERITH XNAMEI(3), XCLAIN(2), XXSOUR(4,30), XCALC
REAL ... |
SUBROUTINE E04UCG(FIRSTV,HITLOW,ISTATE,INFORM,JADD,N,NCTOTL,
* NUMINF,ALFA,PALFA,ATPHIT,BIGALF,BIGBND,PNORM,
* ANORM,AP,AX,BL,BU,FEATOL,P,X)
C MARK 14 RE-ISSUE. NAG COPYRIGHT 1989.
C MARK 16 REVISED. IER-1078 (JUL 1993).
C MARK 17 REVISED. IER-1600 (JUN 199... |
Subroutine Form_Constitutive_Expanded(D,nCMat,iOut)
!********************************************* nCMat MUST be 12 ********************
Implicit Real(kind=8) (a-h,o-z)
!
include 'Material.h'
include 'LogParams.h'
!
Real(kind=8) D
Dimension D(nCMat,nCMat)
!
DATA zero/0.D0/,one/1.0D0... |
12 <--SHAPES
12 <--LINES
id1
2 <--TYPE
639 <--LEFT
14 <--TOP
70 <--WIDTH
30 <--HEIGHT
16777215 <--BACKCOLOR
0 <--BORDERCOLOR
0 <--BORDERCOLOR
-reserved 1-
-reserved 2-
START
id2
2 <--TYPE
638 <--LEFT
549 <--TOP
70... |
C Last change: LKS 26 Apr 2008 8:15 am
subroutine irrad
c
c core routine on file irrad.f
c
c called by RADANAL [MAIN->RADANAL->IRRAD]
c
c This routine computes various irradiances.
c Mean cosines and the irradiance reflectance are also computed
c and printed.
c Tota... |
SUBROUTINE F02WCZ(M,N,C,NRC,Z,Q,NRQ)
C MARK 8 RELEASE. NAG COPYRIGHT 1979.
C MARK 11.5(F77) REVISED. (SEPT 1985.)
C WRITTEN BY S. HAMMARLING, MIDDLESEX POLYTECHNIC (HOUGVQ)
C
C F02WCZ RETURNS THE FIRST N COLUMNS OF THE M*M ORTHOGONAL
C MATRIX Q FOR THE FACTORIZATION OF ROUTINE F01QAF. N MUST
C... |
subroutine PPAR4(iprt,idprt,cdate,ctime,iTSAMP,iTPREc,nsamp,nDv,
&iDd,calfac,calvolt,nAc,dnAc,irate,ncjump,ilenc,igapc,ivhold,sampv,
& vjump,control,nAv,dnAv,nvjump,iTPREv,ilenv,igapv,ivolt1,ivolt2,
& amVpA1,ftape,gain,nsweep,swtime,ismode,swval,nkeep,ikeep,kstep,
& jkeep,nsamp1,tkpre,tkpost,iramp)... |
C$ Disclaimer
C
C THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE
C CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S.
C GOVERNMENT CONTRACT WITH THE NATIONAL AERONAUTICS AND SPACE
C ADMINISTRATION (NASA). THE SOFTWARE IS TECHNOLOGY AND SOFTWARE
C PUBLICLY AVAILABLE UNDER U.S. EXP... |
c-------------------------------------------------------------------------------------------------c
program project_euler_59
c-------------------------------------------------------------------------------------------------c
c ... |
C MODULE SCPCPN
C-----------------------------------------------------------------------
C
C ROUTINE TO PUNCH STATION PCPN PARAMETERS.
C
SUBROUTINE SCPCPN (IPNCH,UNITS,IVPCPN,STAID,IPROC,IPTIME,
* MDRBOX,PCPNCF,IPTWGT,IPSWGT,IPCHAR,STASID,STASWT,ISTAT)
C
CHARACTER*4 UNITS,PMDR,PCODE
CHARACTER*... |
c****************************************************************************
function ybyx()
c return the ratio of window height to width.
real ybyx
include 'plotcom.h'
ybyx=(naymax-naymin)/(naxmax-naxmin)
end
C********************************************************************
subroutine pfset(isw)
c Set ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.