Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Rockout_8node.f90
Go to the documentation of this file.
1 !!****
2 !!
3 !! NAME
4 !! RockOut_8node
5 !!
6 !! FUNCTION
7 !! This subroutine writes an ASCII file of 8 node elements and associated temperature
8 !! data at every timestep.
9 !!
10 !! INPUTS
11 !! glb -- The global pointer variable
12 !! CurrentTimeStep -- The current time step (for file naming)
13 !!
14 !! OUTPUTS
15 !! newnrows -- The number of rows assigned to this proc after BCs have been removed
16 !! newnstart -- The global index of the first row assigned to this proc after BCs have been removed
17 !! newndim -- The size of the global Meff matrix after BCs have been removed
18 !!
19 !! USES
20 !! none
21 !!
22 !!****
23  SUBROUTINE rockout_8node(glb,CurrentTimeStep)
24 
25  USE implicit_global
26  USE comp_row_global
27  USE precision
28 
29  IMPLICIT NONE
30 
31  TYPE(rocfrac_global) :: glb
32  CHARACTER(LEN=4) :: chr1
33  INTEGER :: currenttimestep
34  INTEGER :: i,j,k
35 
36  print*,'ROCK OUT!!!! MEEDLEY-MEEDLEY!!!'
37 
38  WRITE(chr1,'(i4.4)') 0!CurrentTimeStep
39 ! i = CurrentTimeStep
40  i=0
41  print*,i,glb%NumNP
42  ! WRITE(ichr2,'(I4.4)') myid
43  print*,'ROCK OUT!!!! before IO'
44 
45  ! OPEN(9940+i,FILE='Rocfrac/Rocout/RocTherm.'//ichr1//'.'//ichr2,POSITION='APPEND')
46  OPEN(900+i,file='Rocfrac/Rocout/RocTherm.'//chr1//'.dat',position='APPEND')
47 ! print*,'1'
48 ! WRITE(900+i,*) 'TITLE= "Temperature"'
49 ! print*,'2'
50 ! WRITE(900+i,*) 'VARIABLES= "X", "Y", "Z", "Temperature"'
51 ! print*,'3'
52 ! WRITE(900+i,*) 'ZONE N=',glb%NumNP,', E=',glb%NumElVol,', DATAPACKING=POINT, ZONETYPE=FEBRICK'
53 ! PRINT*,'ROCK OUT!!!! before meshcoor'
54 ! DO j = 1, glb%NumNP
55 ! write(900+i,*) glb%meshcoor(j,1),glb%meshcoor(j,2),glb%meshcoor(j,3),glb%Temperature(j)
56 ! ENDDO
57 ! WRITE(900+i,*) " "
58 ! DO j = 1, glb%NumElVol
59 ! write(900+i,*) (glb%ElConnVol(j,k),k=1,8)
60 ! ENDDO
61  WRITE(900+i,*) ' '
62  WRITE(900+i,*) currenttimestep
63  do j=1,glb%NumNP
64  WRITE(900+i,*) j,glb%Temperature(j)
65  end do
66  close(900+i)
67 
68 
69  END SUBROUTINE rockout_8node
j indices k indices k
Definition: Indexing.h:6
blockLoc i
Definition: read.cpp:79
subroutine rockout_8node(glb, CurrentTimeStep)
virtual std::ostream & print(std::ostream &os) const
j indices j
Definition: Indexing.h:6