[petsc-dev] testset

Mark Adams mfadams at lbl.gov
Sat Nov 20 12:25:28 CST 2021


Yep, misaligned indentation.

On Sat, Nov 20, 2021 at 11:52 AM Matthew Knepley <knepley at gmail.com> wrote:

> On Sat, Nov 20, 2021 at 9:14 AM Mark Adams <mfadams at lbl.gov> wrote:
>
>> I am trying to add a test set and I am getting this error with the
>> appended syntax.
>> I do not see the problem. Any ideas?
>>
>
> Maybe not enough indenting for "test:" ? It is clear that one of those
> lines is the problem.
>
>   Thanks,
>
>     Matt
>
>
>> Thanks,
>> Mark
>>
>> 06:03 2 nid003756 main *= perlmutter:~/petsc$ *make
>> PETSC_DIR=/global/homes/m/madams/petsc PETSC_ARCH=arch-perlmutter-opt-gcc
>> -f gmakefile test search='ts_utils_dmplexlandau_tutorials-ex2_0'*
>> /usr/bin/python /global/homes/m/madams/petsc/config/gmakegentest.py
>> --petsc-dir=/global/homes/m/madams/petsc
>> --petsc-arch=arch-perlmutter-opt-gcc
>> --testdir=./arch-perlmutter-opt-gcc/tests
>> Traceback (most recent call last):
>>   File "/global/homes/m/madams/petsc/config/gmakegentest.py", line 1093,
>> in <module>
>>     testdir=opts.testdir, check=opts.check_output)
>>   File "/global/homes/m/madams/petsc/config/gmakegentest.py", line 1060,
>> in main
>>     dataDict=pEx.walktree(os.path.join(pEx.srcdir))
>>   File "/global/homes/m/madams/petsc/config/gmakegentest.py", line 924,
>> in walktree
>>     self.genPetscTests(root,dirs,files,dataDict)
>>   File "/global/homes/m/madams/petsc/config/gmakegentest.py", line 897,
>> in genPetscTests
>>     dataDict[root].update(testparse.parseTestFile(fullex,0))
>>   File "/global/homes/m/madams/petsc/config/testparse.py", line 542, in
>> parseTestFile
>>     testDict[basename]=parseTests(testString,srcfile,fileNums,verbosity)
>>   File "/global/homes/m/madams/petsc/config/testparse.py", line 498, in
>> parseTests
>>     testnames,subdicts=parseTest(test,srcfile,verbosity)
>>   File "/global/homes/m/madams/petsc/config/testparse.py", line 426, in
>> parseTest
>>     if not var in acceptedkeys: raise Exception("Keyword: "+var+" from:
>> "+line+" is not valid")
>> Exception: Keyword: est from: est: is not valid
>> make: *** [gmakefile.test:97: arch-perlmutter-opt-gcc/tests/testfiles]
>> Error 1
>> 06:08 2 nid003756 main *= perlmutter:~/petsc$
>>
>> /*TEST
>>
>>  testset:
>>    requires: p4est !complex double
>>    output_file: output/ex2_0.out
>>    args: -dm_landau_num_species_grid 1,1 -dm_landau_Ez 0
>> -petscspace_degree 3 -petscspace_poly_tensor 1 -dm_landau_type p4est -info
>> :dm,tsadapt -dm_landau_ion_masses 2 -dm_landau_ion_charges 1
>> -dm_landau_thermal_temps 5,5 -dm_landau_n 2,2 -dm_landau_n_0 5e19
>> -ts_monitor -snes_rtol 1.e-10 -snes_stol 1.e-14 -snes_monitor
>> -snes_converged_reason -snes_max_it 10 -ts_type arkimex -ts_arkimex_type
>> 1bee -ts_max_snes_failures -1 -ts_rtol 1e-3 -ts_dt 1.e-1 -ts_max_time 1
>> -ts_adapt_clip .5,1.25 -ts_max_steps 2 -ts_adapt_scale_solve_failed 0.75
>> -ts_adapt_time_step_increase_delay 5 -pc_type lu -ksp_type preonly
>> -dm_landau_amr_levels_max 2,2 -ex2_impurity_source_type pulse
>> -ex2_pulse_start_time 1e-1 -ex2_pulse_width_time 10 -ex2_pulse_rate 1e-2
>> -ex2_t_cold .05 -ex2_plot_dt 1e-1 -dm_refine 1 -dm_landau_gpu_assembly true
>> -dm_landau_batch_size 2
>>   test:
>>     suffix: 0
>>     requires:  !kokkos_kernels !cuda
>>     args: -dm_landau_device_type cpu
>>   test:
>>     suffix: kokkos
>>     requires: kokkos_kernels
>>     args: -dm_landau_device_type kokkos -dm_mat_type aijkokkos
>> -dm_vec_type kokkos
>>   test:
>>     suffix: cuda
>>     requires: cuda
>>     args: -dm_landau_device_type cuda -dm_mat_type aijcusparse
>> -dm_vec_type cuda -mat_cusparse_use_cpu_solve
>>
>> TEST*/
>>
>
>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>
> https://www.cse.buffalo.edu/~knepley/
> <http://www.cse.buffalo.edu/~knepley/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20211120/af857668/attachment.html>


More information about the petsc-dev mailing list