Commits

Lisandro Dalcin committed c591cec

Rename option -iga_geometry -> -iga_load

Comments (0)

Files changed (2)

 
   2) On a geometry
 
-    If a geometry file is specified (-iga_geometry), the
+    If a geometry file is specified (-iga_load), the
     discretization will be what is read in from the geometry and is
     not editable from the command line.
 
     for (i=0; i<dim; i++) if (btype[i] != IGA_BASIS_BSPLINE) conts[i] = 0;
 
     /* Geometry */
-    ierr = PetscOptionsString("-iga_geometry","Specify IGA geometry file","IGARead",filename,filename,sizeof(filename),&flg);CHKERRQ(ierr);
+    ierr = PetscOptionsString("-iga_load","Specify IGA geometry file","IGARead",filename,filename,sizeof(filename),&flg);CHKERRQ(ierr);
+    if (!flg) {ierr = PetscOptionsString("-iga_geometry","deprecated, use -iga_load","IGARead",filename,filename,sizeof(filename),&flg);CHKERRQ(ierr);}
     if (flg) { /* load from file */
       ierr = IGAOptionsReject(prefix,"-iga_elements"  );CHKERRQ(ierr);
       ierr = IGAOptionsReject(prefix,"-iga_degree"    );CHKERRQ(ierr);