summaryrefslogtreecommitdiff
path: root/Trivac/src/VALPL.f
blob: b66cb785fb22d1e0a739545f649eb8a2fe8df7ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
*DECK VALPL
      FUNCTION VALPL(L,U)
*
*-----------------------------------------------------------------------
*
*Purpose:
* Return the Legendre function coefficients for the nodal collocation
* method.
*
*Copyright:
* Copyright (C) 2002 Ecole Polytechnique de Montreal
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version
*
*Author(s): A. Hebert
*
*Parameters: input
* L     order of the Legendre polynomial.
* U     indemendent variable.
*                                                                      
*----------------------------------------------------------------------
*
*----
*  SUBROUTINE ARGUMENTS
*----
      IF (L.EQ.0) P=1.0
      IF (L.EQ.1) P=2.0*U
      IF (L.EQ.2) P=(6.0*U*U-0.5)
      IF (L.EQ.3) P=(20.0*U*U-3.0)*U
      IF (L.EQ.4) P=(U*U*(70.0*U*U-15.0)+0.375)
      VALPL=SQRT(REAL(2*L+1))*P
      RETURN
      END