aboutsummaryrefslogtreecommitdiff
path: root/src/MoL_Init.F90
blob: 58a56116d5a078b9fe21f593b6714c9d8cb7e274 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
! Registration of variables with MoL
! $Header$

#include "cctk.h"
#include "cctk_Parameters.h"
#include "cctk_Arguments.h"

subroutine EHFinder_MoLRegister(CCTK_ARGUMENTS)

  implicit none

  CCTK_INT :: ierr, ierr_cum, varindex, rhsindex
  CCTK_INT :: MoLRegisterEvolvedGroup!, MoLRegisterEvolved
  CCTK_INT :: l

  DECLARE_CCTK_PARAMETERS
  DECLARE_CCTK_ARGUMENTS
  DECLARE_CCTK_FUNCTIONS

  ierr_cum = 0

  call CCTK_GroupIndex ( varindex, 'ehfinder::f' )
  call CCTK_GroupIndex ( rhsindex, 'ehfinder::sf' )

  ierr_cum = ierr_cum + MolRegisterEvolvedGroup ( varindex, rhsindex )

  if ( evolve_generators .gt. 0 ) then

    call CCTK_GroupIndex (varindex, 'ehfinder::xg')
    call CCTK_GroupIndex(rhsindex, 'ehfinder::dxg')

    ierr_cum = ierr_cum + MoLRegisterEvolvedGroup(varindex, rhsindex)

    call CCTK_GroupIndex (varindex, 'ehfinder::yg')
    call CCTK_GroupIndex(rhsindex, 'ehfinder::dyg')

    ierr_cum = ierr_cum + MoLRegisterEvolvedGroup(varindex, rhsindex)

    call CCTK_GroupIndex (varindex, 'ehfinder::zg')
    call CCTK_GroupIndex(rhsindex, 'ehfinder::dzg')

    ierr_cum = ierr_cum + MoLRegisterEvolvedGroup(varindex, rhsindex)

  end if
 
  if ( ierr_cum .gt. 0 ) then
    call CCTK_WARN(0,'Problems registering variables with MoL')
  end if
end subroutine EHFinder_MoLRegister