!!matvec with matmul
!#define __MATVEC_N(y,Mat,Vec) y=MATMUL(Mat,Vec)
!#define __MATVEC_T(y,Mat,Vec) y=MATMUL(Vec,Mat)
!#define __PMATVEC_N(fy,y,Mat,Vec) y=fyy+MATMUL(Mat,Vec)
!#define __PMATVEC_T(fy,y,Mat,Vec) y=fy y+MATMUL(Vec,Mat)
!#define __AMATVEC_N(y,fMat,Mat,Vec) y=fMatMATMUL(Mat,Vec)
!#define __AMATVEC_T(y,fMat,Mat,Vec) y=fMat MATMUL(Vec,Mat)
!#define __PAMATVEC_N(fy,y,fMat,Mat,Vec) y=fyy+fMat MATMUL(Mat,Vec)
!#define __PAMATVEC_T(fy,y,fMat,Mat,Vec) y=fyy+fMat MATMUL(Vec,Mat)
!!#define __GENERICMATVEC(NT,fy,y,fMat,Mat,Vec) CALL DGEMV(NT,SIZE(Mat,1),SIZE(Mat,2),fMat,Mat,SIZE(Mat,1),Vec,1,fy,y,1)
!!matmat with matmul
!#define __MATMAT_NN(Y,A,B) Y=MATMUL(A,B)
!#define __MATMAT_TN(Y,A,B) Y=MATMUL(TRANSPOSE(A),B)
!#define __MATMAT_NT(Y,A,B) Y=MATMUL(A,TRANSPOSE(B))
!#define __MATMAT_TT(Y,A,B) Y=TRANSPOSE(MATMUL(B,A))
!#define __PMATMAT_NN(fy,Y,A,B) Y=fyY+MATMUL(A,B)
!#define __PMATMAT_TN(fy,Y,A,B) Y=fy Y+MATMUL(TRANSPOSE(A),B)
!#define __PMATMAT_NT(fy,Y,A,B) Y=fyY+MATMUL(A,TRANSPOSE(B))
!#define __PMATMAT_TT(fy,Y,A,B) Y=fy Y+TRANSPOSE(MATMUL(B,A))
!#define __AMATMAT_NN(Y,fa,A,B) Y=faMATMUL(A,B)
!#define __AMATMAT_TN(Y,fa,A,B) Y=fa MATMUL(TRANSPOSE(A),B)
!#define __AMATMAT_NT(Y,fa,A,B) Y=faMATMUL(A,TRANSPOSE(B))
!#define __AMATMAT_TT(Y,fa,A,B) Y=fa TRANSPOSE(MATMUL(B,A))
!#define __PAMATMAT_NN(fy,Y,fa,A,B) Y=fyY+fa MATMUL(A,B)
!#define __PAMATMAT_TN(fy,Y,fa,A,B) Y=fyY+fa MATMUL(TRANSPOSE(A),B)
!#define __PAMATMAT_NT(fy,Y,fa,A,B) Y=fyY+fa MATMUL(A,TRANSPOSE(B))
!#define __PAMATMAT_TT(fy,Y,fa,A,B) Y=fyY+fa TRANSPOSE(MATMUL(B,A))
! GEMM does in general Y = fa A^?B^? + fy Y
! with structure: (m x n) = (m x k) (k x n)
! Y=A B : DGEMM('N','N',m,n,k,fa,Amat ,m, Bmat,k, fy,Y,m)
! Y=A^TB : DGEMM('T','N',m,n,k,fa,Amat ,k, Bmat,k, fy,Y,m)
! Y=A B^T : DGEMM('N','T',m,n,k,fa,Amat ,m, Bmat,n, fy,Y,m)
! Y=A^T*B^T : DGEMM('T','T',m,n,k,fa,Amat ,k, Bmat,n, fy,Y,m)
!#define __GENERICMATMAT_NN(fy,Y,fa,A,B) CALL DGEMM('N','N',SIZE(A,1),SIZE(B,2),SIZE(B,1),fa,A,SIZE(A,1),B,SIZE(B,1),fy,Y,SIZE(A,1))
!#define __GENERICMATMAT_TN(fy,Y,fa,A,B) CALL DGEMM('T','N',SIZE(A,2),SIZE(B,2),SIZE(B,1),fa,A,SIZE(B,1),B,SIZE(B,1),fy,Y,SIZE(A,2))
!#define __GENERICMATMAT_NT(fy,Y,fa,A,B) CALL DGEMM('N','T',SIZE(A,1),SIZE(B,1),SIZE(B,2),fa,A,SIZE(A,1),B,SIZE(B,1),fy,Y,SIZE(A,1))
!#define __GENERICMATMAT_TT(fy,Y,fa,A,B) CALL DGEMM('T','T',SIZE(A,2),SIZE(B,1),SIZE(B,2),fa,A,SIZE(B,2),B,SIZE(B,1),fy,Y,SIZE(A,2))
! SIMPLE INTERFACE FOR DGEMM, specifying nrows/ncols of mat A and nrows/ncols of mat B (for any transpose!)
! GEMM does in general Y = fa A^?B^? + fy Y
! with structure: (m x n) = (m x k) (k x n)
! Y=A B : DGEMM('N','N',m,n,k,fa,Amat ,m, Bmat,k, fy,Y,m)
! Y=A^TB : DGEMM('T','N',m,n,k,fa,Amat ,k, Bmat,k, fy,Y,m)
! Y=A B^T : DGEMM('N','T',m,n,k,fa,Amat ,m, Bmat,n, fy,Y,m)
! Y=A^T*B^T : DGEMM('T','T',m,n,k,fa,Amat ,k, Bmat,n, fy,Y,m)
sourcefile~~rungvec.f90~~EfferentGraph
sourcefile~rungvec.f90
rungvec.F90
sourcefile~analyze.f90
analyze.F90
sourcefile~rungvec.f90->sourcefile~analyze.f90
sourcefile~globals.f90
globals.F90
sourcefile~rungvec.f90->sourcefile~globals.f90
sourcefile~mhd3d.f90
mhd3d.F90
sourcefile~rungvec.f90->sourcefile~mhd3d.f90
sourcefile~output.f90
output.F90
sourcefile~rungvec.f90->sourcefile~output.f90
sourcefile~readintools.f90
readintools.F90
sourcefile~rungvec.f90->sourcefile~readintools.f90
sourcefile~restart.f90
restart.F90
sourcefile~rungvec.f90->sourcefile~restart.f90
sourcefile~analyze.f90->sourcefile~globals.f90
sourcefile~analyze.f90->sourcefile~readintools.f90
sourcefile~analyze_vars.f90
analyze_vars.F90
sourcefile~analyze.f90->sourcefile~analyze_vars.f90
sourcefile~cubic_spline.f90
cubic_spline.F90
sourcefile~analyze.f90->sourcefile~cubic_spline.f90
sourcefile~mhd3d_vars.f90
mhd3d_vars.F90
sourcefile~analyze.f90->sourcefile~mhd3d_vars.f90
sourcefile~mod_mpi.f90
mod_mpi.F90
sourcefile~analyze.f90->sourcefile~mod_mpi.f90
sourcefile~output_csv.f90
output_csv.F90
sourcefile~analyze.f90->sourcefile~output_csv.f90
sourcefile~output_vars.f90
output_vars.F90
sourcefile~analyze.f90->sourcefile~output_vars.f90
sourcefile~output_vtk.f90
output_vtk.F90
sourcefile~analyze.f90->sourcefile~output_vtk.f90
sourcefile~sol_var_mhd3d.f90
sol_var_mhd3d.F90
sourcefile~analyze.f90->sourcefile~sol_var_mhd3d.f90
sourcefile~vmec.f90
vmec.F90
sourcefile~analyze.f90->sourcefile~vmec.f90
sourcefile~vmec_readin.f90
vmec_readin.F90
sourcefile~analyze.f90->sourcefile~vmec_readin.f90
sourcefile~vmec_vars.f90
vmec_vars.F90
sourcefile~analyze.f90->sourcefile~vmec_vars.f90
sourcefile~write_modes.f90
write_modes.F90
sourcefile~analyze.f90->sourcefile~write_modes.f90
sourcefile~mhd3d.f90->sourcefile~analyze.f90
sourcefile~mhd3d.f90->sourcefile~globals.f90
sourcefile~mhd3d.f90->sourcefile~readintools.f90
sourcefile~mhd3d.f90->sourcefile~restart.f90
sourcefile~base.f90
base.F90
sourcefile~mhd3d.f90->sourcefile~base.f90
sourcefile~boundaryfromfile.f90
boundaryFromFile.F90
sourcefile~mhd3d.f90->sourcefile~boundaryfromfile.f90
sourcefile~c_rprofile.f90
c_rprofile.F90
sourcefile~mhd3d.f90->sourcefile~c_rprofile.f90
sourcefile~mhd3d.f90->sourcefile~cubic_spline.f90
sourcefile~hmap.f90
hmap.F90
sourcefile~mhd3d.f90->sourcefile~hmap.f90
sourcefile~lambda_solve.f90
lambda_solve.F90
sourcefile~mhd3d.f90->sourcefile~lambda_solve.f90
sourcefile~mhd3d_evalfunc.f90
mhd3d_evalfunc.F90
sourcefile~mhd3d.f90->sourcefile~mhd3d_evalfunc.f90
sourcefile~mhd3d_minimize.f90
mhd3d_minimize.F90
sourcefile~mhd3d.f90->sourcefile~mhd3d_minimize.f90
sourcefile~mhd3d.f90->sourcefile~mhd3d_vars.f90
sourcefile~mhd3d.f90->sourcefile~mod_mpi.f90
sourcefile~restart_vars.f90
restart_vars.F90
sourcefile~mhd3d.f90->sourcefile~restart_vars.f90
sourcefile~rprofile_bspline.f90
rprofile_bspline.F90
sourcefile~mhd3d.f90->sourcefile~rprofile_bspline.f90
sourcefile~rprofile_polynomial.f90
rprofile_polynomial.F90
sourcefile~mhd3d.f90->sourcefile~rprofile_polynomial.f90
sourcefile~sgrid.f90
sgrid.F90
sourcefile~mhd3d.f90->sourcefile~sgrid.f90
sourcefile~mhd3d.f90->sourcefile~sol_var_mhd3d.f90
sourcefile~mhd3d.f90->sourcefile~vmec.f90
sourcefile~mhd3d.f90->sourcefile~vmec_readin.f90
sourcefile~mhd3d.f90->sourcefile~vmec_vars.f90
sourcefile~output.f90->sourcefile~globals.f90
sourcefile~output.f90->sourcefile~readintools.f90
sourcefile~output.f90->sourcefile~output_vars.f90
sourcefile~readintools.f90->sourcefile~globals.f90
sourcefile~readintools.f90->sourcefile~mod_mpi.f90
sourcefile~restart.f90->sourcefile~globals.f90
sourcefile~restart.f90->sourcefile~base.f90
sourcefile~restart.f90->sourcefile~mhd3d_evalfunc.f90
sourcefile~restart.f90->sourcefile~mhd3d_vars.f90
sourcefile~restart.f90->sourcefile~mod_mpi.f90
sourcefile~restart.f90->sourcefile~output_vars.f90
sourcefile~readstate.f90
readstate.F90
sourcefile~restart.f90->sourcefile~readstate.f90
sourcefile~readstate_vars.f90
readstate_vars.F90
sourcefile~restart.f90->sourcefile~readstate_vars.f90
sourcefile~restart.f90->sourcefile~restart_vars.f90
sourcefile~restart.f90->sourcefile~sgrid.f90
sourcefile~restart.f90->sourcefile~sol_var_mhd3d.f90
sourcefile~analyze_vars.f90->sourcefile~globals.f90
sourcefile~base.f90->sourcefile~globals.f90
sourcefile~base.f90->sourcefile~sgrid.f90
sourcefile~fbase.f90
fbase.F90
sourcefile~base.f90->sourcefile~fbase.f90
sourcefile~sbase.f90
sbase.F90
sourcefile~base.f90->sourcefile~sbase.f90
sourcefile~boundaryfromfile.f90->sourcefile~globals.f90
sourcefile~boundaryfromfile.f90->sourcefile~fbase.f90
sourcefile~io_netcdf.f90
io_netcdf.F90
sourcefile~boundaryfromfile.f90->sourcefile~io_netcdf.f90
sourcefile~c_rprofile.f90->sourcefile~globals.f90
sourcefile~cubic_spline.f90->sourcefile~globals.f90
sourcefile~sll_m_bsplines.f90
sll_m_bsplines.F90
sourcefile~cubic_spline.f90->sourcefile~sll_m_bsplines.f90
sourcefile~sll_m_spline_matrix.f90
sll_m_spline_matrix.F90
sourcefile~cubic_spline.f90->sourcefile~sll_m_spline_matrix.f90
sourcefile~hmap.f90->sourcefile~globals.f90
sourcefile~c_hmap.f90
c_hmap.F90
sourcefile~hmap.f90->sourcefile~c_hmap.f90
sourcefile~hmap_axisnb.f90
hmap_axisNB.F90
sourcefile~hmap.f90->sourcefile~hmap_axisnb.f90
sourcefile~hmap_cyl.f90
hmap_cyl.F90
sourcefile~hmap.f90->sourcefile~hmap_cyl.f90
sourcefile~hmap_frenet.f90
hmap_frenet.F90
sourcefile~hmap.f90->sourcefile~hmap_frenet.f90
sourcefile~hmap_knot.f90
hmap_knot.F90
sourcefile~hmap.f90->sourcefile~hmap_knot.f90
sourcefile~hmap_rz.f90
hmap_RZ.F90
sourcefile~hmap.f90->sourcefile~hmap_rz.f90
sourcefile~lambda_solve.f90->sourcefile~globals.f90
sourcefile~lambda_solve.f90->sourcefile~base.f90
sourcefile~lambda_solve.f90->sourcefile~hmap.f90
sourcefile~lambda_solve.f90->sourcefile~fbase.f90
sourcefile~linalg.f90
linalg.F90
sourcefile~lambda_solve.f90->sourcefile~linalg.f90
sourcefile~mhd3d_evalfunc.f90->sourcefile~globals.f90
sourcefile~mhd3d_evalfunc.f90->sourcefile~base.f90
sourcefile~mhd3d_evalfunc.f90->sourcefile~mhd3d_vars.f90
sourcefile~mhd3d_evalfunc.f90->sourcefile~mod_mpi.f90
sourcefile~mhd3d_evalfunc.f90->sourcefile~sol_var_mhd3d.f90
sourcefile~mhd3d_evalfunc.f90->sourcefile~sll_m_spline_matrix.f90
sourcefile~sll_m_spline_matrix_banded.f90
sll_m_spline_matrix_banded.F90
sourcefile~mhd3d_evalfunc.f90->sourcefile~sll_m_spline_matrix_banded.f90
sourcefile~mhd3d_minimize.f90->sourcefile~analyze.f90
sourcefile~mhd3d_minimize.f90->sourcefile~globals.f90
sourcefile~mhd3d_minimize.f90->sourcefile~restart.f90
sourcefile~mhd3d_minimize.f90->sourcefile~mhd3d_evalfunc.f90
sourcefile~mhd3d_minimize.f90->sourcefile~output_vars.f90
sourcefile~mhd3d_minimize.f90->sourcefile~sol_var_mhd3d.f90
sourcefile~mhd3d_vars.f90->sourcefile~globals.f90
sourcefile~mhd3d_vars.f90->sourcefile~base.f90
sourcefile~mhd3d_vars.f90->sourcefile~boundaryfromfile.f90
sourcefile~mhd3d_vars.f90->sourcefile~c_rprofile.f90
sourcefile~mhd3d_vars.f90->sourcefile~hmap.f90
sourcefile~mhd3d_vars.f90->sourcefile~sgrid.f90
sourcefile~mhd3d_vars.f90->sourcefile~sol_var_mhd3d.f90
sourcefile~mod_mpi.f90->sourcefile~globals.f90
sourcefile~output_csv.f90->sourcefile~globals.f90
sourcefile~output_vars.f90->sourcefile~globals.f90
sourcefile~output_vtk.f90->sourcefile~globals.f90
sourcefile~readstate.f90->sourcefile~globals.f90
sourcefile~readstate.f90->sourcefile~base.f90
sourcefile~readstate.f90->sourcefile~hmap.f90
sourcefile~readstate.f90->sourcefile~readstate_vars.f90
sourcefile~readstate.f90->sourcefile~sgrid.f90
sourcefile~readstate.f90->sourcefile~fbase.f90
sourcefile~readstate.f90->sourcefile~sbase.f90
sourcefile~readstate_vars.f90->sourcefile~globals.f90
sourcefile~readstate_vars.f90->sourcefile~base.f90
sourcefile~readstate_vars.f90->sourcefile~hmap.f90
sourcefile~readstate_vars.f90->sourcefile~sgrid.f90
sourcefile~readstate_vars.f90->sourcefile~sbase.f90
sourcefile~restart_vars.f90->sourcefile~globals.f90
sourcefile~rprofile_bspline.f90->sourcefile~globals.f90
sourcefile~rprofile_bspline.f90->sourcefile~c_rprofile.f90
sourcefile~rprofile_bspline.f90->sourcefile~sll_m_bsplines.f90
sourcefile~rprofile_polynomial.f90->sourcefile~globals.f90
sourcefile~rprofile_polynomial.f90->sourcefile~c_rprofile.f90
sourcefile~sgrid.f90->sourcefile~globals.f90
sourcefile~sol_var_mhd3d.f90->sourcefile~globals.f90
sourcefile~c_sol_var.f90
c_sol_var.F90
sourcefile~sol_var_mhd3d.f90->sourcefile~c_sol_var.f90
sourcefile~vmec.f90->sourcefile~globals.f90
sourcefile~vmec.f90->sourcefile~readintools.f90
sourcefile~vmec.f90->sourcefile~cubic_spline.f90
sourcefile~vmec.f90->sourcefile~rprofile_bspline.f90
sourcefile~vmec.f90->sourcefile~vmec_readin.f90
sourcefile~vmec.f90->sourcefile~vmec_vars.f90
sourcefile~vmec_readin.f90->sourcefile~globals.f90
sourcefile~vmec_readin.f90->sourcefile~cubic_spline.f90
sourcefile~vmec_vars.f90->sourcefile~globals.f90
sourcefile~vmec_vars.f90->sourcefile~c_rprofile.f90
sourcefile~vmec_vars.f90->sourcefile~cubic_spline.f90
sourcefile~write_modes.f90->sourcefile~globals.f90
sourcefile~write_modes.f90->sourcefile~output_csv.f90
sourcefile~c_hmap.f90->sourcefile~globals.f90
sourcefile~c_sol_var.f90->sourcefile~globals.f90
sourcefile~fbase.f90->sourcefile~globals.f90
sourcefile~hmap_axisnb.f90->sourcefile~globals.f90
sourcefile~hmap_axisnb.f90->sourcefile~readintools.f90
sourcefile~hmap_axisnb.f90->sourcefile~analyze_vars.f90
sourcefile~hmap_axisnb.f90->sourcefile~mod_mpi.f90
sourcefile~hmap_axisnb.f90->sourcefile~output_csv.f90
sourcefile~hmap_axisnb.f90->sourcefile~output_vtk.f90
sourcefile~hmap_axisnb.f90->sourcefile~c_hmap.f90
sourcefile~hmap_axisnb.f90->sourcefile~fbase.f90
sourcefile~hmap_axisnb.f90->sourcefile~io_netcdf.f90
sourcefile~output_netcdf.f90
output_netcdf.F90
sourcefile~hmap_axisnb.f90->sourcefile~output_netcdf.f90
sourcefile~hmap_cyl.f90->sourcefile~globals.f90
sourcefile~hmap_cyl.f90->sourcefile~readintools.f90
sourcefile~hmap_cyl.f90->sourcefile~c_hmap.f90
sourcefile~hmap_frenet.f90->sourcefile~globals.f90
sourcefile~hmap_frenet.f90->sourcefile~readintools.f90
sourcefile~hmap_frenet.f90->sourcefile~analyze_vars.f90
sourcefile~hmap_frenet.f90->sourcefile~output_csv.f90
sourcefile~hmap_frenet.f90->sourcefile~output_vtk.f90
sourcefile~hmap_frenet.f90->sourcefile~c_hmap.f90
sourcefile~hmap_frenet.f90->sourcefile~output_netcdf.f90
sourcefile~hmap_knot.f90->sourcefile~globals.f90
sourcefile~hmap_knot.f90->sourcefile~readintools.f90
sourcefile~hmap_knot.f90->sourcefile~c_hmap.f90
sourcefile~hmap_rz.f90->sourcefile~globals.f90
sourcefile~hmap_rz.f90->sourcefile~c_hmap.f90
sourcefile~io_netcdf.f90->sourcefile~globals.f90
sourcefile~linalg.f90->sourcefile~globals.f90
sourcefile~sbase.f90->sourcefile~globals.f90
sourcefile~sbase.f90->sourcefile~sgrid.f90
sourcefile~sbase.f90->sourcefile~linalg.f90
sourcefile~sbase.f90->sourcefile~sll_m_bsplines.f90
sourcefile~sbase.f90->sourcefile~sll_m_spline_matrix.f90
sourcefile~basis1d.f90
basis1d.F90
sourcefile~sbase.f90->sourcefile~basis1d.f90
sourcefile~sll_m_boundary_condition_descriptors.f90
sll_m_boundary_condition_descriptors.F90
sourcefile~sbase.f90->sourcefile~sll_m_boundary_condition_descriptors.f90
sourcefile~sll_m_spline_interpolator_1d.f90
sll_m_spline_interpolator_1d.F90
sourcefile~sbase.f90->sourcefile~sll_m_spline_interpolator_1d.f90
sourcefile~sll_m_assert.f90
sll_m_assert.F90
sourcefile~sll_m_bsplines.f90->sourcefile~sll_m_assert.f90
sourcefile~sll_m_bsplines_base.f90
sll_m_bsplines_base.F90
sourcefile~sll_m_bsplines.f90->sourcefile~sll_m_bsplines_base.f90
sourcefile~sll_m_bsplines_non_uniform.f90
sll_m_bsplines_non_uniform.F90
sourcefile~sll_m_bsplines.f90->sourcefile~sll_m_bsplines_non_uniform.f90
sourcefile~sll_m_bsplines_uniform.f90
sll_m_bsplines_uniform.F90
sourcefile~sll_m_bsplines.f90->sourcefile~sll_m_bsplines_uniform.f90
sourcefile~sll_m_errors.f90
sll_m_errors.F90
sourcefile~sll_m_bsplines.f90->sourcefile~sll_m_errors.f90
sourcefile~sll_m_working_precision.f90
sll_m_working_precision.F90
sourcefile~sll_m_bsplines.f90->sourcefile~sll_m_working_precision.f90
sourcefile~sll_m_spline_matrix.f90->sourcefile~sll_m_spline_matrix_banded.f90
sourcefile~sll_m_spline_matrix.f90->sourcefile~sll_m_errors.f90
sourcefile~sll_m_spline_matrix_base.f90
sll_m_spline_matrix_base.F90
sourcefile~sll_m_spline_matrix.f90->sourcefile~sll_m_spline_matrix_base.f90
sourcefile~sll_m_spline_matrix_dense.f90
sll_m_spline_matrix_dense.F90
sourcefile~sll_m_spline_matrix.f90->sourcefile~sll_m_spline_matrix_dense.f90
sourcefile~sll_m_spline_matrix.f90->sourcefile~sll_m_working_precision.f90
sourcefile~sll_m_spline_matrix_banded.f90->sourcefile~sll_m_assert.f90
sourcefile~sll_m_spline_matrix_banded.f90->sourcefile~sll_m_errors.f90
sourcefile~sll_m_spline_matrix_banded.f90->sourcefile~sll_m_spline_matrix_base.f90
sourcefile~sll_m_spline_matrix_banded.f90->sourcefile~sll_m_working_precision.f90
sourcefile~basis1d.f90->sourcefile~globals.f90
sourcefile~basis1d.f90->sourcefile~linalg.f90
sourcefile~output_netcdf.f90->sourcefile~globals.f90
sourcefile~output_netcdf.f90->sourcefile~io_netcdf.f90
sourcefile~sll_m_assert.f90->sourcefile~globals.f90
sourcefile~sll_m_boundary_condition_descriptors.f90->sourcefile~sll_m_working_precision.f90
sourcefile~sll_m_bsplines_base.f90->sourcefile~sll_m_assert.f90
sourcefile~sll_m_bsplines_base.f90->sourcefile~sll_m_working_precision.f90
sourcefile~sll_m_bsplines_non_uniform.f90->sourcefile~sll_m_assert.f90
sourcefile~sll_m_bsplines_non_uniform.f90->sourcefile~sll_m_bsplines_base.f90
sourcefile~sll_m_bsplines_non_uniform.f90->sourcefile~sll_m_working_precision.f90
sourcefile~sll_m_bsplines_uniform.f90->sourcefile~sll_m_assert.f90
sourcefile~sll_m_bsplines_uniform.f90->sourcefile~sll_m_bsplines_base.f90
sourcefile~sll_m_bsplines_uniform.f90->sourcefile~sll_m_errors.f90
sourcefile~sll_m_bsplines_uniform.f90->sourcefile~sll_m_working_precision.f90
sourcefile~sll_m_spline_interpolator_1d.f90->sourcefile~sll_m_spline_matrix.f90
sourcefile~sll_m_spline_interpolator_1d.f90->sourcefile~sll_m_assert.f90
sourcefile~sll_m_spline_interpolator_1d.f90->sourcefile~sll_m_boundary_condition_descriptors.f90
sourcefile~sll_m_spline_interpolator_1d.f90->sourcefile~sll_m_bsplines_base.f90
sourcefile~sll_m_spline_interpolator_1d.f90->sourcefile~sll_m_errors.f90
sourcefile~sll_m_spline_interpolator_1d.f90->sourcefile~sll_m_working_precision.f90
sourcefile~sll_m_spline_1d.f90
sll_m_spline_1d.F90
sourcefile~sll_m_spline_interpolator_1d.f90->sourcefile~sll_m_spline_1d.f90
sourcefile~sll_m_spline_matrix_base.f90->sourcefile~sll_m_working_precision.f90
sourcefile~sll_m_spline_matrix_dense.f90->sourcefile~sll_m_assert.f90
sourcefile~sll_m_spline_matrix_dense.f90->sourcefile~sll_m_errors.f90
sourcefile~sll_m_spline_matrix_dense.f90->sourcefile~sll_m_spline_matrix_base.f90
sourcefile~sll_m_spline_matrix_dense.f90->sourcefile~sll_m_working_precision.f90
sourcefile~sll_m_spline_1d.f90->sourcefile~sll_m_assert.f90
sourcefile~sll_m_spline_1d.f90->sourcefile~sll_m_bsplines_base.f90
sourcefile~sll_m_spline_1d.f90->sourcefile~sll_m_working_precision.f90
Nodes of different colours represent the following:
Graph Key
Source File
Source File
This Page's Entity
This Page's Entity
Solid arrows point from a file to a file which it depends on. A file
is dependent upon another if the latter must be compiled before the former
can be.
sourcefile~~rungvec.f90~~AfferentGraph
sourcefile~rungvec.f90
rungvec.F90
sourcefile~gvec.f90
gvec.F90
sourcefile~gvec.f90->sourcefile~rungvec.f90
sourcefile~run.f90
run.F90
sourcefile~run.f90->sourcefile~rungvec.f90
Nodes of different colours represent the following:
Graph Key
Source File
Source File
This Page's Entity
This Page's Entity
Solid arrows point from a file to a file which it depends on. A file
is dependent upon another if the latter must be compiled before the former
can be.
Source Code
!===================================================================================================================================
! Copyright (c) 2025 GVEC Contributors, Max Planck Institute for Plasma Physics
! License: MIT
!===================================================================================================================================
#include "defines.FPP"
!===================================================================================================================================
!>
!!# **GVEC** Driver Module
!!
!===================================================================================================================================
MODULE MODgvec_rungvec
USE MODgvec_MHD3D , ONLY : t_functional_mhd3d
IMPLICIT NONE
PUBLIC
CLASS ( t_functional_mhd3d ), ALLOCATABLE :: functional
LOGICAL :: dorestart
!INTERFACE rungvec
! MODULE PROCEDURE rungvec
!END INTERFACE
!===================================================================================================================================
CONTAINS
SUBROUTINE rungvec ( parameterFile , restartfile_in )
USE_MPI
USE MODgvec_Globals
USE MODgvec_Analyze , ONLY : InitAnalyze , FinalizeAnalyze
USE MODgvec_Output , ONLY : InitOutput , FinalizeOutput
USE MODgvec_Restart , ONLY : InitRestart , FinalizeRestart
USE MODgvec_ReadInTools , ONLY : FillStrings , GETLOGICAL , GETINT , IgnoredStrings , FinalizeReadIn
!$ USE omp_lib
IMPLICIT NONE
!-----------------------------------------------------------------------------------------------------------------------------------
!INPUT VARIABLES
CHARACTER ( LEN =* ), INTENT ( IN ) :: Parameterfile !! input parameters of GVEC
CHARACTER ( LEN =* ), INTENT ( IN ), OPTIONAL :: RestartFile_in !! if present, a restart will be executed
!-----------------------------------------------------------------------------------------------------------------------------------
!local variables
INTEGER :: TimeArray ( 8 )
CHARACTER ( LEN = 255 ) :: testfile
REAL ( wp ) :: StartTimeTotal , EndTimeTotal , StartTime , EndTime
!===================================================================================================================================
__ PERFINIT
__ PERFON ( 'main' )
CALL reset_subregion ()
StartTimeTotal = GetTime ()
SWRITE ( Unit_stdOut , fmt_sep )
CALL DATE_AND_TIME ( values = TimeArray ) ! get System time
SWRITE ( UNIT_stdOut , '(A,I4.2,"-",I2.2,"-",I2.2,1X,I2.2,":",I2.2,":",I2.2)' ) &
'%%% Sys date : ' , timeArray ( 1 : 3 ), timeArray ( 5 : 7 )
!header
SWRITE ( Unit_stdOut , fmt_sep )
SWRITE ( Unit_stdOut , '(18(("*",A128,2X,"*",:,"\n")))' )&
' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ' &
, ' - - - - - - - - - - - - GGGGGGGGGGGGGGG - VVVVVVVV - - - - VVVVVVVV - EEEEEEEEEEEEEEEEEEEEEE - - - - CCCCCCCCCCCCCCC - - ' &
, ' - - - - - - - - - - GGGG::::::::::::G - V::::::V - - - - V::::::V - E::::::::::::::::::::E - - - CCCC::::::::::::C - - - ' &
, ' - - - - - - - - - GGG:::::::::::::::G - V::::::V - - - - V::::::V - E::::::::::::::::::::E - - CCC:::::::::::::::C - - - ' &
, ' - - - - - - - GG:::::GGGGGGGG::::G - V::::::V - - - - V::::::V - EEE:::::EEEEEEEEE::::E - CC:::::CCCCCCCC::::C - - - - ' &
, ' - - - - - - - GG:::::GG - - GGGGGG - V:::::V - - - - V:::::V - - E:::::E - - - EEEEEE - CC:::::CC - - CCCCCC - - - - ' &
, ' - - - - - - G:::::GG - - - - - - - - V:::::V - - - - V:::::V - - - E:::::E - - - - - - - - C:::::CC - - - - - - - - - - - ' &
, ' - - - - - - G:::::G - - - - - - - - - V:::::V - - V:::::V - - - E:::::EEEEEEEEEEE - - - C:::::C - - - - - - - - - - - - ' &
, ' - - - - - G:::::G - GGGGGGGGGG - - - V:::::V - - V:::::V - - - - E:::::::::::::::E - - - C:::::C - - - - - - - - - - - - - ' &
, ' - - - - - G:::::G - G::::::::G - - - V:::::V V:::::V - - - - E:::::::::::::::E - - - C:::::C - - - - - - - - - - - - - ' &
, ' - - - - G:::::G - GGGGG::::G - - - - V:::::V V:::::V - - - - - E:::::EEEEEEEEEEE - - - C:::::C - - - - - - - - - - - - - - ' &
, ' - - - - G:::::G - - - G::::G - - - - V:::::V:::::V - - - - - E:::::E - - - - - - - - C:::::C - - - - - - - - - - - - - - ' &
, ' - - - G:::::G - - G::::G - - - - - V:::::::::V - - - - - - E:::::E - - - EEEEEE - C:::::C - - CCCCCC - - - - - - - - ' &
, ' - - - - G::::::GGGGGGG::::G - - - - - V:::::::V - - - - - EEE:::::EEEEEEEEE::::E - - C::::::CCCCCCC::::C - - - - - - - - ' &
, ' - - - - G:::::::::::::::G - - - - - - V:::::V - - - - - - E::::::::::::::::::::E - - - C:::::::::::::::C - - - - - - - - - ' &
, ' - - - - - GG::::GGGG::::G - - - - - - V:::V - - - - - - E::::::::::::::::::::E - - - - CC::::::::::::C - - - - - - - - - ' &
, ' - - - - - GGGG GGGGGG - - - - - - - VVV - - - - - - - EEEEEEEEEEEEEEEEEEEEEE - - - - - CCCCCCCCCCCC - - - - - - - - - - ' &
, ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '
SWRITE ( Unit_stdOut , fmt_sep )
!.only executes if compiled with OpenMP
!$ SWRITE(UNIT_stdOut,'(A,I6)')' Number of OpenMP threads : ',OMP_GET_MAX_THREADS()
!$ SWRITE(Unit_stdOut,'(132("="))')
!.only executes if compiled with MPI
# if MPI
SWRITE ( UNIT_stdOut , '(A,I6)' ) ' Number of MPI tasks : ' , nRanks
SWRITE ( Unit_stdOut , fmt_sep )
# endif
#include "configuration-cmake.F90"
SWRITE ( Unit_stdOut , fmt_sep )
CALL FillStrings ( ParameterFile ) !< readin parameterfile, done on MPI root + Bcast
testdbg = GETLOGICAL ( 'testdbg' , Proposal = . FALSE .)
testlevel = GETINT ( 'testlevel' , Proposal =- 1 )
IF ( testlevel . GT . 0 ) THEN
testUnit = GETFREEUNIT ()
WRITE ( testFile , '(A,I4.4,A)' ) "tests_" , myRank , ".out"
OPEN ( UNIT = testUnit ,&
FILE = testfile ,&
STATUS = 'REPLACE' ,&
ACCESS = 'SEQUENTIAL' )
END IF
CALL enter_subregion ( "initialize" )
!initialization phase
dorestart = . FALSE .
IF ( PRESENT ( RestartFile_in )) THEN
dorestart = ( LEN ( TRIM ( RestartFile_in )). GT . 0 )
END IF
IF ( dorestart ) CALL InitRestart ( RestartFile_in )
CALL InitOutput ()
CALL InitAnalyze ()
ALLOCATE ( t_functional_mhd3d :: functional )
CALL functional % init ()
CALL IgnoredStrings ()
CALL functional % InitSolution ()
StartTime = GetTime ()
SWRITE ( Unit_stdOut , '(A,F8.2,A)' ) ' INITIALIZATION FINISHED! [' , StartTime - StartTimeTotal , ' sec ]'
SWRITE ( Unit_stdOut , fmt_sep )
CALL exit_subregion ( "initialize" )
CALL functional % minimize ()
EndTime = GetTime ()
SWRITE ( Unit_stdOut , '(A,2(F8.2,A))' ) ' FUNCTIONAL MINIMISATION FINISHED! [' , EndTime - StartTime , ' sec ], corresponding to [' , &
( EndTime - StartTime ) / REAL ( functional % minimizer % vars % iter , wp ) * 1.e3_wp , ' msec/iteration ]'
IF ( ALLOCATED ( functional )) THEN
CALL functional % free ()
DEALLOCATE ( functional )
END IF
CALL enter_subregion ( "finalize" )
CALL FinalizeAnalyze ()
CALL FinalizeOutput ()
IF ( dorestart ) CALL FinalizeRestart ()
CALL FinalizeReadIn ()
! do something
IF ( testlevel . GT . 0 ) THEN
SWRITE ( UNIT_stdout , * )
SWRITE ( UNIT_stdOut , '(A)' ) "** TESTESTESTESTESTESTESTESTESTESTESTESTESTESTESTEST **"
SWRITE ( UNIT_stdout , * )
n_warnings_occured = n_warnings_occured + nFailedMsg
IF ( nFailedMsg . GT . 0 ) THEN
SWRITE ( UNIT_stdOut , '(A)' ) "!!!!!!! SOME TEST(S) FAILED, see tests.out !!!!!!!!!!!!!"
ELSE
SWRITE ( UNIT_stdOut , '(A)' ) " ... ALL IMPLEMENTED TESTS SUCCESSFULL ..."
END IF !nFailedMsg
SWRITE ( UNIT_stdout , * )
SWRITE ( UNIT_stdOut , '(A)' ) "** TESTESTESTESTESTESTESTESTESTESTESTESTESTESTESTEST **"
SWRITE ( UNIT_stdout , * )
CLOSE ( testUnit )
END IF !testlevel
CALL exit_subregion ( "finalize" )
EndTimeTotal = GetTime ()
SWRITE ( Unit_stdOut , fmt_sep )
CALL DATE_AND_TIME ( values = TimeArray ) ! get System time
SWRITE ( UNIT_stdOut , '(A,I4.2,"-",I2.2,"-",I2.2,1X,I2.2,":",I2.2,":",I2.2)' ) &
'%%% Sys date : ' , timeArray ( 1 : 3 ), timeArray ( 5 : 7 )
SWRITE ( Unit_stdOut , fmt_sep )
IF ( n_warnings_occured . EQ . 0 ) THEN
SWRITE ( Unit_stdOut , '(A,F8.2,A)' ) ' GVEC SUCESSFULLY FINISHED! [' , EndTimeTotal - StartTimeTotal , ' sec ]'
ELSE
SWRITE ( Unit_stdOut , '(A,F8.2,A,I8,A)' ) ' GVEC FINISHED! [' , EndTimeTotal - StartTimeTotal , ' sec ], WITH ' , n_warnings_occured , ' WARNINGS!!!!'
END IF
SWRITE ( Unit_stdOut , fmt_sep )
__ PERFOFF ( 'main' )
IF ( MPIRoot ) THEN
__ PERFOUT ( 'main' )
END IF
END SUBROUTINE rungvec
END MODULE MODgvec_rungvec