Octopus
pes_out.F90
Go to the documentation of this file.
1!! Copyright (C) 2016 U. De Giovannini
2!!
3!! This program is free software; you can redistribute it and/or modify
4!! it under the terms of the GNU General Public License as published by
5!! the Free Software Foundation; either version 2, or (at your option)
6!! any later version.
7!!
8!! This program is distributed in the hope that it will be useful,
9!! but WITHOUT ANY WARRANTY; without even the implied warranty of
10!! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11!! GNU General Public License for more details.
12!!
13!! You should have received a copy of the GNU General Public License
14!! along with this program; if not, write to the Free Software
15!! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16!! 02110-1301, USA.
17!!
18
19#include "global.h"
20
21module pes_out_oct_m
24 use cube_oct_m
25 use debug_oct_m
26 use global_oct_m
27 use io_oct_m
29 use loct_oct_m
30 use math_oct_m
33#if defined(HAVE_NETCDF)
34 use netcdf
35#endif
37 use qshep_oct_m
38 use space_oct_m
39 use sort_oct_m
40 use string_oct_m
41 use unit_oct_m
43 use vtk_oct_m
44
45 implicit none
46
47 private
48
49 public :: &
53
54 integer, parameter :: &
55 INTEGRATE_NONE = -1, &
56 integrate_phi = 1, &
57 integrate_theta = 2, &
58 integrate_r = 3, &
59 integrate_kx = 4, &
60 integrate_ky = 5, &
61 integrate_kz = 6
62
63
64
65contains
66
67 ! ---------------------------------------------------------
68 subroutine pes_out_velocity_map(pesK, file, namespace, space, Lk, ll, how, spacing, coord_system, pmesh)
69 real(real64), intent(in) :: pesK(:,:,:)
70 character(len=*), intent(in) :: file
71 type(namespace_t), intent(in) :: namespace
72 class(space_t), intent(in) :: space
73 real(real64), contiguous, optional, intent(in) :: Lk(:,:)
74 integer, contiguous, intent(in) :: ll(:)
75
76 integer(int64), intent(in) :: how
77 real(real64), intent(in) :: spacing(3)
78 class(coordinate_system_t), intent(in) :: coord_system
79 real(real64), contiguous, optional, intent(in) :: pmesh(:,:,:,:)
80
81 integer :: ierr
82 character(len=512) :: filename
83 type(cube_t) :: cube
84 type(cube_function_t) :: cf
85 real(real64) :: dk(3)
86
87 push_sub(pes_out_velocity_map)
88
89 call cube_init(cube, ll, namespace, space, spacing, coord_system)
90 call dcube_function_alloc_rs(cube, cf, force_alloc = .true.)
91 assert(cf%batch_size == 1)
92 cf%dRS(:,:,:,1) = pesk
94 if (.not. present(pmesh)) then
95 ! Without pmesh the grid spacing has to come from Lk
96 assert(present(lk))
97 dk(:) = m_zero
98 dk(1:space%dim) = abs(lk(2, 1:space%dim) - lk(1,1:space%dim))
99 end if
100
101#if defined(HAVE_NETCDF)
102
103 if (bitand(how, option__outputformat__netcdf) /= 0) then
104 filename = trim(file)//".ncdf"
105 write(message(1), '(a)') 'Writing netcdf format file: '
106 call messages_info(1, namespace=namespace)
107
108 call dout_cf_netcdf(filename, ierr, cf, cube, space, dk(:), .false., unit_one/units_out%length, namespace)
109
110 end if
111
112#endif
113
114 if (bitand(how, option__outputformat__vtk) /= 0) then
115 filename = trim(file)//".vtk"
116 write(message(1), '(a)') 'Writing vtk format file: '
117 call messages_info(1, namespace=namespace)
118
119 if (present(pmesh)) then
120 call dvtk_out_cf_structured(filename, namespace, 'PES_vel_map', ierr, cf, cube,&
121 unit_one/units_out%length, pmesh, ascii = .false.)
122 else
123 call dvtk_out_cf(filename, namespace, 'PES_vel_map', ierr, cf, cube, dk(:),&
124 unit_one/units_out%length)
125 end if
126 end if
127
128 call cube_end(cube)
129 call dcube_function_free_rs(cube, cf)
130
131 pop_sub(pes_out_velocity_map)
132
133 end subroutine pes_out_velocity_map
134
135
136 ! ---------------------------------------------------------
137 subroutine pes_out_arpes_cut(namespace, arpes, file, dim, ll, pmesh, Ekin)
138 type(namespace_t), intent(in) :: namespace
139 real(real64), intent(in) :: arpes(:,:,:)
140 character(len=*), intent(in) :: file
141 integer, intent(in) :: dim
142 integer, contiguous, intent(in) :: ll(:)
143 real(real64), contiguous, intent(in) :: pmesh(:,:,:,:)
144 real(real64), contiguous, intent(in) :: ekin(:,:,:)
145
146 integer :: iunit, ip, ie
147 real(real64) :: dp, length, pp(1:2), pdiff(1:2)
148
149 push_sub(pes_out_arpes_cut)
150
151 iunit = io_open(file, namespace, action='write')
152 write(iunit, '(a)') '##################################################'
153 write(iunit, '(a1,a18,2x,a18,2x,a18,2x,a18,2x, a18,2x,a18)') '#', &
154 str_center("Ppath", 18), &
155 str_center("px", 18), str_center("py", 18), &
156 str_center("E", 18), str_center("P[Ppath,E]", 18)
157
158 write(iunit, '(a1,a18,2x,a18,2x,a18,2x,a18,2x, a18,2x,a18)') '#', &
159 str_center('[hbar/'//trim(units_abbrev(units_out%length)) // ']', 18), &
160 str_center('[hbar/'//trim(units_abbrev(units_out%length)) // ']', 18), &
161 str_center('[hbar/'//trim(units_abbrev(units_out%length)) // ']', 18), &
162 str_center('['//trim(units_abbrev(units_out%energy)) // ']', 18), &
163 str_center('[1/' //trim(units_abbrev(units_out%energy))//']', 18)
164 write(iunit, '(a)') '##################################################'
165
166
167 length = m_zero
168 pdiff(:) = m_zero
169
170 do ip = 1, ll(1)
171 pp(1:2) = pmesh(ip,1,1,1:2)
172 if (ip > 1) pdiff = pp(1:2) - pmesh(ip-1,1,1,1:2)
173 dp = norm2(pdiff(1:2))
174 length = length + dp
175
176 select case (dim)
177 case (2)
178 do ie = 1, ll(2)
179 write(iunit, '(es19.12,2x,es19.12,2x,es19.12,2x,es19.12,2x,es19.12,2x,es19.12)') &
180 units_from_atomic(unit_one/units_out%length, length),&
181 units_from_atomic(unit_one/units_out%length, pp(1)), &
182 units_from_atomic(unit_one/units_out%length, pp(2)), &
183 units_from_atomic(units_out%energy, ekin(ip,ie,1)), &
184 arpes(ip,ie,1)
185 end do
186
187 case (3)
188 do ie = 1, ll(3)
189 write(iunit, '(es19.12,2x,es19.12,2x,es19.12,2x,es19.12,2x,es19.12,2x,es19.12)') &
190 units_from_atomic(unit_one/units_out%length, length),&
191 units_from_atomic(unit_one/units_out%length, pp(1)), &
192 units_from_atomic(unit_one/units_out%length, pp(2)), &
193 units_from_atomic(units_out%energy, ekin(ip,1,ie)), &
194 arpes(ip,1,ie)
195 end do
197 end select
198
199
200 write(iunit, *)
201
202
203 end do
204
205
206 call io_close(iunit)
207
208 pop_sub(pes_out_arpes_cut)
209 end subroutine pes_out_arpes_cut
210
211
212 ! ---------------------------------------------------------
213 subroutine pes_out_velocity_map_cut(namespace, pesK, file, ll, dim, pol, dir, integrate, pos, Lk, pmesh)
214 type(namespace_t), intent(in) :: namespace
215 real(real64), intent(in) :: pesk(:,:,:)
216 character(len=*), intent(in) :: file
217 integer, contiguous, intent(in) :: ll(:)
218 integer, intent(in) :: dim
219 real(real64), intent(in) :: pol(3)
220 integer, intent(in) :: dir
221 integer, intent(in) :: integrate
222 integer, optional, intent(in) :: pos(3)
223 real(real64), contiguous, optional, intent(in) :: lk(:,:)
224 real(real64), contiguous, optional, intent(in) :: pmesh(:,:,:,:)
225
226 integer :: ii, ix, iy, iunit,ldir(2), icut(3)
227 real(real64) :: kk(3),temp
228 integer, allocatable :: idx(:,:)
229 real(real64), allocatable :: lk_(:,:)
230 real(real64) :: rotation(1:dim,1:dim)
231 logical :: aligned_axis
232 ! integration
233 real(real64) :: k, kkk(3), theta, phi, dphi, dk(3)
234 integer :: iph, nphi
235 ! progress
236 integer :: idone, ntodo
237
238 real(real64), allocatable :: cube_f(:)
239 type(qshep_t) :: interp
240
242
243 iunit = io_open(file, namespace, action='write')
244
245
246
247 assert(size(pesk, 1) == ll(1))
248
249 if (.not. present(pmesh)) then
250 assert(present(lk))
251
252 safe_allocate(idx(1:maxval(ll(:)), 1:3))
253 safe_allocate(lk_(1:maxval(ll(:)), 1:3))
254
255 dk(:) = m_zero
256 dk(1:dim) = abs(lk(2,1:dim)-lk(1,1:dim))
257
258 do ii = 1, 3
259 lk_(:,ii) = lk(:,ii)
260 call sort(lk_(1:ll(ii), ii), idx(1:ll(ii), ii)) !We need to sort the k-vectors in order to dump in gnuplot format
261 end do
262 end if
263
264 aligned_axis = sum((pol-(/0 ,0 ,1/))**2) <= m_epsilon .or. &
265 sum((pol-(/0 ,1 ,0/))**2) <= m_epsilon .or. &
266 sum((pol-(/1 ,0 ,0/))**2) <= m_epsilon
267
268 if (present(pos)) then
269 icut(1:3) = pos(1:3)
270 else
271 icut(1:3) = ll(1:3)/2 + 1
272 end if
273
274 if (aligned_axis .and. integrate == integrate_none) then !no need to rotate and interpolate
275
276 select case (dir)
277 case (1)
278 ldir(:) =(/2,3/)
279 case (2)
280 ldir(:) =(/1,3/)
281 case (3)
282 ldir(:) =(/1,2/)
283
284 end select
285
286
287 if (present(pmesh)) then
288 do ix = 1, ll(ldir(1))
289 do iy = 1, ll(ldir(2))
290
291 select case (dir)
292 case (1)
293 temp = pesk(icut(dir), ix, iy)
294 kk(1) = pmesh(icut(dir), ix, iy, ldir(1))
295 kk(2) = pmesh(icut(dir), ix, iy, ldir(2))
296 case (2)
297 temp = pesk(ix, icut(dir), iy)
298 kk(1) = pmesh(ix, icut(dir), iy, ldir(1))
299 kk(2) = pmesh(ix, icut(dir), iy, ldir(2))
300 case (3)
301 temp = pesk(ix, iy, icut(dir))
302 kk(1) = pmesh(ix, iy, icut(dir), ldir(1))
303 kk(2) = pmesh(ix, iy, icut(dir), ldir(2))
304 end select
305
306 write(iunit, '(es19.12,2x,es19.12,2x,es19.12)') &
307 units_from_atomic(sqrt(units_out%energy), kk(1)),&
308 units_from_atomic(sqrt(units_out%energy), kk(2)),&
309 temp
310 end do
311 write(iunit, *)
312 end do
313
314 else
315 do ix = 1, ll(ldir(1))
316 kk(1) = lk_(ix, ldir(1))
317 do iy = 1, ll(ldir(2))
318 kk(2) = lk_(iy, ldir(2))
319
320 select case (dir)
321 case (1)
322 temp = pesk(idx(icut(dir), 1), idx(ix, 2), idx(iy, 3))
323 case (2)
324 temp = pesk(idx(ix, 1), idx(icut(dir), 2), idx(iy, 3))
325 case (3)
326 temp = pesk(idx(ix, 1), idx(iy, 2), idx(icut(dir), 3))
327 end select
328
329 write(iunit, '(es19.12,2x,es19.12,2x,es19.12)') &
330 units_from_atomic(sqrt(units_out%energy), kk(1)),&
331 units_from_atomic(sqrt(units_out%energy), kk(2)),&
332 temp
333 end do
334 write(iunit, *)
335 end do
336 end if
337
338 else
339 ! We set the z-axis along the pol vector
340 call generate_rotation_matrix(rotation, (/ m_zero, m_zero, m_one /), pol)
341
342 if (debug%info) then
343 print *,"Rotate z-axis over the zenith axis"
344 print *,rotation(1,:)
345 print *,rotation(2,:)
346 print *,rotation(3,:)
347 end if
348
349 call pes_out_interpolator_init(namespace, pesk, lk, ll, dim, cube_f, interp, pmesh)
350
351 ntodo = product(ll(1:2))
352 idone = 0
353 call loct_progress_bar(-1, ntodo)
354
355 do ix = 1, ll(1)
356 do iy = 1, ll(2)
357
358 !cut
359 select case (dir)
360 case (1)
361 kk(1) = m_zero
362 if (present(pmesh)) then
363 kk(2) = pmesh(ix, 1, 1, 1)
364 kk(3) = pmesh(1, iy, 1, 2)
365 else
366 kk(2) = lk_(ix, 1)
367 kk(3) = lk_(iy, 2)
368 end if
369 case (2)
370 kk(2) = m_zero
371 if (present(pmesh)) then
372 kk(1) = pmesh(ix, 1, 1, 1)
373 kk(3) = pmesh(1, iy, 1, 2)
374 else
375 kk(1) = lk_(ix, 1)
376 kk(3) = lk_(iy, 2)
377 end if
378
379 case (3)
380 kk(3) = m_zero
381 if (present(pmesh)) then
382 kk(1) = pmesh(ix, 1, 1, 1)
383 kk(2) = pmesh(1, iy, 1, 2)
384 else
385 kk(1) = lk_(ix, 1)
386 kk(2) = lk_(iy, 2)
387 end if
388
389 end select
390
391 temp = qshep_interpolate(interp, cube_f, matmul(rotation,kk(1:3)))
392
393 select case (integrate)
394 case (integrate_phi)
395 temp = m_zero
396 k = norm2(kk(1:3))
397
398 nphi = 360
399 dphi = m_two * m_pi / nphi
400
401 do iph = 0, nphi
402 phi = iph * dphi
403 theta = atan2(norm2(kk(1:2)), kk(3))
404
405 kkk(1) = k *sin(theta) * cos(phi)
406 kkk(2) = k *sin(theta) * sin(phi)
407 kkk(3) = k *cos(theta)
408
409 temp = temp + &
410 abs(qshep_interpolate(interp, cube_f, matmul(rotation,kkk(1:3))))
411 end do
412 temp = temp * dphi
413
414 case (integrate_kx)
415 temp = m_zero
416 do ii =1, ll(1)
417 kkk(:) = kk(:) + (/lk(ii,1), m_zero, m_zero/)
418 temp = temp + &
419 abs(qshep_interpolate(interp, cube_f, matmul(rotation,kkk(1:3))))
420 end do
421 temp = temp * dk(1)
422
423 case (integrate_ky)
424 temp = m_zero
425 do ii =1, ll(2)
426 kkk(:) = kk(:) + (/m_zero, lk(ii,2), m_zero/)
427 temp = temp + &
428 abs(qshep_interpolate(interp, cube_f, matmul(rotation,kkk(1:3))))
429 end do
430 temp = temp * dk(2)
431
432 case (integrate_kz)
433 temp = m_zero
434 do ii =1, ll(3)
435 kkk(:) = kk(:) + (/m_zero, m_zero, lk(ii,3)/)
436 temp = temp + &
437 abs(qshep_interpolate(interp, cube_f, matmul(rotation,kkk(1:3))))
438 end do
439 temp = temp * dk(3)
440
441 end select
442
443 write(iunit, '(es19.12,2x,es19.12,2x,es19.12)') &
444 units_from_atomic(sqrt(units_out%energy), kk(1)),&
445 units_from_atomic(sqrt(units_out%energy), kk( 2)),&
446 temp
447
448
449 idone = idone +1
450 call loct_progress_bar(idone, ntodo)
451
452 end do
453 write(iunit, *)
454 end do
455
456 write(stdout, '(1x)')
457
458
459 end if
460
461 call io_close(iunit)
462
463 call pes_out_interpolator_end(cube_f, interp)
464
465 safe_deallocate_a(idx)
466 safe_deallocate_a(lk_)
467
469 end subroutine pes_out_velocity_map_cut
470
471 ! --------------------------------------------------------
472 !
476 !
477 ! ---------------------------------------------------------
478 subroutine pes_out_interpolator_init(namespace, pesK, Lk, ll, dim, cube_f, interp, pmesh)
479 type(namespace_t), intent(in) :: namespace
480 real(real64), intent(in) :: pesk(:,:,:)
481 real(real64), contiguous, intent(in) :: lk(:,:)
482 integer, contiguous, intent(in) :: ll(:)
483 integer, intent(in) :: dim
484 real(real64), allocatable, intent(out) :: cube_f(:)
485 type(qshep_t), intent(out) :: interp
486 real(real64), contiguous, optional, intent(in) :: pmesh(:,:,:,:)
487
488 integer :: np, ii, ix, iy, iz
489 real(real64) :: kk(3)
490 real(real64), allocatable :: kx(:),ky(:),kz(:)
491
493
494
495 call messages_write("Initializing Qshep interpolator. Be patient it may take a while... ")
496 call messages_info(namespace=namespace)
497
498 np = ll(1)*ll(2)*ll(3)
499
500 !check dim
501 if (dim < 2 .or. dim > 3) then
502 message(1) = "This interpolator works only for 2 <= dim <= 3."
503 call messages_fatal(1, namespace=namespace)
504 end if
505
506 safe_allocate(cube_f(1:np))
507
508 safe_allocate(kx(1:np))
509 safe_allocate(ky(1:np))
510 safe_allocate(kz(1:np))
511
512 cube_f = m_zero
513 kx = m_zero
514 ky = m_zero
515 kz = m_zero
516
517
518 ii=1
519 if (present(pmesh)) then
520 do ix = 1, ll(1)
521 do iy = 1, ll(2)
522 do iz = 1, ll(3)
523
524 cube_f(ii) = pesk(ix,iy,iz)
525
526 kx(ii) = pmesh(ix,iy,iz,1)
527 ky(ii) = pmesh(ix,iy,iz,2)
528 kz(ii) = pmesh(ix,iy,iz,3)
529
530 ii = ii +1
531 end do
532 end do
533 end do
534
535 else
536
537 do ix = 1, ll(1)
538 kk(1) = lk(ix, 1)
539 do iy = 1, ll(2)
540 kk(2) = lk(iy, 2)
541 do iz = 1, ll(3)
542 kk(3) = lk(iz, 3)
543
544 cube_f(ii) = pesk(ix,iy,iz)
545
546 kx(ii) = kk(1)
547 ky(ii) = kk(2)
548 kz(ii) = kk(3)
549
550 ii = ii +1
551 end do
552 end do
553 end do
554 end if
555
556
557 select case (dim)
558 case (2)
559 call qshep_init(interp, i4_to_i8(np), cube_f, kx, ky)
560 case (3)
561 call qshep_init(interp, i4_to_i8(np), cube_f, kx, ky, kz)
562 end select
563
564 safe_deallocate_a(kx)
565 safe_deallocate_a(ky)
566 safe_deallocate_a(kz)
567
568 call messages_write("done")
569 call messages_new_line()
570 call messages_info(namespace=namespace)
571
572
574 end subroutine pes_out_interpolator_init
575
576 ! ---------------------------------------------------------
578 ! ---------------------------------------------------------
579 subroutine pes_out_interpolator_end(cube_f, interp)
580 real(real64), allocatable, intent(inout) :: cube_f(:)
581 type(qshep_t), intent(inout) :: interp
582
584
585 call qshep_end(interp)
586
587 safe_deallocate_a(cube_f)
588
590 end subroutine pes_out_interpolator_end
591
592end module pes_out_oct_m
593
594
595!! Local Variables:
596!! mode: f90
597!! coding: utf-8
598!! End:
This is the common interface to a sorting routine. It performs the shell algorithm,...
Definition: sort.F90:133
double sin(double __x) __attribute__((__nothrow__
double cos(double __x) __attribute__((__nothrow__
double atan2(double __y, double __x) __attribute__((__nothrow__
subroutine, public dcube_function_alloc_rs(cube, cf, in_device, force_alloc)
Allocates locally the real space grid, if PFFT library is not used. Otherwise, it assigns the PFFT re...
subroutine, public dcube_function_free_rs(cube, cf)
Deallocates the real space grid.
subroutine, public cube_end(cube)
Definition: cube.F90:383
subroutine, public cube_init(cube, nn, namespace, space, spacing, coord_system, fft_type, fft_library, dont_optimize, nn_out, mpi_grp, need_partition, tp_enlarge, blocksize, batch_size, nthreads, single)
Definition: cube.F90:185
type(debug_t), save, public debug
Definition: debug.F90:133
real(real64), parameter, public m_two
Definition: global.F90:175
real(real64), parameter, public m_zero
Definition: global.F90:173
real(real64), parameter, public m_pi
some mathematical constants
Definition: global.F90:171
real(real64), parameter, public m_epsilon
Definition: global.F90:189
real(real64), parameter, public m_one
Definition: global.F90:174
Definition: io.F90:93
subroutine, public io_close(iunit, grp)
Definition: io.F90:444
integer function, public io_open(file, namespace, action, status, form, position, die, recl, grp)
Definition: io.F90:379
System information (time, memory, sysname)
Definition: loct.F90:94
subroutine, public loct_progress_bar(a, maxcount)
A wrapper around the progress bar, such that it can be silenced without needing to dress the call wit...
Definition: loct.F90:253
This module is intended to contain "only mathematical" functions and procedures.
Definition: math.F90:94
subroutine, public generate_rotation_matrix(R, ff, tt)
Generates a rotation matrix R to rotate a vector f to t.
Definition: math.F90:1097
subroutine, public messages_new_line()
Definition: messages.F90:1069
character(len=256), dimension(max_lines), public message
to be output by fatal, warning
Definition: messages.F90:138
subroutine, public messages_fatal(no_lines, only_root_writes, namespace)
Definition: messages.F90:386
subroutine, public messages_info(no_lines, iunit, debug_only, stress, all_nodes, namespace)
Definition: messages.F90:570
subroutine, public pes_out_velocity_map_cut(namespace, pesK, file, ll, dim, pol, dir, integrate, pos, Lk, pmesh)
Definition: pes_out.F90:273
subroutine pes_out_interpolator_init(namespace, pesK, Lk, ll, dim, cube_f, interp, pmesh)
Qshep interpolation helper function initialization. Generates the linearized version of pesK (cube_f)...
Definition: pes_out.F90:538
integer, parameter integrate_ky
Definition: pes_out.F90:126
subroutine, public pes_out_velocity_map(pesK, file, namespace, space, Lk, ll, how, spacing, coord_system, pmesh)
Definition: pes_out.F90:141
integer, parameter integrate_r
Definition: pes_out.F90:126
integer, parameter integrate_phi
Definition: pes_out.F90:126
integer, parameter integrate_theta
Definition: pes_out.F90:126
subroutine pes_out_interpolator_end(cube_f, interp)
Destroy the interpolation objects.
Definition: pes_out.F90:639
integer, parameter integrate_kx
Definition: pes_out.F90:126
subroutine, public pes_out_arpes_cut(namespace, arpes, file, dim, ll, pmesh, Ekin)
Definition: pes_out.F90:197
integer, parameter integrate_kz
Definition: pes_out.F90:126
/* To use the profiling module, call profiling_in and profiling_out with the label of the region as a...
Definition: profiling.F90:122
subroutine, public qshep_end(interp)
Definition: qshep.F90:419
This module is intended to contain "only mathematical" functions and procedures.
Definition: sort.F90:96
character(len=80) function, public str_center(s_in, l_in)
puts space around string, so that it is centered
Definition: string.F90:153
brief This module defines the class unit_t which is used by the unit_systems_oct_m module.
Definition: unit.F90:111
character(len=20) pure function, public units_abbrev(this)
Definition: unit.F90:202
This module defines the unit system, used for input and output.
type(unit_system_t), public units_out
type(unit_t), public unit_one
some special units required for particular quantities
subroutine, public dvtk_out_cf_structured(filename, namespace, fieldname, ierr, cf_in, cube, unit, points, ascii)
Writes a mesh_function in VTK legacy format for structured grid data (i.e. curvilinear coordinates)....
Definition: vtk.F90:343
subroutine, public dvtk_out_cf(filename, namespace, fieldname, ierr, cf_in, cube, spacing, unit)
Writes a cube_function in VTK legacy format see http://www.vtk.org/VTK/img/file-formats....
Definition: vtk.F90:194
int true(void)